Hello, have you tried http://wiki.apache.org/solr/FunctionQuery/#if ?
On Mon, Jul 30, 2012 at 3:05 PM, lavesh <lavesh.ra...@gmail.com> wrote: > I am working on solr for search. I required to perform a expression sort > such > that : > > say str = ((IF AVAILABLE IN (1,2,3),100,IF(AVAILABLE IN (4,5,6),80,100)) + > IF(PRICE>1000,70,40)) > > need to order by (if(str>100,40+str/40,33+str/33)+SOMEOTHERCOLUMN) DESC > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Expression-Sort-in-Solr-tp3998050.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Sincerely yours Mikhail Khludnev Tech Lead Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>