How do i use field as _id in elasticsearch 2.x?


(eri) #1

hi

i want to use field which in json as _id value, but this

{
"your_mapping" : {
"_id" : {
"path" : "Record ID"
}
}
}

is deprecated , so how can i do this in elasticsearch 2.x

thanks


(Mark Walkom) #2

You need to pass it in as the _id when you index the document.


(system) #3