lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc ChainedFilter.java
Date Mon, 17 May 2004 13:41:03 GMT
kelvint     2004/05/17 06:41:03

  Modified:    contributions/miscellaneous/src/java/org/apache/lucene/misc
                        ChainedFilter.java
  Log:
  First filter gets modified if operation is an AND (which is terrible if its a
  cached filter and not a throw-away one).
  Patch by Rick Mann (rmann at keepmedia.com).
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-lucene-sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc/ChainedFilter.java
  
  Index: ChainedFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc/ChainedFilter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ChainedFilter.java	23 Jun 2003 01:17:12 -0000	1.2
  +++ ChainedFilter.java	17 May 2004 13:41:03 -0000	1.3
  @@ -174,7 +174,7 @@
            */
           if (logic == AND)
           {
  -            result = chain[i].bits(reader);
  +            result = chain[i].bits(reader).clone();
               ++i;
           }
           else
  @@ -209,7 +209,7 @@
            */
           if (logic[0] == AND)
           {
  -            result = chain[i].bits(reader);
  +            result = chain[i].bits(reader).clone();
               ++i;
           }
           else
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message