You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by matteosilv <Ma...@gmail.com> on 2012/06/06 18:31:17 UTC

Single term boosting with dismax

Hi, i'm using dismax query parser.

i would like to boost on a single term at query time, instead that on the
whole field.
i should probably use the standard query parser, however i've also overriden
the dismax query parser to handle payload boosting on terms.

what i want to obtain is a double boost (query and indexing time) .
for example

q = cat^2.0 dog^3.0 & qf=text & defType=myPayloadHandler 

having 
   text =  cat|3.0 dog|3.0

in my index
obtaining (excluding other score components)   score(cat) =
3.0*2.0*restOfScore
                                                                    
score(dog)= 3.0*3.0 *restOfScore

however it seems impossible doing it with myPayloadHandler (that simply
override dismax)
it is only possible boosting on a field like that qf=text^10.0 
Am i right? how can i boost on a single field at query time?



--
View this message in context: http://lucene.472066.n3.nabble.com/Single-term-boosting-with-dismax-tp3988027.html
Sent from the Solr - User mailing list archive at Nabble.com.