lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: Document ID
Date Fri, 24 Jun 2005 19:11:21 GMT
Hi!
>Is there any way to force the document id inside the lucene index, if
>I have my own internal numbering scheme, it would be nice to have that
>reflected inside the lucene index...anyway?
>  
Simply put your ID as additional field to your document. You never 
should rely on lucenes document id as it might change due to delete 
documents during optimize.

---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message