-->
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: hibernate search webapp general question.
PostPosted: Fri Jun 27, 2008 8:41 am 
Regular
Regular

Joined: Tue Apr 01, 2008 5:39 pm
Posts: 61
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

hibernate version
3.2.6 GA
3.0.0 GA (hibernate search)


Hi I am using index provider to do search. Now if i index my domain using batch process, where should i copy the indexes to, so that i can use it for web application in tomcat?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 27, 2008 12:32 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
use the configuration property
Code:
hibernate.search.default.indexBase

to define the root of your indexes.
Then you need to put the index in a subdirectory corresponding to the name attribute of @Indexed
Or a simpler way just define the indexBase property and start it: H.Search will create the directory structure it expects for you, then you shut it down and replace it's empty index with yours.

http://www.hibernate.org/hib_docs/search/reference/en/html_single/

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 27, 2008 1:54 pm 
Regular
Regular

Joined: Tue Apr 01, 2008 5:39 pm
Posts: 61
sorry I am using RAMDirectoryProvider.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 29, 2008 6:43 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
If you need to copy the index your only option is to use the FSDirectoryProvider,
there currently is no option to start a RAMDirectoryProvider from file;
Consider that when using the RAMDirectoryProvider you are going to use the limited JVM memory, but when using hte FS-dp the memory management is delegated to your OS, also the caching of these could be very good and I still have to see a good benchmark demonstrating the ram version being consistently faster than the file based version.

If you still have a good reason to need it, we could ask for it as a new feature; explaining a good reason to ask for it would greatly enhance your chances to get it done, or provide a patch, I could help you it should be simple.

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