Skip to content

Do not include root level _type field if it is not a metadata field #110825

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

Conversation

salvatore-campagna
Copy link
Contributor

@salvatore-campagna salvatore-campagna commented Jul 12, 2024

_type is a (deprecated) metadata field. When a non-metadata field is created whose name
is type, it must be included in the _source field but not as a root-level field, as done
for type when it is a metadata field. For Elasticsearch using version 7 of the REST api the
type field is, indeed, a metadata field which is included at the root level of the response.

Resolves #110438

@salvatore-campagna salvatore-campagna self-assigned this Jul 12, 2024
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v8.16.0 and removed Team:StorageEngine labels Jul 12, 2024
@salvatore-campagna salvatore-campagna added Team:StorageEngine test-full-bwc Trigger full BWC version matrix tests and removed needs:triage Requires assignment of a team area label v8.16.0 labels Jul 12, 2024
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label and removed Team:StorageEngine labels Jul 12, 2024
@mayya-sharipova mayya-sharipova added :Search Foundations/Mapping Index mappings, including merging and defining field types and removed needs:triage Requires assignment of a team area label labels Jul 12, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jul 12, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine
Copy link
Collaborator

Hi @salvatore-campagna, I've created a changelog YAML for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch test-full-bwc Trigger full BWC version matrix tests v8.14.0 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Join field called "_type" is duplicated in the _search results
3 participants