Check the new if() function in Trunk, SOLR-2136. You could then use it in &bf= 
or &boost=

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

On 9. juni 2011, at 13.05, jlefebvre wrote:

> thanks it's ok
> 
> another question
> how to do a condition in &bq ?
> 
> something like &bq=iif(myfield1 = 0 AND myfield2 = 1;1;0)
> 
> thanks
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Boost-or-sort-a-query-with-range-values-tp3043328p3043406.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to