-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: ObjectNotFoundException in FullTextSession after bulk delete
PostPosted: Sat Mar 10, 2007 1:09 pm 
Newbie

Joined: Fri Jun 24, 2005 4:36 am
Posts: 14
Location: Germany
Despite a post-delete event handler, after a bulk delete a Lucene full text index is out of synch with the database so that a Lucene search ends with an ObjectNotFoundException. Is there a way to prevent this?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 11, 2007 7:55 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
yes and no.
The next version (in SVN) will ignore not found objects (actually LIE), so accessing an unavailable object will not longer be done.
But fundamentally, there is no way for the index to detect which bulk of objects have been destroyed (through a HQL delete). Either you know which one and you update the index manually (usually does not make sense in a bulk operation), Or you reindex on a regular basis.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.