Can we see the query and the output with &debugQuery=on? Look especially for ConstantScoreQuery in the debug output, if you do certain searches then all the boosting stuff is ignored, e.g. *:*.
Best Erick On Wed, Jul 4, 2012 at 9:39 AM, Danilak Michal <michal.dani...@prezi.com> wrote: > Hi, > > I have the following problem. > I would like to give a boost to the whole documents as I index them. I am > sending to solr xml in the form: > > <add><doc boost="2.0">....</doc></add> > > But it does't seem to alter the search scores in any way. I would expect > that to multiply the final search score by two, am I correct? > Probably I would need to alter schema.xml, but I found only information on > how to do that for specific fields (just put omitNorms=false into the field > tag). But what should I do, if I want to boost the whole document? > > Note: by boosting a whole document I mean, that if document A has search > score 10.0 and document B has search score 15.0 and I give document A the > boost 2.0, when I index it, I would expect its search score to be 20.0. > > Thanks in advance! > > Michal Danilak