-->
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.lucene.index_dir property not being honoured
PostPosted: Fri Jul 28, 2006 10:27 am 
Beginner
Beginner

Joined: Mon Mar 14, 2005 4:16 pm
Posts: 27
Hello,

I am testing the hibernate-lucene integration with the latest snapshot of the hibernate-annotations. What I found is that the property hibernate.lucene_index is being ignored... am I missing something?

Cheers,


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 17, 2006 4:41 am 
Regular
Regular

Joined: Sat Jan 07, 2006 8:30 pm
Posts: 68
Anyone ?

I'm using Hibernate+Spring and the following properties

Code:
                <!-- Lucene -->
            <prop key="hibernate.lucene.default.directory_provider">org.hibernate.lucene.store.FSDirectoryProvider</prop>
            <prop key="hibernate.lucene.default.indexDir">${lucene.indexDir}</prop>


The value ${lucene.indexDir} is /temp/indexes but the index is created under eclipse folder( I run Tomcat under Eclipse) . I put some break pointers and the properties variable under the provider contains the value

Code:
{indexDir=/temp/indexes, directory_provider=org.hibernate.lucene.store.FSDirectoryProvider}


But the indexDir member is "." and indexBase is "." too!

This looks like a bug to me. I will updagrade to the lastest version to see if will fix it...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 17, 2006 4:44 am 
Regular
Regular

Joined: Sat Jan 07, 2006 8:30 pm
Posts: 68
I thought was a typo in the document
http://www.hibernate.org/hib_docs/annot ... ucene.html

but I tried to use index_dir as well and nothing good happened...


Top
 Profile  
 
 Post subject: hibernate.lucene.index_dir property not being honoured
PostPosted: Sun Oct 22, 2006 1:43 am 
Newbie

Joined: Sun Oct 22, 2006 1:37 am
Posts: 1
Hi,

Not sure what hibernate version do you use, but it seems fro hibernate 3.2 you should use hibernate.lucene.default.indexBase instead of hibernate.lucene.default.indexDir property.

Regards,
Roman


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.