-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to configure index on server?
PostPosted: Wed Jun 18, 2014 5:25 am 
Newbie

Joined: Wed Apr 02, 2014 8:04 am
Posts: 6
Hi!

Because we develop our project with ONE database, we also want to have ONE index-folder on our server, for all of aour developers.

Now each developer has its own index-files which is configured in "hibernate.cfg" as:
<property name="hibernate.search.default.directory_provider"
value="filesystem"/>

<property name="hibernate.search.default.indexBase"
value="path-to-lucene-index"/>

So how do we have to configure our project, so that every developer has access to ONE central index?
Do we have to change the vlue of indexBase into something like "http://projextname/lucene/indexes/" or how does it work?

Thnaks in advance!!!


Top
 Profile  
 
 Post subject: Re: How to configure index on server?
PostPosted: Wed Jun 25, 2014 10:46 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
from the example "http://projextname/lucene/indexes/" I understand you want to share the index across multiple machines connected in network?

Quote:
we also want to have ONE index-folder on our server, for all of our developers.


This confuses me, you mean a single index, on the server right? How does it related to developers, are they all connecting to a single database and running Hibernate Search locally?
Our expectation is that you run Hibernate Search on your server, not locally on the computer of your developers. That is normally only done for development, but then in such a case people don't share the same database.

If you are looking for a network-based share index, you might want to use the Infinispan Directory: http://docs.jboss.org/hibernate/search/5.0/reference/en-US/html_single/#infinispan-directories

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


Top
 Profile  
 
 Post subject: Re: How to configure index on server?
PostPosted: Mon Jun 30, 2014 12:46 am 
Newbie

Joined: Wed Apr 02, 2014 8:04 am
Posts: 6
Yes, in development each developer has access to ONE shared database, so that every developer has the same data available.
So i thought it has to be possible to access the index for that database by an url...
We now solved the problem by sharing the index-data by shared network-device.

When the application is finished we have another database and connect it with the index which is located on the same server where the database is located.
I think it is a bit complicated, but it works.


Top
 Profile  
 
 Post subject: Re: How to configure index on server?
PostPosted: Mon Jun 30, 2014 4:37 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Ok, thanks that's an interesting perspective.
Lucene is usually used strictly locally, so I had difficulty to understand your use case. Your solution seems fine for development, but keep in mind that for "production use", Lucene's index management expects an accurate implementation of the locking API on files, which is usually relaxed on networked file systems. So I would only suggest this setup as a development facility, and be aware that you might have IOExceptions corrupting the index; I assume that's not a big problem.

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