lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: Pre-filtering for expensive query
Date Sat, 30 Aug 2008 09:43:26 GMT
Can you tell us a bit more about what you custom query does? Perhaps  
you can build the "candidate filter" and reuse it over and over again?


        karl

30 aug 2008 kl. 03.34 skrev Matt Ronge:

> Hi all,
>
> I am working on implementing a new Query, Weight and Scorer that is  
> expensive to run. I'd like to limit the number of documents I run  
> this query on by first building a candidate set of documents with a  
> boolean query. Once I have that candidate set, I was hoping I could  
> build a filter off of it, and issue that along with my expensive  
> query. However, after reading the code I see that filtering is done  
> during the search, and not before hand. So my initial boolean query  
> won't help in limiting the number of documents scored by my  
> expensive query.
>
> Has anyone done any work into restricting the set of docs that a  
> query operates on?
> Or should I just implement something myself in a custom scorer?
>
> Thanks in advance,
> --
> Matt Ronge
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


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


Mime
View raw message