jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabrizio Giustina <fgi...@gmail.com>
Subject Lucene and deleted nodes
Date Tue, 14 Jun 2005 13:39:42 GMT
While accessing the results of a jcr search I often experience
problems probably due to the presence, in the lucene index, of deleted
This is actually a big problem since a missing reference can block
from accessing all the search results (the error is thrown in
NodeIterator.hasNext, while iterating on the search result).
The following is the stacktrace for the error:

ERROR  org.apache.jackrabbit.core.query.lucene.DocOrderNodeIteratorImpl 
DocOrderNodeIteratorImpl.java(compare:186) 10.06.2005 17:28:54 
Exception while sorting nodes in document order:
javax.jcr.ItemNotFoundException: 2537b990-5387-4b5b-a15a-8db53d4353e1
javax.jcr.ItemNotFoundException: 2537b990-5387-4b5b-a15a-8db53d4353e1
	at org.apache.jackrabbit.core.ItemManager.createItemInstance(ItemManager.java:518)
	at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:372)
	at org.apache.jackrabbit.core.query.lucene.DocOrderNodeIteratorImpl$1.compare(DocOrderNodeIteratorImpl.java:142)
	at java.util.Arrays.mergeSort(Arrays.java:1307)
	at java.util.Arrays.mergeSort(Arrays.java:1296)
	at java.util.Arrays.sort(Arrays.java:1223)
	at org.apache.jackrabbit.core.query.lucene.DocOrderNodeIteratorImpl.initOrderedIterator(DocOrderNodeIteratorImpl.java:136)
	at org.apache.jackrabbit.core.query.lucene.DocOrderNodeIteratorImpl.hasNext(DocOrderNodeIteratorImpl.java:95)

while doing:
NodeIterator nodeIterator = (javax.jcr.query.QueryResult)result.getNodes();
while (nodeIterator.hasNext()) {

I am trying to understand if the problem is due to a someway corrupted
lucene index, or if this situation should be handled by jackrabbit (or
by the user? but it sounds strange since the error is thrown from the

Did anyone see a similar problem? How deleted/missing nodes are
supposed to be handled in the search index?


View raw message