Morphology plugin


(elvis-2) #1

Hello!

I founded a Russian (and English) morphology plugin for Lucene:
http://code.google.com/p/russianmorphology/
Is there any way to integrate it with ElasticSearch?

--
WBR,
Dmitri


(Shay Banon) #2

Yes, you can have a look at the icu plugin in elasticsearch. You have several options:

  1. Implement a class that extends AbstractIndexAnalyzerProvider (for analyzers), and provide your own analyzer implementation. Then, in the configuration, you can specify the full class name in the type.

  2. Use the mentioned class, and build a specific plugin for elasticsearch, that will register it under a custom, more presentable name. Check the icu plugin to see how its done.
    On Thursday, April 28, 2011 at 12:00 PM, Elvis wrote:
    Hello!

I founded a Russian (and English) morphology plugin for Lucene:
http://code.google.com/p/russianmorphology/
Is there any way to integrate it with ElasticSearch?

--
WBR,
Dmitri


(system) #3