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

sort by custom function of similarity score

2016-05-26 Thread aanilpala
is it allowed to provide a sort function (sortspec) that is using similarity score. for example something like in the following: sort=product(2,score) desc seems that it won't work. is there an alternative way to achieve this? using solr6 thanks in advance. -- View this message in context:

Re: collapsing on a filter query

2016-05-26 Thread aanilpala
thanks, it indeed works that way. I was curious if the same would work with rq but it seems not (from the results I can at least say that one reranker is ignored). Is there a way to combine two rq components? PS: I know now it is another question, should I open a start thread? -- View this me

collapsing on a filter query

2016-05-26 Thread aanilpala
hi there, I can't seem to find a way to collapse results on a filter query. For example, imagine that I have a query with filter is_valid:true. Now, if I want to collapse the results on another field than is_valid (i.e user_id), neither of the following works: fq=is_valid:true AND {!collapse fiel