Thanks Philipp
> 2007/4/5, Philipp Nanz <philippn@gmail.com>:
> > That *is* the actual id in the index. There is no other.
> > You should be careful using it outside of Lucene though, because
> > Lucene may rearrange the document ids during optimization for example.
> >
> > If you need an application id, add it as an additional stored field to
> > each document and retrieve that.
> >
>
but the question is, if I add, say, a document to my index, is lucene going
to re arrange the internal IDs? can't I trust them?
Would you tell me in exactly which situation or action they will rearrange
the IDs?
--
Regards,
Mohammad
|