Re: Re-ranking query: issue with sort criteria and how to disable it

2016-05-09 Thread Andrea Gazzarini
Hi Joel, just created [1] a new issue for that. Many thanks again Andrea [1] https://issues.apache.org/jira/browse/SOLR-9095 On 06/05/16 20:21, Joel Bernstein wrote: Maybe one ticket would work. Something like: "ReRanker should gracefully handle sorts without score". Then you can describe t

Re: Re-ranking query: issue with sort criteria and how to disable it

2016-05-06 Thread Joel Bernstein
Maybe one ticket would work. Something like: "ReRanker should gracefully handle sorts without score". Then you can describe the two scenarios. It might be that these problems are tackled outside of the ReRankQParserPlugin. Possibly the QueryComponent could add some logic that would tack on the seco

Re: Re-ranking query: issue with sort criteria and how to disable it

2016-05-06 Thread Andrea Gazzarini
Hi Joel, many thanks for the response and sorry for this late reply. About the first question, I can open a JIRA for that. Instead, for disabling the component I think it would be useful to add - an automatic behaviour: if the sort criteria excludes the score the re-ranking could be automatically

Re: Re-ranking query: issue with sort criteria and how to disable it

2016-05-06 Thread Joel Bernstein
I would consider the NPE when sort by score is not included a bug. There is the work around, that you mentioned, which is to have a compound sort which includes score. The second issue though of disabling the ReRanker when someone doesn't include a sort by score, would be a new feature of the ReRa

Re-ranking query: issue with sort criteria and how to disable it

2016-05-06 Thread Andrea Gazzarini
Hi guys, I have a Solr 4.10.4 instance with a RequestHandler that has a re-ranking query configured like this: dismax ... {!boost b=someFunction() v=$q} {!rerank reRankQuery=$rqq reRankDocs=60 reRankWeight=1.2} score desc Everythi