-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Distributed Indexing/CRUDA catch all label for issues around indexing, updating and getting a doc by id. Not search.A catch all label for issues around indexing, updating and getting a doc by id. Not search.:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>refactoringTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearch
Description
In #35790, we introduced support for making typeless API calls against an index with a custom type name. For example, given an existing index with type my_type, we allow new documents to be indexed using the typeless endpoint index/_doc/id. This is functionality is important in supporting the move to typeless APIs, since many users are likely to be working with older indices that were created with a custom type.
The approach in #35790 is fairly fragile, and we would like to step back and consider if there is something cleaner and more solid we could do instead. To help document the current implementation, here is the list of PRs associated with this work:
- Make typeless APIs usable with indices whose type name is different from
_doc. Make typeless APIs usable with indices whose type name is different from_doc#35790 - Rewrite SourceToParse with resolved docType. Rewrite SourceToParse with resolved docType #36921
- Make sure to resolve the type in DocumentMapperParser#extractMappings. Make sure to use the resolved type in DocumentMapperService#extractMappings. #37451
- Give precedence to the type from index creation when applying templates. Give precedence to index creation when mixing typed templates with typeless index creation and vice-versa. #37871
- Treat put-mapping calls with
_docas a top-level key as typed calls. Treat put-mapping calls with_docas a top-level key as typed calls. #38032
Metadata
Metadata
Assignees
Labels
:Distributed Indexing/CRUDA catch all label for issues around indexing, updating and getting a doc by id. Not search.A catch all label for issues around indexing, updating and getting a doc by id. Not search.:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field types>refactoringTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearch