-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add the limit on the number of expanded terms #27796
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
Comments
This was one of the items in the Elasticsearch roadmap. But looks like we may not need an extra limit, as fuzzy queries and wild card queries use one of the multi term query rewrite methods that already safeguard against too much expansion. For example:
|
As discussed in the FixitFriday, we still will have a limit on the number of expanded terms equal to 1024, as all other Lucene checks are done later. |
After further investigation, looks like this feature is NOT necessary, as there are already safeguards on the Lucene level. For example, in the case of the wildquery, the algorithm is following:
|
e.g wildcards, fuzzy queries
Relates to #11511
The text was updated successfully, but these errors were encountered: