Hi,

You can get all matches via Hits if you want, it's just that Lucene will need 
to do some re-querying under the hood.  Why don't you use the search(....) 
method that takes HitCollector to get all docs - I thought that's what you were 
trying to use in the first place.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch


----- Original Message ----
> From: Hasan Diwan <[EMAIL PROTECTED]>
> To: java-user@lucene.apache.org
> Sent: Friday, May 16, 2008 12:28:46 AM
> Subject: Re: All results
> 
> Otis,
> 
> On 15/05/2008, Otis Gospodnetic wrote:
> >  That method should let you have *all* non-zero scoring docs if filter == 
> null.
> >  If that's not the case then I think that's a bug.  If you can come up with 
> > a 
> unit test that shows the bug, please post it in JIRA.
> 
> From the lucene source...
>   public final Hits search(Query query) throws IOException {
>     return search(query, (Filter)null);
>   }[1]
> 
> this will not print all results, according to [2]. I would like it to.
> 
> By default, lucene will not display low-scoring results -- how you set
> this minimum score is beyond a cursory glance at the source code --
> I'd like lucene to return all matching documents, irrespective of hit
> score. Many thanks for the help.
> -- 
> Cheers,
> Hasan Diwan 
> 1. Search.java, 2.3.1
> 2.  
> http://lucene.apache.org/java/2_3_1/api/core/org/apache/lucene/search/Searchable.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to