You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Dirk Hennig <dh...@rrzn.uni-hannover.de> on 2005/10/26 11:06:35 UTC

Iterate through all entries

Hallo,

I want to iterate through all documents in my index (to add some new 
fields).
What ist the best / fastest way to do this?

Greetings,
Dirk Hennig


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


Re: Iterate through all entries

Posted by Yonik Seeley <ys...@gmail.com>.
To loop through all documents, simply go from 0 to maxDoc() and check
isDeleted() on each.

-Yonik
Now hiring -- http://forms.cnet.com/slink?231706

On 10/26/05, Dirk Hennig < dhennig@rrzn.uni-hannover.de> wrote:
>
> Hallo,
>
> I want to iterate through all documents in my index (to add some new
> fields).
> What ist the best / fastest way to do this?
>
> Greetings,
> Dirk Hennig
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

 <http://forms.cnet.com/slink?231706>