Support to `search_type: scan`
Tire API accepts search_type option that works nice for the count search type but does not look like fitting well for the scan search -- which API handles in a different manner.
In order to reuse my search classes implemented over the Tire API, I would like to create an Elasticsearch scan query passing by search_type: scan with Tire.search instead of Tire.scan. I am, actually, able to assembly something really close to what I desire with the following code
Tire.search('organization_groups', search_type: 'scan', scroll: '10m') do
|s| s.query { |q| q.all }
end
Major issue seems to be the lack of an each_document method on the Tire Search class.
Any chances of achieving this behavior with the current API?
Thanks in advance!
Hello, the Tire gem is truly retired, and the development is frozen when it comes to adding features.
Please have a look at the new https://github.com/elastic/elasticsearch-ruby and https://github.com/elastic/elasticsearch-rails gems...