[ http://issues.apache.org/jira/browse/LUCENE-749?page=comments#action_12458830 ] Antonio Bruno commented on LUCENE-749: --------------------------------------
It would have in this way to be: ... - if (logic == AND) + if (logic == AND || logic == ANDNOT) { result = (BitSet) chain[i].bits(reader).clone(); ++i; } else { result = new BitSet(reader.maxDoc()); } for (; i < chain.length; i++) { doChain(result, reader, logic, chain[i]); } return result; ... > ChainedFilter does not work well in the event of filters in ANDNOT > ------------------------------------------------------------------ > > Key: LUCENE-749 > URL: http://issues.apache.org/jira/browse/LUCENE-749 > Project: Lucene - Java > Issue Type: Improvement > Affects Versions: 2.0.0 > Environment: software platform > Reporter: Antonio Bruno > Priority: Minor > > First ANDNOT operation takes place against a completely false bitset and will > always return zero results. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]