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

IRegs - Small search terms return too many results from ES #6468

Closed
jslay-excella opened this issue Jun 3, 2021 · 1 comment
Closed

IRegs - Small search terms return too many results from ES #6468

jslay-excella opened this issue Jun 3, 2021 · 1 comment

Comments

@jslay-excella
Copy link
Contributor

jslay-excella commented Jun 3, 2021

When a user enters a search query that is too generic or small, ES results window exceeds the set limits, causing an Internal Server Error.

Current behavior

  • User enters a small/generic search term (i.e. "the")
  • ES raises exception with
elasticsearch7.exceptions.RequestError: RequestError(400, 'search_phase_execution_exception', 'Result window is too large, from + size must be less than or equal to: [10000] but was [14728]. 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 setting.')

Expected behavior

  • No search is performed when small/generic search terms OR gracefully handles too many results and returns such error.

Steps to replicate behavior

  1. Search "the" on IRegs Search.
@niqjohnson
Copy link
Member

I moved this one over to our backlog.

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

2 participants