Re: complex Solr Sorting Expression in 4.0 alpha

2012-09-25 Thread lavesh
How to specify a range using if query ?
please help me in re-framing this using if query 
sort=map(sum(SCORE,11),77,77,sum(SCORE,33),sum(SCORE,44)) 
desc 



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


Re: complex Solr Sorting Expression in 4.0 alpha

2012-09-25 Thread Jack Krupansky
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.