Skip to content

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

Merged
lkts merged 2 commits intoelastic:mainfrom
lkts:feature/107554
Apr 23, 2024
Merged

Binary field enables doc values by default for index mode with synthetic source#107739
lkts merged 2 commits intoelastic:mainfrom
lkts:feature/107554

Conversation

@lkts
Copy link
Copy Markdown
Contributor

@lkts lkts commented Apr 22, 2024

Closes #107554.

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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