-->
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: Flush to Indexes guarantees immediate availability?
PostPosted: Wed Jun 04, 2014 11:26 am 
Pro
Pro

Joined: Wed Nov 05, 2003 7:22 pm
Posts: 211
Hi,

I'm wondering if after you save an object and call fullTextSession.flushToIndexes() it is guaranteed that the record will be found on a subsequent index search?

Cheers,
Marc


Top
 Profile  
 
 Post subject: Re: Flush to Indexes guarantees immediate availability?
PostPosted: Wed Jun 25, 2014 10:53 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
it depends on the Directory: If you use the Master/Slave configuration, slaves are updated periodically.

Other than that yes it's guaranteed, as long as you don't use an async worker as described here: http://docs.jboss.org/hibernate/search/5.0/reference/en-US/html_single/#configuration-worker

Also, make sure you don't make the backend asynchronous in other ways, for example if you use the JMS backend, don't make the messages asynchronous.

Another exception is the Infinispan Directory: you can setup Infinispan to propagate changes to other nodes in the cluster asynchronously - just never do that as you might also experience index corruption. I think never versions of Infinispan actively verify making this configuration illegal when combined with Lucene, but it was possible to do in older versions.

_________________
Sanne
http://in.relation.to/


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.