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 Bernstein
http://joelsolr.blogspot.com/

On Thu, May 26, 2016 at 12:32 PM, Ahmet Arslan <iori...@yahoo.com.invalid>
wrote:

> 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 <aanilp...@gmail.com> wrote:
> 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:
> http://lucene.472066.n3.nabble.com/sort-by-custom-function-of-similarity-score-tp4279228.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to