Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Support to search_type: scan #986

Open
embs opened this issue Mar 17, 2015 · 1 comment
Open

Support to search_type: scan #986

embs opened this issue Mar 17, 2015 · 1 comment

Comments

@embs
Copy link

embs commented Mar 17, 2015

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!

@karmi
Copy link
Owner

karmi commented Mar 17, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants