Skip to content
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

Binary field enables doc values by default for index mode with synthetic source #107739

Merged
merged 2 commits into from Apr 23, 2024

Conversation

lkts
Copy link
Contributor

@lkts lkts commented Apr 22, 2024

Closes #107554.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@elasticsearchmachine
Copy link
Collaborator

Hi @lkts, I've created a changelog YAML for you.

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one testing comment, LGTM otherwise.


List<IndexableField> fields = doc.rootDoc().getFields("field");
var docValuesField = fields.stream().filter(f -> f.fieldType().docValuesType() == DocValuesType.BINARY).findFirst();
assertTrue("Doc values are not present", docValuesField.isPresent());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also assert in this test that doc values field isn't present if non tsdb index settings are used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We test this in another test.

@lkts lkts changed the title Binary field enables doc values by default for index mode with synthe… Binary field enables doc values by default for index mode with synthetic search Apr 23, 2024
@lkts lkts changed the title Binary field enables doc values by default for index mode with synthetic search Binary field enables doc values by default for index mode with synthetic source Apr 23, 2024
@lkts lkts merged commit 75b5efe into elastic:main Apr 23, 2024
14 checks passed
@lkts lkts deleted the feature/107554 branch April 23, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Binary fields should have doc values enabled by default for index modes using synthetic source
3 participants