My projects uses CouchDB and thus each document contains a _id fields
that is uses for couch.
Usually the value for the _id is the [type + dash + number]. e.g
"Location-7".
I also have (in each document) and Id field which holds the integer
value. e.g 7.
In ES I don't need the long string _id used for couch, so I defined (I'm
using NEST):
IdProperty = "id"
And so, my documents are stored like this: /index/Locations/7 instead of *
/index/Locations/Location-7*
The problem is that ES disregards the _id field all together.
Is there a way to tell ES to serialize the _id field as if it was any
other field?
Not sure what you mean by "And so, my documents are stored like this:
/index/Locations/7 instead of /index/Locations/Location-7". Fields are
stored, not documents.
Cheers,
Ivan
On Sat, Aug 24, 2013 at 8:32 AM, Liron Cohen cliron1@gmail.com wrote:
Hello,
My projects uses CouchDB and thus each document contains a _id fields
that is uses for couch.
Usually the value for the _id is the [type + dash + number]. e.g
"Location-7".
I also have (in each document) and Id field which holds the integer
value. e.g 7.
In ES I don't need the long string _id used for couch, so I defined (I'm
using NEST):
IdProperty = "id"
And so, my documents are stored like this: /index/Locations/7 instead
of /index/Locations/Location-7
The problem is that ES disregards the _id field all together.
Is there a way to tell ES to serialize the _id field as if it was any
other field?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.