You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by dmitri <ev...@mail.ru> on 2007/02/22 01:49:07 UTC

Scoring while sorting

What is the point to calculate score if the result set is going to be sorted
by some field?

Is it ok to replace several terms query (a OR b OR c) with MatchAllQuery and
RangeFilters (from a to a, from b to b, from c to c) if sorting is needed?
Won't it be faster?
---------------------
dmitri
-- 
View this message in context: http://www.nabble.com/Scoring-while-sorting-tf3270213.html#a9092111
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


Re: Scoring while sorting

Posted by Yonik Seeley <yo...@apache.org>.
On 2/21/07, dmitri <ev...@mail.ru> wrote:
> What is the point to calculate score if the result set is going to be sorted
> by some field?
>
> Is it ok to replace several terms query (a OR b OR c) with MatchAllQuery and
> RangeFilters (from a to a, from b to b, from c to c) if sorting is needed?
> Won't it be faster?

Yes.

Solr actually has an optional optimization where a query with a sort
without a score component can use a cached filter and re-sort that.

-Yonik

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