lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Bruno (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-749) ChainedFilter does not work well in the event of filters in ANDNOT
Date Fri, 15 Dec 2006 16:09:22 GMT
    [ 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message