Thank for answer.
For take docid of all document in the index I need to write a class
that implement indexReader or there is an other method ?

paolo


2008/6/25 Toke Eskildsen <[EMAIL PROTECTED]>:

> On Wed, 2008-06-25 at 09:29 +0200, Paolo Valleri wrote:
> > For several reasons I need also to know the documents that don't match
> the
> > input query. For example with score 0.
>
> Make a list of the docid for all the non-deleted documents in the index.
> Collect the docids from the search-result. Subtract the two lists.
>
> You can get the non-deleted docids by iterating from 0 to maxDoc()-1
> (from IndexReader) and using the IndexReaders isDeleted(docid).
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Paolo Valleri

Reply via email to