jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r709207 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Date Thu, 30 Oct 2008 16:57:10 GMT
Author: mreutegg
Date: Thu Oct 30 09:57:10 2008
New Revision: 709207

URL: http://svn.apache.org/viewvc?rev=709207&view=rev
Log:
JCR-1573: Lucene Query Exception: 'attempt to access a deleted document'

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java?rev=709207&r1=709206&r2=709207&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Thu Oct 30 09:57:10 2008
@@ -1365,7 +1365,7 @@
                 CachingMultiIndexReader subReader = subReaders[i];
                 int realDoc = subReader.getDocumentNumber(docId);
                 if (realDoc >= 0) {
-                    return realDoc;
+                    return realDoc + starts[i];
                 }
             }
             return -1;



Mime
View raw message