Frage

How can I use searchkick with an elasticsearch plugin like this https://github.com/skroutz/elasticsearch-analysis-greeklish ?

War es hilfreich?

Lösung

The only way to change the default analyzers right now is to fork the gem. Here's a good place to start:

https://github.com/ankane/searchkick/blob/master/lib/searchkick/reindex.rb#L97

Andere Tipps

The idea is to modify Searchkick::Reindex module somewhere in lib/ext/ (if you are using rails) https://github.com/ankane/searchkick/blob/master/lib/searchkick/reindex.rb and to post process searchkick_index_options call with custom code, which adds new analyzers into settings.

Please note that there is a standalone greeklish gem that you might be able to use.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top