lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Mixing non scored an scored queries
Date Tue, 15 Jul 2008 13:53:49 GMT
No, you create the filter via TermDocs/TermEnum. You can also cache
them. Creating filters is *much* faster than you think <G>.

Alternatively, you could boost everything *else* by some large factor
and then the unimportant fields would add relatively little to the final
score.

Best
Erick

On Tue, Jul 15, 2008 at 9:34 AM, John Patterson <jdp2000@gmail.com> wrote:

>
>
>
> Erick Erickson wrote:
> >
> > One way would be to create Filters and add them in with
> > ConstantScoreRangeQuery....
> >
>
> Would that mean running the query twice?  i.e. once to create the filter
> and
> once to rank the results?
> --
> View this message in context:
> http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18465466.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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