Hi
It seems as though with the master slave config I have the slave updates the master index rather than the other way round. I have configured the slave session factory to be:
Code:
<prop key="hibernate.search.default.indexBase">/mnt/localhost/SearchDocuments/slave/index</prop>
<prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.FSSlaveDirectoryProvider</prop>
<prop key="hibernate.search.analyzer">org.apache.lucene.analysis.standard.StandardAnalyzer</prop>
<prop key="hibernate.search.worker.backend">jms</prop>
<prop key="hibernate.search.worker.jms.connection_factory">env/connectionfactory</prop>
<prop key="hibernate.search.worker.jms.queue">jms/queue</prop>
<prop key="hibernate.search.default.sourceBase">/mnt/localhost/SearchDocuments/master/index</prop>
<prop key="hibernate.search.default.refresh">300</prop>
and the master session factory to be:
Code:
<prop key="hibernate.search.default.indexBase">/mnt/localhost/SearchDocuments/slave/index</prop>
<prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.FSMasterDirectoryProvider</prop>
<prop key="hibernate.search.analyzer">org.apache.lucene.analysis.standard.StandardAnalyzer</prop>
<prop key="hibernate.search.default.sourceBase">/mnt/localhost/SearchDocuments/master/index</prop>
<prop key="hibernate.search.default.refresh">300</prop>
Am I doing something wrong?