Re: BooleanQuery: BooleanClause.Occur.MUST_NOT seems to require at least one BooleanClause.Occur.MUST

2020-11-06 Thread Nissim Shiman
; (MUST_NOT) clauses don't match any hits. > > On Thu, Nov 5, 2020 at 9:07 PM Nissim Shiman > wrote: > >> Hello Apache Lucene team members, >> I have found that constructing a BooleanQuery with just >> a BooleanClause.Occur.MUST_NOT will return

BooleanQuery: BooleanClause.Occur.MUST_NOT seems to require at least one BooleanClause.Occur.MUST

2020-11-05 Thread Nissim Shiman
ith a BooleanQuery with just a  BooleanClause.Occur.MUST (i.e. results will return fine if they match). Is this by design or is this an issue? Thanks You, Nissim Shiman