ElasticSearch DocumentId

Hi I am new to elastic search I want to know that how does elastic search
maintain the doc_id field for each document .and can we manually give the
doc_id while indexing and document?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1688b053-3fd9-47d5-a291-8ad3faa6fc05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Each doc has an _id. It could be autogenerated when using POST index/type or set at index time using PUT index/type/id

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 26 déc. 2014 à 15:18, Abhimanyu Nagrath abhimanyunagrath@gmail.com a écrit :

Hi I am new to elastic search I want to know that how does elastic search maintain the doc_id field for each document .and can we manually give the doc_id while indexing and document?

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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1688b053-3fd9-47d5-a291-8ad3faa6fc05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/675FE005-9CEF-4588-BB1F-E8CA412DE131%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

yes you can in my case i use userId as doc_id

On Friday, 26 December 2014 19:48:14 UTC+5:30, Abhimanyu Nagrath wrote:

Hi I am new to elastic search I want to know that how does elastic search
maintain the doc_id field for each document .and can we manually give the
doc_id while indexing and document?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/eea5f111-8030-4e47-b5c2-0db92502321f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.