jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r239418 - /incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/WildcardQuery.java
Date Tue, 23 Aug 2005 14:53:26 GMT
Author: mreutegg
Date: Tue Aug 23 07:53:24 2005
New Revision: 239418

URL: http://svn.apache.org/viewcvs?rev=239418&view=rev
Log:
JCR-196: jcr:like() does not scale well on large value ranges
- do not use 'enum' as variable name

Modified:
    incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/WildcardQuery.java

Modified: incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/WildcardQuery.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/WildcardQuery.java?rev=239418&r1=239417&r2=239418&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/WildcardQuery.java
(original)
+++ incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/query/lucene/WildcardQuery.java
Tue Aug 23 07:53:24 2005
@@ -312,17 +312,17 @@
             if (hitsCalculated) {
                 return;
             }
-            TermEnum enum = new WildcardTermEnum(reader, field, propName, pattern);
+            TermEnum terms = new WildcardTermEnum(reader, field, propName, pattern);
             try {
                 // use unpositioned TermDocs
                 TermDocs docs = reader.termDocs();
                 try {
-                    while (enum.term() != null) {
-                        docs.seek(enum);
+                    while (terms.term() != null) {
+                        docs.seek(terms);
                         while (docs.next()) {
                             hits.set(docs.doc());
                         }
-                        if (!enum.next()) {
+                        if (!terms.next()) {
                             break;
                         }
                     }
@@ -330,7 +330,7 @@
                     docs.close();
                 }
             } finally {
-                enum.close();
+                terms.close();
             }
             hitsCalculated = true;
             // put to cache



Mime
View raw message