jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r520882 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene: ChildAxisQuery.java DerefQuery.java ParentAxisQuery.java
Date Wed, 21 Mar 2007 13:31:43 GMT
Author: mreutegg
Date: Wed Mar 21 06:31:42 2007
New Revision: 520882

URL: http://svn.apache.org/viewvc?view=rev&rev=520882
Log:
JCR-806: Scorer.skipTo() does not initialize hits

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildAxisQuery.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DerefQuery.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ParentAxisQuery.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildAxisQuery.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildAxisQuery.java?view=diff&rev=520882&r1=520881&r2=520882
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildAxisQuery.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ChildAxisQuery.java
Wed Mar 21 06:31:42 2007
@@ -271,6 +271,7 @@
          * {@inheritDoc}
          */
         public boolean skipTo(int target) throws IOException {
+            calculateChildren();
             nextDoc = hits.nextSetBit(target);
             return nextDoc > -1;
         }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DerefQuery.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DerefQuery.java?view=diff&rev=520882&r1=520881&r2=520882
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DerefQuery.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DerefQuery.java
Wed Mar 21 06:31:42 2007
@@ -241,6 +241,7 @@
          * {@inheritDoc}
          */
         public boolean skipTo(int target) throws IOException {
+            calculateChildren();
             nextDoc = hits.nextSetBit(target);
             return nextDoc > -1;
         }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ParentAxisQuery.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ParentAxisQuery.java?view=diff&rev=520882&r1=520881&r2=520882
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ParentAxisQuery.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/ParentAxisQuery.java
Wed Mar 21 06:31:42 2007
@@ -243,6 +243,7 @@
          * {@inheritDoc}
          */
         public boolean skipTo(int target) throws IOException {
+            calculateParent();
             nextDoc = hits.nextSetBit(target);
             return nextDoc > -1;
         }



Mime
View raw message