jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r496434 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java
Date Mon, 15 Jan 2007 18:43:50 GMT
Author: mreutegg
Date: Mon Jan 15 10:43:49 2007
New Revision: 496434

URL: http://svn.apache.org/viewvc?view=rev&rev=496434
Log:
JCR-707: Range queries fail on large repositories

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java?view=diff&rev=496434&r1=496433&r2=496434
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java
Mon Jan 15 10:43:49 2007
@@ -410,7 +410,9 @@
                     try {
                         do {
                             Term term = terms.term();
-                            if (term != null && term.field() == testField) {
+                            if (term != null
+                                    && term.field() == testField
+                                    && term.text().startsWith(namePrefix)) {
                                 if (checkLower) {
                                     int compare = termCompare(term.text(), lowerTerm.text(),
propNameLength);
                                     if (compare > 0 || compare == 0 && inclusive)
{



Mime
View raw message