문제

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

도움이 되었습니까?

해결책

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top