lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spyros Kapnissis <ska...@yahoo.com.INVALID>
Subject BooleanQuery rewrite optimization
Date Mon, 08 Aug 2016 21:21:27 GMT
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? 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message