JohnDel
JohnDel

Reputation: 2102

Use searchkick with an elasticsearch plugin

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

Upvotes: 1

Views: 553

Answers (3)

cmantas
cmantas

Reputation: 1533

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

Upvotes: 1

Alex
Alex

Reputation: 1210

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.

Upvotes: 1

Andrew Kane
Andrew Kane

Reputation: 3236

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

Upvotes: 2

Related Questions