-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Enable skippers for fields with index=false and doc_values=true #138523
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
Enable skippers for fields with index=false and doc_values=true #138523
Conversation
This applies to boolean, date, ip, keyword and number-type fields excluding scaled_float. It can be disabled by setting the `index.mapping.use_doc_value_skipper` field to `false`
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
martijnvg
left a comment
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
|
|
||
| @Override | ||
| protected boolean supportsDocValuesSkippers() { | ||
| return false; |
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.
Out of curiosity, why are skippers disabled for scaled_float when index=false and doc_values=true? Shouldn't this be similar to half_float?
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 I just forgot to add them to scaled_float :). I will do that separately.
test/framework/src/main/java/org/elasticsearch/index/mapper/MapperTestCase.java
Outdated
Show resolved
Hide resolved
…pperTestCase.java Co-authored-by: Felix Barnsteiner <[email protected]>
|
This causes a failure in DataStreamTimestampFieldMapperTests#testValidatedNotIndexed, because we no longer fail validation if the timestamp field has index=false. I think that's probably OK, and I can just remove the test? |
…-false' into skippers/always-on-for-index-false
This applies to boolean, date, ip, keyword and number-type fields. It can
be disabled by setting the
index.mapping.use_doc_value_skipperfield tofalse