-->
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 index shred by multiple apps local server
PostPosted: Mon Nov 11, 2013 6:15 pm 
Newbie

Joined: Wed Mar 16, 2011 6:07 pm
Posts: 9
Hi,

There is a lucene index stored in a server. In the same server there are two application servers Jboss 7.1 and Wildfly 8 beta1 running on different ports. In JBoss 7.1 there are two war using different data sources. In Wildfly there is a one war. All 3 wars has to use(read-write) same lucene index through hibernate search. All three wars have the same hibernate search version.

What is the proper way to configure hibernate search for all wars having in mind that the will read y/o write concurrently to the index?


Top
 Profile  
 
 Post subject: Re: Hibernate search index shred by multiple apps local server
PostPosted: Fri Nov 15, 2013 4:46 am 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
Hi,

have you checked out the discussion of the different backends in the reference guide [1]?

You could get started with the simple Lucene backend [2] which directly uses a shared index (also see [3] for locking options). If the shared index writes show up as bottleneck you could switch to the JMS backend [4] which performs all writes through a single node, serves reads from index copies and propagates index updates to the master node via JMS.

--Gunnar

[1] http://docs.jboss.org/hibernate/search/4.4/reference/en-US/html_single/#d0e633
[2] http://docs.jboss.org/hibernate/search/4.4/reference/en-US/html_single/#d0e644
[3] http://docs.jboss.org/hibernate/search/4.4/reference/en-US/html_single/#search-configuration-directory-lockfactories
[4] http://docs.jboss.org/hibernate/search/4.4/reference/en-US/html_single/#d0e666

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


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.