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
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 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