jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r496888 - in /jackrabbit/tags/1.2: RELEASE-NOTES.txt jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java
Date Tue, 16 Jan 2007 23:13:39 GMT
Author: jukka
Date: Tue Jan 16 15:13:38 2007
New Revision: 496888

URL: http://svn.apache.org/viewvc?view=rev&rev=496888
Log:
1.2: Merged JCR-707 changes from branches/1.2 to tags/1.2 (shortcut for retagging the whole
tree)

Modified:
    jackrabbit/tags/1.2/RELEASE-NOTES.txt
    jackrabbit/tags/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java

Modified: jackrabbit/tags/1.2/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewvc/jackrabbit/tags/1.2/RELEASE-NOTES.txt?view=diff&rev=496888&r1=496887&r2=496888
==============================================================================
--- jackrabbit/tags/1.2/RELEASE-NOTES.txt (original)
+++ jackrabbit/tags/1.2/RELEASE-NOTES.txt Tue Jan 16 15:13:38 2007
@@ -81,6 +81,7 @@
     * [JCR-687] - UUID compareTo and hashCode
     * [JCR-692] - jackrabbit-jca rar archive misses required classes
     * [JCR-695] - Repository requires access to external resources
+    * [JCR-707] - Range queries fail on large repositories
 
 Release Contents
 ----------------

Modified: jackrabbit/tags/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java
URL: http://svn.apache.org/viewvc/jackrabbit/tags/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java?view=diff&rev=496888&r1=496887&r2=496888
==============================================================================
--- jackrabbit/tags/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java
(original)
+++ jackrabbit/tags/1.2/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java
Tue Jan 16 15:13:38 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