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 <bimargul...@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-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

Reply via email to