mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using Squidex.Domain.Apps.Entities.Contents.Text.Elastic;
|
|
using Xunit;
|
|
|
|
namespace Squidex.Domain.Apps.Entities.Contents.Text
|
|
{
|
|
[Trait("Category", "Dependencies")]
|
|
public class TextIndexerTests_Elastic : TextIndexerTestsBase
|
|
{
|
|
private sealed class TheFactory : IIndexerFactory
|
|
{
|
|
public Task CleanupAsync()
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public Task<ITextIndex> CreateAsync(Guid schemaId)
|
|
{
|
|
var index = new ElasticSearchTextIndex("http://localhost:9200", "squidex", true);
|
|
|
|
return Task.FromResult<ITextIndex>(index);
|
|
}
|
|
}
|
|
|
|
public override IIndexerFactory Factory { get; } = new TheFactory();
|
|
|
|
public TextIndexerTests_Elastic()
|
|
{
|
|
SupportsSearchSyntax = false;
|
|
SupportsMultiLanguage = false;
|
|
}
|
|
}
|
|
}
|
|
|