Hi Nilesh, No you can't do that. Though you may store your own id as a separate field for whatever purpose you want. I don't see any reason why you'd essentially want to override the lucene document id with your own. Let me know in case there's something I didn't get.
-- Anshum Gupta http://ai-cafe.blogspot.com On Thu, Oct 21, 2010 at 9:07 AM, Nilesh Vijaywargiay <nilesh.vi...@gmail.com > wrote: > I understand lucene provides its own document id. can we assign this id in > any way? >