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

Support to search_type: scan #986

@embs

Description

@embs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions