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

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

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