lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidworks.com>
Subject Re: Possible Solr optimization - not calculating score when sorting
Date Wed, 13 Feb 2013 15:46:27 GMT
On Wed, Feb 13, 2013 at 10:38 AM, Shawn Heisey <solr@elyograg.org> wrote:
> If you have a sort parameter that does not include score, and you don't
> request score on the fl parameter, is Solr smart enough to not bother
> calculating it

In general, yes, but it can somewhat rely on the implementation of
specific queries.

> I
> have a boost parameter using a few mathematical functions in my edismax
> handler definition.  I'd rather not have that calculation performed if it
> will never be used.

In this specific case, the answer is definitely yes.  The function for
a boosted query will only be evaluated in the score() method, which is
only called if you need scores.

> but with debugQuery, the full score calculation is present
> under explain.  I can't tell if the calculation is made just because I
> requested the debug.

It is.


-Yonik
http://lucidworks.com

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


Mime
View raw message