-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Updating exact long and scaled_float queries to make use of docvalues only when available #130088
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
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) |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it has no doc values, it should fail here?
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.
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