Providing id for each document in Index while indexing data from HDFS to elasticsearch index

Hi

I am new to elasticsearch- hadoop . Currently trying to index data stored
in HDFS to elasticsearch index. I am to do that successfully . But while
doing that my only concern is when we index the data by help of code , then
each document is provided with an id field , which is randomly generated.
Is there any way by which we can manually assign the value , which will be
unique ?
Currently I am using the below code to index the data :-

JobConf conf = new JobConf();
conf.set("es.nodes", "es-server:9200");
conf.set("es.resource", "index_name/index_type");
conf.setOutputFormat(EsOutputFormat.class);

this forms the index in proper manner as shown in the screen shot attached.
Where the id field is marked in red.
So as my concern I want that id field to be manually provided.
Please let me know the solution .

Thanks
Ashit

--
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/81042757-b6d7-4b39-8837-03a05ca12a0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.