Re: sort by custom function of similarity score

2016-05-26 Thread Joel Bernstein
Reranking is done after the collapse. So you'll get the original score in cscore() Joel Bernstein http://joelsolr.blogspot.com/ On Thu, May 26, 2016 at 12:56 PM, aanilpala wrote: > with cscore() in collapse, will I get the similarity score from lucene or > the > reranked score by the raranker i

Re: sort by custom function of similarity score

2016-05-26 Thread aanilpala
with cscore() in collapse, will I get the similarity score from lucene or the reranked score by the raranker if I am using a plugin that reranks the results? I guess the answer depends on which of fq or rq is applied first. -- View this message in context: http://lucene.472066.n3.nabble.com/sor

Re: sort by custom function of similarity score

2016-05-26 Thread Joel Bernstein
Also if you're using the min/max param within a collapse you can use the cscore() function, which is much more efficient then the query() function. But cscore() is only available within the context of a collapse, to select the group head. Outside of the collapse, query() is the approach. Joel Bern

Re: sort by custom function of similarity score

2016-05-26 Thread Ahmet Arslan
Hi, Probably, using the 'query' function query, which returns the score of a given query. https://cwiki.apache.org/confluence/display/solr/Function+Queries#FunctionQueries-UsingFunctionQuery On Thursday, May 26, 2016 1:59 PM, aanilpala wrote: is it allowed to provide a sort function (sortspe