Re: Does sorting skip everything having to do with relevancy?

2014-04-06 Thread Mikhail Khludnev
Arhgh... It seems like Functions Queries (obviously) never throw an exception. I have to scratch my own which throws always. Here is the proof that boost is lazy https://gist.github.com/m-khl/10010541 On Sun, Apr 6, 2014 at 12:54 AM, Shawn Heisey wrote: > On 4/5/2014 1:21 PM, Mikhail Khludne

Re: Does sorting skip everything having to do with relevancy?

2014-04-05 Thread Shawn Heisey
On 4/5/2014 1:21 PM, Mikhail Khludnev wrote: > I suppose "e" yields syntax error. Therefore, this case doesn't prove > anything yet. > Haven't you tried sqrt(-1) or log(-1) ? Using boost=sqrt(-1) is error-free whether I include the sort parameter or not. That seems like a bug. Thanks, Shawn

Re: Does sorting skip everything having to do with relevancy?

2014-04-05 Thread Mikhail Khludnev
Shawn, I suppose "e" yields syntax error. Therefore, this case doesn't prove anything yet. Haven't you tried sqrt(-1) or log(-1) ? On Sat, Apr 5, 2014 at 1:47 AM, Shawn Heisey wrote: > On 4/4/2014 3:13 PM, Mikhail Khludnev wrote: > >> I suppose SolrIndexSearcher.buildTopDocsCollector() doesn't

Re: Does sorting skip everything having to do with relevancy?

2014-04-04 Thread Shawn Heisey
On 4/4/2014 3:13 PM, Mikhail Khludnev wrote: I suppose SolrIndexSearcher.buildTopDocsCollector() doesn't create a Collector which calls score() in this case. Hence, it shouldn't waste CPU. Just my impression. Haven't you tried to check it supplying some weird formula, which throws exception? I

Re: Does sorting skip everything having to do with relevancy?

2014-04-04 Thread Mikhail Khludnev
Hello Shawn, I suppose SolrIndexSearcher.buildTopDocsCollector() doesn't create a Collector which calls score() in this case. Hence, it shouldn't waste CPU. Just my impression. Haven't you tried to check it supplying some weird formula, which throws exception? On Sat, Apr 5, 2014 at 12:02 AM, Sh

Re: Does sorting skip everything having to do with relevancy?

2014-04-04 Thread Shawn Heisey
On 4/4/2014 1:48 PM, Alvaro Cabrerizo wrote: 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. htt

Re: Does sorting skip everything having to do with relevancy?

2014-04-04 Thread Alvaro Cabrerizo
Hi, 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

Re: Does sorting skip everything having to do with relevancy?

2014-04-04 Thread Shawn Heisey
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

Re: Does sorting skip everything having to do with relevancy?

2014-04-03 Thread Alvaro Cabrerizo
Hi, 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 somethin

Does sorting skip everything having to do with relevancy?

2014-04-03 Thread Shawn Heisey
If I provide a sort parameter, will Solr (4.6.1) skip score/boost processing? In particular I would like to know what happens if I have a boost parameter (with a complex function) for edismax search, but I include a sort parameter on one of my fields. I am using distributed search. I do know tha