-->
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: Hibernate Search: remote lucene index files
PostPosted: Fri Jan 30, 2015 10:43 am 
Newbie

Joined: Thu Jan 29, 2015 10:52 am
Posts: 2
Hi,

I am looking to create a shared lucene directory between multiple application servers.
Looking at the documentation, it seems the indexBase property in the configuration only handles local directory paths.
Is there any configurations to have a single centralized locations for multiple servers to connect and update the lucene indexes?


Top
 Profile  
 
 Post subject: Re: Hibernate Search: remote lucene index files
PostPosted: Wed Feb 04, 2015 9:11 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
yes there are multiple ways to achieve that. The only "rule" that you have to keep in mind is that only one node can write to an index. We call this a "master" node, and there are various options to delegate indexing events from the other nodes to the master node; such busses are called backends.

See this section:
http://docs.jboss.org/hibernate/search/5.0/reference/en-US/html_single/#_back_end

About index storage:
again you have some options. Read operations can happen from a network share; that's simple to setup but not very efficient. On the same section above it also explains how to setup a periodic copy job, so that each node can regularly copy an index to their local disk.

An alternative to disk shares is to use Infinispan for index storage: http://docs.jboss.org/hibernate/search/5.0/reference/en-US/html_single/#infinispan-directories

_________________
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.