- Notifications
You must be signed in to change notification settings - Fork 25.7k
Closed
Labels
:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field typesbug"" muted="" aria-describedby="MDU6TGFiZWwyMzE3Mw==-tooltip :R1aqdb:">>bugTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchv2.0.0
Description
If I create an index by indexing a document which contains a reserved field (eg _source, _id) then I get an exception. However, indexing the same document again works, eg:
DELETE t PUT t/t/1 { "_id": 12345 } returns:
{ "type": "illegal_argument_exception", "reason": "Mapper for [_id] conflicts with existing mapping in other types:\n[mapper [_id] cannot be changed from type [_id] to [long]]" } But indexing into an existing index works:
PUT t/t/1 { "_id": 12345 } This means that the following bulk request would throw an exception for the first document, but accept any following documents:
DELETE t POST t/t/_bulk {"create": {}} {"_id":12345} {"create": {}} {"_id":12345} Related to #10456
Metadata
Metadata
Assignees
Labels
:Search Foundations/MappingIndex mappings, including merging and defining field typesIndex mappings, including merging and defining field typesbug"" muted="" aria-describedby="MDU6TGFiZWwyMzE3Mw==-tooltip :R2hehb:">>bugTeam:Search FoundationsMeta label for the Search Foundations team in ElasticsearchMeta label for the Search Foundations team in Elasticsearchv2.0.0