mbaig
October 4, 2019, 2:20am
1
How should I go about replacing the Lucene functions with Elastic search. Is there a single Interface or do I need to implement multiple interfaces.
Thanks.
Its these two interfaces:
using Squidex.Domain.Apps.Entities.Apps;
using Squidex.Domain.Apps.Events.Contents;
using Squidex.Infrastructure;
using Squidex.Infrastructure.EventSourcing;
using Squidex.Infrastructure.Log;
using Squidex.Infrastructure.Orleans;
using Squidex.Infrastructure.Tasks;
namespace Squidex.Domain.Apps.Entities.Contents.Text
{
public sealed class GrainTextIndexer : ITextIndexer, IEventConsumer
{
private readonly IGrainFactory grainFactory;
public string Name
{
get { return "TextIndexer"; }
}
public string EventsFilter
{
The EventConsumer handles events in the background and puts them into the index.
The ITextIndexer provides the necessary functionality.
But if you want to consumer ElasticSearch only from your website or other server you could try out the elastic rule.