Hi,
Thanks for your reply, here is the configuration I am using (it is Spring based):
Code:
<!-- Hibernate properties for building SessionFactory. -->
<bean id="hibernateProperties"
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<props>
<!-- Enable Hibernate's automatic session context management -->
<prop key="current_session_context_class">thread</prop>
<prop key="hibernate.jdbc.batch_size">${hibernate.jdbc.batch_size}</prop>
<prop key="hibernate.connection.driver_class">${hibernate.connection.driver_class}</prop>
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
<prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</prop>
<prop key="hibernate.format_sql">${hibernate.format_sql}</prop>
<prop key="hibernate.use_sql_comments">${hibernate.use_sql_comments}</prop>
<prop key="hibernate.generate_statistics">${hibernate.generate_statistics}</prop>
<prop key="hibernate.transaction.factory_class">${hibernate.transaction.factory_class}</prop>
<prop key="hibernate.search.analyzer">${hibernate.search.analyzer}</prop>
<prop key="hibernate.search.default.directory_provider">${hibernate.search.default.directory_provider}</prop>
<!-- prop key="hibernate.search.default.indexBase">${hibernate.search.default.indexBase}</prop --> <!-- Un-comment this when using a FSDirectoryProvider (in jdbc.properties) -->
<prop key="hibernate.search.default.optimizer.operation_limit.max">${hibernate.search.default.optimizer.operation_limit.max}</prop>
<prop key="hibernate.search.default.optimizer.transaction_limit.max">${hibernate.search.default.optimizer.transaction_limit.max}
</prop>
</props>
</property>
</bean>
Then in my properties file:
Code:
hibernate.search.default.directory_provider=org.hibernate.search.store.RAMDirectoryProvider
Can you confirm this is ok?
Thanks in advance,
Kevin.