Sorry, but as the wiki for the "map" function states, "min,max,target[, and optional default value] are constants", not full function value expressions. Good improvement to request though.

See:
http://wiki.apache.org/solr/FunctionQuery#map

You probably need to resort to "if" functions.

-- Jack Krupansky

-----Original Message----- From: lavesh
Sent: Tuesday, September 25, 2012 9:58 AM
To: solr-user@lucene.apache.org
Subject: complex Solr Sorting Expression in 4.0 alpha

I want to perform complex sorting expression for which i have upgraded to
solr-aplha 4.0

apache-solr-4.0.0-BETA/select?q=:&sort=map(sum(SCORE,11),77,77,sum(SCORE,33),sum(SCORE,44))
desc

but when i try to run this , its not working.

can anyone help me for such complex queries of solr



--
View this message in context: http://lucene.472066.n3.nabble.com/complex-Solr-Sorting-Expression-in-4-0-alpha-tp4010160.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to