lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo Valleri" <paolo.vall...@gmail.com>
Subject Re: Score 0
Date Wed, 25 Jun 2008 19:47:30 GMT
 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 <te@statsbiblioteket.dk>:

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


-- 
Paolo Valleri

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