Switch out lucene with Elasticsearch

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:

  1. The EventConsumer handles events in the background and puts them into the index.
  2. 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.