Hi all, I had to do sorting on search results based on some condition inside sort function. Let me put forward with example: Query: q=timestamp:123454321&sort=somefunction asc
But this "Somefunction" has to have if condition inside it, like If age =10, sum(value,x) Else sum(value,y) Actually somefunction is sum of (value,x) or (value,y) based on age condition. How to handle with this situation in solr search. I was trying to do with solr math functions using sort parameter in query, but it donot supports if condition. Is there any way to do this programatically(java)/solr plugin. I am new to solr, so please help me complete set of details. Thanks in anticipation. Gaurav -- View this message in context: http://lucene.472066.n3.nabble.com/Sorting-function-with-condition-tp2970036p2970036.html Sent from the Solr - User mailing list archive at Nabble.com.