-->
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.  [ 2 posts ] 
Author Message
 Post subject: Index file directory location
PostPosted: Fri Nov 05, 2010 7:23 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: Sun Nov 21, 2010 10:35 am 
Newbie

Joined: Sun Nov 21, 2010 10:34 am
Posts: 1
You misspelled default in the property name.

(sorry to resurrect nearly dead thread, but this is top search result for "hibernate search index file location". Helping out the next guy who lands here)


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