Skip to content

Conversation

@piergm
Copy link
Member

@piergm piergm commented Oct 11, 2024

Mappings defaults to {} aka EMPTY_MAPPING, both if mappings: {} and if mappings: {properties: {}} is passed in the request body to match the behaviour when passing empty mapping on index create.
Prior to this change only mappings: {properties: {}} was instead wrapped with with _doc, now all the above.
With this {} == {mappings: {}} == {mappings: {properties: {}}}
fixes #107031

@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.0.0 labels Oct 11, 2024
@piergm piergm self-assigned this Oct 11, 2024
@piergm piergm added >enhancement Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search/Search Search-related issues that do not fall into other categories and removed needs:triage Requires assignment of a team area label labels Oct 11, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Oct 11, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine removed the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Oct 11, 2024
@astefan
Copy link
Contributor

astefan commented Jan 14, 2025

No worries. Much appreciated 🙏. Thank you @piergm.

@astefan
Copy link
Contributor

astefan commented Feb 13, 2025

Ping @piergm

@piergm
Copy link
Member Author

piergm commented Aug 26, 2025

Due to "MetadataMappingServiceTests.testMappingVersionUnchanged" failing this is taking more time than expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two "empty" mappings reported differently in field_caps

5 participants