-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>breakingTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchv2.0.0-beta1
Description
Currently it is possible to refer to fields using:
- a short name (eg
first
) - the full path (eg
name.first
) - the full path with the type prepended (eg
employee.name.first
) which automatically wraps a query clause with a filter on the_type
field.
This method of field resolution is ambiguous.
Instead, we will require that the full path is used at all times, and that the type name cannot be prepended. If the user needs to filter on the _type
field, then they should include an explicit filter.
Wildcarded field names will still be supported, eg name.*
or *.first
. Wildcards will apply to the whole path.
For bwc, we should add a static setting to allow the old method of field resolution in the 2.x series.
Relates to #8870
Metadata
Metadata
Assignees
Labels
:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>breakingTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchv2.0.0-beta1