lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alvaro Cabrerizo <>
Subject Re: Does sorting skip everything having to do with relevancy?
Date Fri, 04 Apr 2014 19:48:42 GMT

If you dont want to waste your cpu time, then comment the boost parameter
in the query parser defined in your solrconfig.xml. If you cant do that,
then you can overwrite it sending the boost parameter for example using the
constant function  (e.g.  http://..../...&boost=1&sort=your_sort). The
parameter boost will be overwritten if it is not defined as an invariant.


On Fri, Apr 4, 2014 at 4:12 PM, Shawn Heisey <> wrote:

> On 4/4/2014 12:48 AM, Alvaro Cabrerizo wrote:
> > By default solr is using the sort parameter over the "score field". So if
> > you overwrite it using other sort field, yes solr will use the parameter
> > you've provided. Remember, you can use multiple fields for
> > sorting<> so
> > you can make something like: sort score desc, your_field1 asc,
> your_field2
> > desc....
> >
> > The score of documents is calculated on every query (it does not depend
> on
> > the sort parameter or the debugQueryParameter) and the debubQuery is
> only a
> > mechanism for showing (or hidding) how score was calculated. If you want
> to
> > see a document score for a particular query (apart from the debugQuery)
> you
> > can ask for it in the solr response adding the parameter *fl=*,score* to
> > your request.
> These are things that I already know.
> What I want to know is whether Solr has code in place that will avoid
> wasting CPU cycles calculating the score that will never be displayed or
> used, *especially* the complex boost parameter that's in the request
> handler definition (solrconfig.xml).
> <str
> name="boost">min(recip(abs(ms(NOW/HOUR,registered_date)),1.92901e-10,1.5,1.5),0.85)</str>
> Do I need to send 'boost=' as a parameter (along with my sort) to get it
> to avoid that calculation?
> Thanks,
> Shawn

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