1. Try go execute GET http://yourhost:9200/_mapping and check if the 
mapping mentions is properly created with correct _id path
2. When indexing the documents you can construct your index request this 
way:

IndexRequestBuilder indexRequestBuilder = getClient().prepareIndex(index, 
type).setSource(data);

where data is your Map or JSON you want to index

I tested with curl (-XPUT for mapping and -XPOST for indexing ! ) and seems 
like it works :)
I'm also using _id path and Java API in my own project and have no problems 
with it so far

-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d8e367d3-e6f7-4b54-9f3a-30154eb66a69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to