lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Norouzi" <mnr...@gmail.com>
Subject Re: I need the internal lucene's document id from Hits
Date Thu, 05 Apr 2007 11:24:04 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message