-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate search and how to store its index in a db....
PostPosted: Wed Jul 30, 2008 8:27 am 
Newbie

Joined: Wed Apr 30, 2008 5:19 am
Posts: 3
Hi, im new to Hibernate Search and are wondering if it is possible to make it store its index / tables in a database instead of on the filesystem...

Right now i have the property :
hibernate.search.default.directory_provider=org.hibernate.search.store.FSDirectoryProvider

This makes it store the data in the filesystem, I have searched for directory provider to make it store its index in the db instead but where unable to find one.

Is there any way to make this happen? If so, could someone point me to a tutorial discussing this issue?

Best Regards
Pal Tonder


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 30, 2008 2:17 pm 
Newbie

Joined: Wed Apr 30, 2008 5:19 am
Posts: 3
Correct me if i am wrong, but there seems to be no easy way to accomplish this goal.
I have been searching around and have not yet found any solution to this problem, it just seems to be that we are just supposed to store the index on a "standard" file system.

It seems that i have to use hibernate and lucene seperatly to accomplish this goal.. an article found here:
http://kalanir.blogspot.com/2008/06/cre ... abase.html explains how create indexes with pure lucene using "JdbcDirectory".

A hibernate search implementation of this JdbcDirectory thing would be sweet, something like : "org.hibernate.search.store.JdbcDirectoryProvider" where the index is created into the db with default values maybe, or some way to configure this...

Im not sure how this would have been implemented, nor if this is a good idea... So don't flame me :)

oh yes... and by removing :
hibernate.search.default.directory_provider=org.hibernate.search.store.FSDirectoryProvider it seems to be storing the data into the db, but the index still remains in the filesystem...

Best Regards


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 4:22 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
You might want to try posting the same question in the Search forum, where people are a tad more knowledgeable on the topic. Just an idea...

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.