Hi,
Not sure if I fully understood your case, but here are some ideas:
- if you have small number of ids you can have score_%id% field that can be used for sorting - if number of ids is large you can use sort by function to parse score data and find right score
- if number of results is small, calculate score after returning results

Not sure why you have multiple score fields? Can you sum it in advance and have one score per id? Or you have multiple ids per request?

Regards,
Emir

On 31.03.2016 10:07, ~$alpha` wrote:
I have a column in Mysql and I need to do a complex sorting in Solr.

Considering below column

|175#40|173#17|174#13|134#11|17#8|95#4|64#3|116#3|343#0|
where 175 indicates values to be matches and 40 implies score.

So if logged in user value is 175 he will give a score of 40 and if the
value is 173 he should get a score of 17 and so on...

I have multiple such columns whose sum in above manner is my sorting
expression.

How can I do in Solr ?




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Complex-Sort-tp4267155.html
Sent from the Solr - User mailing list archive at Nabble.com.

--
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/

Reply via email to