2.1 mapping _ID error?


(Ksecrist) #1

Hi everyone,

I'm exploring 2.1.1 after having a working "in dev" solution on 1.7.

I'm trying to define the following mapping:

                 "searchdocument" : {
                    "_id" : { "path" : "Id" },
					"properties" : {                            
						"file" : {
							"type" : "attachment",
							"fields" : {                                   
                                "content" :  {"term_vector":"with_positions_offsets", "store":"yes" },
								"title" : {"store" : "yes"},
								"date" : {"store" : "yes"},
								"author" : {"store" : "yes"},
								"content_type" : {"store" : "yes"},
								"content_length" : {"store" : "yes"},
								"language" : {"store" : "yes"}
							}
						}
					}
				}

I keep getting this however:

MapperParsingException[_id is not configurable]

(Yes I'm working with mapper-attachment.)

This worked before and allowed me to use my custom ID in Elastic.

BTW, where is the most recent 2.1.1 documentation to be found?

Thanks,
-Kyle


(Mark Walkom) #2

https://www.elastic.co/guide/en/elasticsearch/reference/2.1/index.html

Specifically - https://www.elastic.co/guide/en/elasticsearch/reference/2.1/breaking_20_mapping_changes.html#migration-meta-fields


(system) #3