Is it possible to have the _id be auto-generated and store it so that it's
in the _source field under a different name, like say "id" instead of "_id"?
Is it possible to have the _id be auto-generated and store it so that it's
in the _source field under a different name, like say "id" instead of "_id"?
I'm using elasticsearch as the database for a service. It would make things
easier. For example, I could just return the _source field when other apps
query my service. Related to that is that on the javascript client side, I
am inserting the _id field into the _source JSON object as "id" and using
that as the model for two way data-binding. If the id field was in the
source already, I wouldn't have to keep track of this.
On Tuesday, June 17, 2014 4:26:07 PM UTC-7, Adrien Grand wrote:
No, it isn't possible.
Why would you like to have the id of the document included in _source?
On Tue, Jun 17, 2014 at 8:16 PM, Johny Lam <john...@gmail.com
<javascript:>> wrote:
Is it possible to have the _id be auto-generated and store it so that
it's in the _source field under a different name, like say "id" instead of
"_id"?
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.