Domanda

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

È stato utile?

Soluzione

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

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top