Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Pagination #56

Open
Telmo opened this issue Jun 26, 2013 · 0 comments
Open

Document Pagination #56

Telmo opened this issue Jun 26, 2013 · 0 comments

Comments

@Telmo
Copy link

Telmo commented Jun 26, 2013

Hi, I am having a hard time getting rubberband to return all data, I've been going through the code and I am not sure how to do pages.. or even modify the number of returned results.

With a very simplistic:

client = ElasticSearch.new('elasticsearchhost:9292', :per_page => 100, :index => 'myindex', :type => 'mytype')
results = client.search('operatingsystem:redhat')
results.total_count
#=> 30004
results.size
#=> 10

the results.total_count is correct at 30004 but the results themselves are only 10

How do I iterate through the results and increase the per_page?

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

No branches or pull requests

1 participant