lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Scoring while sorting
Date Thu, 22 Feb 2007 03:34:35 GMT
On 2/21/07, dmitri <evysq@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


Mime
View raw message