Re: Expression Sort in Solr

2012-07-31 Thread Mikhail Khludnev
how exactly? On Tue, Jul 31, 2012 at 1:19 PM, lavesh wrote: > yes i have, its not working as per need > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Expression-Sort-in-Solr-tp3998050p3998310.html > Sent from the Solr - User mailing list archive at Nabble.com. >

Re: Expression Sort in Solr

2012-07-31 Thread lavesh
yes i have, its not working as per need -- View this message in context: http://lucene.472066.n3.nabble.com/Expression-Sort-in-Solr-tp3998050p3998310.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Expression Sort in Solr

2012-07-31 Thread Mikhail Khludnev
Hello, have you tried http://wiki.apache.org/solr/FunctionQuery/#if ? On Mon, Jul 30, 2012 at 3:05 PM, lavesh 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(PRI

Re: Expression Sort in Solr

2012-07-26 Thread lavesh
Hi i know we look to create at index time however all values are dynamic if(exists(query(COUNTRY:(22 33 44)),100,20),INCOME ) IS NOT WORKING ALSO I NEED NESTED IF On Thu, Jul 26,

Re: Expression Sort in Solr

2012-07-26 Thread Erik Hatcher
How dynamic are those numbers? If this expression can be computed at index time into a "sort_order" field, that'd be best. Otherwise, if these factors are truly dynamic at run-time, look at the function query sorting capability here: