-->
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: Index file directory location
PostPosted: Fri Nov 05, 2010 9:32 am 
Beginner
Beginner

Joined: Tue Sep 28, 2010 5:14 am
Posts: 25
Hi

I am having problem to customize my index directory location. I am pointing it to a particular location while using FSDirectoryProvider but still find that my indexes are being created in the applications parent directory location.

Here is my config file :

<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>

<property name="hibernate.connection.url">jdbc:oracle:thin:@test:1531:test</property>
<property name="hibernate.connection.username">username</property>
<property name="hibernate.connection.password">pwd</property>

<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>

<!-- Hibernate search configuration -->
<property name="hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider</property>
<property name="hibernate.search.deafult.indexBase">/indexes</property>
<property name="hibernate.search.default.batch.merge_factor">10</property>
<property name="hibernate.search.default.batch.max_buffered_docs">10</property>

<!-- Mapping files -->
<mapping resource="contact.hbm.xml"/>

</session-factory>
</hibernate-configuration>

Any idea or hints what I might be missing ?

--Manoj


Top
 Profile  
 
 Post subject: Re: Index file directory location
PostPosted: Sat Nov 06, 2010 10:38 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
hibernate.search.deafult.indexBase

there's a spelling error "deAFult" in the configuration file, that property is being ignored

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


Top
 Profile  
 
 Post subject: Re: Index file directory location
PostPosted: Mon Nov 08, 2010 5:25 am 
Beginner
Beginner

Joined: Tue Sep 28, 2010 5:14 am
Posts: 25
Thanks a lot, Sanne. Thats was really silly of me, not to spot such a minor issue.

Cheers
Manoj


Top
 Profile  
 
 Post subject: Re: Index file directory location
PostPosted: Mon Nov 08, 2010 7:24 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
no problem, such things happen; glad it works
Cheers

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