You should do that on a client level and add a new attribute in your doc or send the right _id.
My 2 cents. -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 16 janv. 2014 à 20:52, vinamar <[email protected]> a écrit : > I'm using ES 0.90.7. > > Is there a way to do _id mapped to a custom value which is based on more > than one field? > http://stackoverflow.com/questions/21041952/using-a-combined-field-as-id-mapping-in-elasticsearch > > Like i want _id to combine srId and closeDt as our document key? > > this one doesnt work. > > { > "mappings": { > "json": { > "_id": { > "path": "srId.closeDt", > "properties": { > "srId": { > "index": "not_analyzed", > "type": "string" > }, > "closeDt": { > "index": "not_analyzed", > "type": "long" > } > } > } > } > } > }' > > > > > > > -- > View this message in context: > http://elasticsearch-users.115913.n3.nabble.com/Using-a-combined-field-as-id-mapping-in-ElasticSearch-tp4047728.html > Sent from the ElasticSearch Users mailing list archive at Nabble.com. > > -- > 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/1389901947442-4047728.post%40n3.nabble.com. > For more options, visit https://groups.google.com/groups/opt_out. -- 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/22CD0FFA-DDF2-4D73-B96A-6AD75CA15CCF%40pilato.fr. For more options, visit https://groups.google.com/groups/opt_out.
