In your above example, the document's id (_id) is generated the first time 
from the book_id value (assuming you don't specify the id part in the REST 
call). After that, any updates to the book_id value will only change the 
book_id, i.e., the document's id will not change. If you want to change the 
document's id, the best way is to delete the document and then index it 
back with a different id.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/6f0f0030-d0fe-45c6-a5a2-1ef102d1808f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to