-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Adding check for isIndexed in text fields when generating field exists queries to avoid ISE when field is stored but not indexed or with doc_values #130531
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
Conversation
…s queries to avoid ISE when field is stored but not indexed or with doc_values
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Hi @pmpailis, I've created a changelog YAML for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There is a test failing in
The above now fails (we instead get a FWIW, adding the
I guess it's ok to update the test to the new generated query (and add a yaml test to ensure that we do get back results in other cases) ? |
I think so, given that this case was also prone to ISE. |
Updated tests in 7d05df9df3bdc8e6192f979b0f394c8a6314c697 |
…b.com:pmpailis/elasticsearch into fix_for_ise_on_fieldsexistquery_on_textfields
As per #129973 (comment), it could be possible that if a text field is not indexed, but stored (i.e.
we would be met with the following ISE exception from Lucene
As per @martijnvg description in the linked issue (thank you :) ):
Closes: #129973