retire icon indicating copy to clipboard operation
retire copied to clipboard

Support to `search_type: scan`

Open embs opened this issue 10 years ago • 1 comments

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!

embs avatar Mar 17 '15 21:03 embs

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...

karmi avatar Mar 17 '15 21:03 karmi