The new elasticsearch-ruby gem integrating with rails

≡放荡痞女 提交于 2019-12-10 16:34:04

问题


there is any way to integrate the new Elasticsearch gem for ruby to rails, the tire was great but retired since two month and replaced by the new gem, however, no integrating functions with rails yet.

all the tutorial use tire, but now, how we can using rails with Elasticsearch?


回答1:


There is another gem called "searchkick" that integrates elasticsearch with Rails:

https://github.com/ankane/searchkick

It has some really cool features and can index data through rake tasks.




回答2:


A full-featured Rails integration is being worked on. If you want the high-level integration, and you don't want to provide it yourself, you can stick with Tire.




回答3:


I have a minmimal implementation that I'm currently running for prototyping / evaluation of ElasticSearch, which has not thrown up any spanner in the works for a very focused prototyping run for the past 2 days ...

There's little or no error response checking yet, since our workloads heavily use Resque and we rely on Resque to capture and identify where we need to fine tune error handling.

https://gist.github.com/TobiG77/8610788



来源:https://stackoverflow.com/questions/19704113/the-new-elasticsearch-ruby-gem-integrating-with-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!