Pergunta

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

Foi útil?

Solução

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

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top