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

Reduce the search response limit from 100k to 10k #275

Merged
merged 1 commit into from
May 3, 2017
Merged

Conversation

btm
Copy link
Contributor

@btm btm commented May 3, 2017

The default index.max_result_window for Elasticsearch is 10k. This leads to errors like:

2017-05-03_19:36:41.82788 Caused by: QueryPhaseExecutionException[Result window is too large, from + size must be less than or equal to: [10000] but was [100000]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level parameter.]

Signed-off-by: Bryan McLellan btm@loftninjas.org

The default index.max_result_window for Elasticsearch is 10k. This leads to errors like:

2017-05-03_19:36:41.82788 Caused by: QueryPhaseExecutionException[Result window is too large, from + size must be less than or equal to: [10000] but was [100000]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level parameter.]

Signed-off-by: Bryan McLellan <btm@loftninjas.org>
@lamont-granquist
Copy link
Contributor

do we need to do pagination then? or is that built into the search API now?

@lamont-granquist
Copy link
Contributor

i think yes, because you're passing a block and you hit the recursion in this logic?

https://github.com/chef/chef/blob/master/lib/chef/search/query.rb#L76-L98

@btm btm merged commit d151d1f into master May 3, 2017
@btm btm deleted the btm/search10k branch May 3, 2017 20:36
@thommay thommay added the Type: Bug Does not work as expected. label Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants