-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Two "empty" mappings reported differently in field_caps #107031
Copy link
Copy link
Labels
:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>bugTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchpriority:normalA label for assessing bug priority to be used by ES engineersA label for assessing bug priority to be used by ES engineers
Metadata
Metadata
Assignees
Labels
:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>bugTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchpriority:normalA label for assessing bug priority to be used by ES engineersA label for assessing bug priority to be used by ES engineers
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
The first index has in its request body the
mappingsandpropertieselements, while the second one has an empty JSON body.The
_field_capsfor the first index returns the metadata fields, while for the second index it returns nothing. From my point of view there is no difference between these two indices when it comes to their mappings, so the output of field_caps should be consistent.This was tested with Postman REST client with
maincode from few days ago.now, another "empty" index: