Re: Using a combined field as id mapping in ElasticSearch

2014-01-16 Thread David Pilato
"path" : "doc_rev_id" >} >} > } > { >"type" : "couchdb", >"couchdb" : { >"script" : "ctx.doc.doc_rev_id = ctx.doc._id + '_' + ctx.doc._rev" >} > } > > > &g

Re: Using a combined field as id mapping in ElasticSearch

2014-01-16 Thread vinamar
t;couchdoc" : { "_id" : { "path" : "doc_rev_id" } } } { "type" : "couchdb", "couchdb" : { "script" : "ctx.doc.doc_rev_id = ctx.doc._id + '_' + ctx.doc._rev" } } --

Re: Using a combined field as id mapping in ElasticSearch

2014-01-16 Thread David Pilato
ed 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. > > { >

Using a combined field as id mapping in ElasticSearch

2014-01-16 Thread vinamar
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 d