On Thu, May 17, 2012 at 4:51 PM, Tom Burton-West <tburt...@umich.edu> wrote:
> But in Solr 3.6 I am not seeing the boost factor called out. > > On the other hand it looks like it may now be incoroporated in the > queryNorm (Please see example below). > > Is there a bug in Solr 3.6 debugQueries? Is there some new behavior > regarding boosts and queryNorms? or am I missing something obvious? > Your queries are different. your first example is a simple termquery. The second example is a boolean query. if you have a booleanquery(green frog) with a boost of 5, it incorporates its boost into the query norm passed down to its children. So when leaf nodes normalize their weight, it includes all the boosts from the parent hierarchy. You can see what I mean if you look at BooleanWeight.normalize() Because of how this is done, 3.x's explain confusingly only shows the leaf node's explicit boost, since thats all it really knows. To see what i mean try something like booleanquery(green^2 frog^3)^5 In 4.x these boosts are split apart from and kept separate from the query norm, so we could actually improve the explanations here I think. -- lucidimagination.com