简体   繁体   中英

Use searchkick with an elasticsearch plugin

如何将searchkick与类似https://github.com/skroutz/elasticsearch-analysis-greeklish的 Elasticsearch插件一起使用?

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

这个想法是在lib / ext /中的某个地方修改Searchkick::Reindex模块(如果您使用的是Rails) https://github.com/ankane/searchkick/blob/master/lib/searchkick/reindex.rb并发布流程使用自定义代码进行searchkick_index_options调用,这会将新的分析器添加到设置中。

请注意,您可以使用一个独立的希腊宝石

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM