Re: Solr query field (qf) conditional boost

2014-09-29 Thread Aman Tandon
Hi, Correct me if i am unable to understand your need properly. *text^0.5 title^10.0 ProductLine^5* doc1 { ProductLine = abc, Author= rahul text= abcdef title = jai Ho } doc2 { ProductLine = xyz *Extra boost 10* Author = Tom, text = abcdef, title= Solr Lu

RE: Solr query field (qf) conditional boost

2014-09-29 Thread shamik
Thanks Markus, let me play around with the functions and see if I can achieve the results. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-query-field-qf-conditional-boost-tp4161783p4161803.html Sent from the Solr - User mailing list archive at Nabble.com.

RE: Solr query field (qf) conditional boost

2014-09-29 Thread Markus Jelsma
2014 22:54 > To: solr-user@lucene.apache.org > Subject: RE: Solr query field (qf) conditional boost > > Thanks Markus. Well, I tried using a conditional if-else function, but it > doesn't seem to work for boosting field. What I'm trying to do is boost > ProductLine fiel

RE: Solr query field (qf) conditional boost

2014-09-29 Thread shamik
Thanks Markus. Well, I tried using a conditional if-else function, but it doesn't seem to work for boosting field. What I'm trying to do is boost ProductLine field by 5, if the result documents contain Author = 'Tom'. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-quer

RE: Solr query field (qf) conditional boost

2014-09-29 Thread Markus Jelsma
Hi - you need to use function queries via the bf parameter. The function exists() and in some cases query() will do the conditional work, depending on your use case. Markus -Original message- > From:Shamik Bandopadhyay > Sent: Monday 29th September 2014 21:30 > To: solr-user@lucene