Hello all,
I noticed while debugging a query that BooleanQuery will rewrite itself to
remove FILTER clauses that are also MUST as an optimization/simplification,
which makes total sense. So (+f:x #f:x) will become (+f:x).
However, shouldn't there also be another optimization to remove FILTER clauses
that are also SHOULD, while converting them to MUST? So, for eg. query (f:x
#f:x) will become (+f:x).
I did an initial simple implementation and the tests seem to pass. Are there
any cases where this does not hold?