lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Li <fancye...@gmail.com>
Subject Re: Updating a document.
Date Sun, 04 Mar 2012 16:46:45 GMT
document id will be subject to changes. and all segments' document id is
starting from zero. after a merge, document ids will also change.

On Mon, Mar 5, 2012 at 12:31 AM, Benson Margulies <bimargulies@gmail.com>wrote:

> I am walking down the document in an index by number, and I find that
> I want to update one. The updateDocument API only works on queries and
> terms, not numbers.
>
> So I can call remove and add, but, then, what's the document's number
> after that? Or is that not a meaningful question until I make a new
> reader?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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