Re: Conditions in function query

2015-01-15 Thread shamik
This one worked. if(termfreq(Source,'A'),sum(Likes,3),if(termfreq(Source,'B'),sum(Likes,3),0)) -- View this message in context: http://lucene.472066.n3.nabble.com/Conditions-in-Boost-function-query-tp4179687p4179906.html Sent from the Solr - User mailing list archive at Nabble.com.

Conditions in function query

2015-01-14 Thread Shamik Bandopadhyay
Hi, Just wanted to know if it's possible to provide conditions with a function query. Right now,I'm using the following functions to boost on Likes data. bf=recip(ms(NOW/DAY,PublishDate),3.16e-11,1,1)^2.0 sum(Likes,2) What I would like to do is to apply the boost on Likes based on source

Re: Conditions in function query

2015-01-14 Thread Erick Erickson
) But for multiple, I'm struggling to find the right syntax. I tried using OR in conjunction but hasn't worked out so far. -- View this message in context: http://lucene.472066.n3.nabble.com/Conditions-in-Boost-function-query-tp4179687p4179696.html Sent from the Solr - User mailing list

Re: Conditions in function query

2015-01-14 Thread Erick Erickson
Why won't the if clause work? See: https://cwiki.apache.org/confluence/display/solr/Function+Queries On Wed, Jan 14, 2015 at 5:29 PM, Shamik Bandopadhyay sham...@gmail.com wrote: Hi, Just wanted to know if it's possible to provide conditions with a function query. Right now,I'm using

Re: Conditions in function query

2015-01-14 Thread shamik
worked out so far. -- View this message in context: http://lucene.472066.n3.nabble.com/Conditions-in-Boost-function-query-tp4179687p4179696.html Sent from the Solr - User mailing list archive at Nabble.com.