Issue #2 new

Normalizing should take into account subquery boosts

Matt Chaput
repo owner created an issue

Consider this query:

{{{

!python

And([Term(), And([Term(), Term()], boost=2.0)]) }}}

Normalizing will Merge the two Ands, but that changes the meaning of the query.

Normalize should either not merge CompoundQueries with different boosts, or should apply the subquery's boost to its members before hoisting them into the parent query.