• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate search using Lucene

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am implementing the hibernate search using the indexing. I want to implement FSMasterDirectoryProvider except for one entitiy called 'EmpDetails'. I want to implement FSSlaveDirectoryProvider for this 'EmpDetails' entity.

If i configure only FSMasterDirectoryProvider in my persistence.xml, it is working fine for all other entities. If i implement only FSSlaveDirectoryProvider , it is working fine for 'EmpDetails' entity. If i have both configuration in my persistence.xml, it is not working fine.


here is my config details:

<!-- JMS backend -->
<property name="hibernate.search.worker.backend" value="jms" />
<property name="hibernate.search.worker.jms.connection_factory" value="jms/MyServiceQueueCF" />
<property name="hibernate.search.worker.jms.queue" value="jms/HibernateSearchQ" />


<!-- DirectoryProvider configuration -->

<!-- FSSlaveDirectoryProvider -->
<property name="hibernate.search.com.emp.EmployeeDetails.directory_provider" value="org.hibernate.search.store.FSSlaveDirectoryProvider"/>
<property name="hibernate.search.com.emp.EmployeeDetails.refresh" value="900" />
<property name="hibernate.search.com.emp.EmployeeDetails.indexBase" value="/index/read"/>
<property name="hibernate.search.com.emp.EmployeeDetails.sourceBase" value="/indexshare" />


<!-- FSMasterDirectoryProvider -->
<property name="hibernate.search.default.directory_provider" value="org.hibernate.search.store.FSMasterDirectoryProvider" />
<property name="hibernate.search.default.refresh" value="900" />
<property name="hibernate.search.default.indexBase" value="/index/read" />
<property name="hibernate.search.default.sourceBase" value="/index/indexshare" />
<property name="hibernate.search.default.optimizer.operation_limit.max" value="5000" />
<property name="hibernate.search.default.optimizer.transaction_limit.max" value="500" />

could you please help me on this.


Thanks
Anna
 
reply
    Bookmark Topic Watch Topic
  • New Topic