lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toke Eskildsen>
Subject Re: Score 0
Date Wed, 25 Jun 2008 08:33:44 GMT
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:
For additional commands, e-mail:

View raw message