-->

The new elasticsearch-ruby gem integrating with ra

2019-06-23 23:37发布

问题:

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