Updating exact long and scaled_float queries to make use of docvalues only when available#130088
Conversation
…lues impl only when available
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
iverase
left a comment
There was a problem hiding this comment.
we did try this before (using IndexOrDocValues queries) and we had to revert it because it changes the way we count boolean clauses.
| @@ -259,7 +259,7 @@ public boolean isSearchable() { | |||
| public Query termQuery(Object value, SearchExecutionContext context) { | |||
| failIfNotIndexedNorDocValuesFallback(context); | |||
There was a problem hiding this comment.
If it has no doc values, it should fail here?
There was a problem hiding this comment.
I think that it needs to have both index: false and doc_values: false to fail here, and the default for numeric fields seems to be index: true
Wasn't aware of that 😞 How did it affect the counts? Any other alternatives discussed at the time ? |
|
I think this is a better way to approach it: #130112 |
|
Closing in favor of #130112 |
Closes #129995