-->
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: When does hibernate search index objects?
PostPosted: Wed Nov 18, 2009 11:46 am 
Newbie

Joined: Tue Nov 17, 2009 10:35 am
Posts: 2
I've got a really strange problem...
During my web app (I'm using spring and webflow in this app),
I enter a flow, which loads an object and initialises its collections. Then I make changes to one of its collections within my flow (it's not persisted during this period of editing the collection).

Then, depending on whether the user saves or cancels, the item may or may not be persisted. Whatever happens, the flow then exits and goes back to the parent flow.

At some point during this time, regardless of whether or not I actual commit my changes to the collection, something goes seriously wrong with hibernates indexes and they all get ruined. I don't know what happens to them exactly, the files still exists but none of my queries will return a result at all, unless I manually purge all and reindex everything, at which point everything is indexed perfectly.

It's so strange I don't understand it at all. I'm not committing anything to the database and the flow exits which gets rid of the flowscope variable I was editing.

I can't figure out what on earth is going on and I've spent days on this.

ANY help will be greatly appreciated!

Thanks,
James.


Top
 Profile  
 
 Post subject: Re: When does hibernate search index objects?
PostPosted: Wed Nov 18, 2009 12:56 pm 
Pro
Pro

Joined: Wed Oct 03, 2007 2:31 pm
Posts: 205
have you used luke to verify that the index is corrupted? it may be worth getting the lucene query that gets generated from your application and applying it using Luke. This should tell you whether the query is actually correct and also when you try to use luke if it can't load the index then it will tell you if the index is corrupted.

I'm not sure if you've done the above, but it's a quick test that you can perform. I always use luke if the application does not return any results when i'm expecting results.


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.