3 Replies Latest reply on May 20, 2013 5:10 AM by lokeshbandaru

    Index replication problem with directory_provider infinispan

    Moloy C Newbie

      Hi,

      I am trying to replicate indexes to all nodes, so that I can use hibernate.search to run query from any node. Querying on local node returns data, but not on remote nodes.

      I am using Infinispan version 5.2.0.CR2.

       

      Following is my indexing config, "hibernate-search-infinispan.xml" is copy of default-hibernatesearch-infinispan.xml found in hibernate-search-infinispan-4.2.0.Final.jar, only change in <transport>, using specific JGroups configuration file.

       

              <indexing enabled="true" indexLocalOnly="true">

                  <properties>

                      <property name="hibernate.search.default.directory_provider" value="infinispan" />

                      <property name="hibernate.search.infinispan.configuration_resourcename" value="hibernate-search-infinispan.xml" />

                      <property name="hibernate.search.lucene_version" value="LUCENE_35" />

                  </properties>

              </indexing>

       

       

      Content of my src/main/resources/

           infinispan-distribution.xml

           hibernate-search-infinispan.xml

           jgroups-udp.xml

       

      I am using two infinispan configs, infinispan-distribution.xml is for my application, hibernate-search-infinispan.xml is for the indexes. When I run my application, I don't think hibernate-search-infinispan.xml is getting loaded. On JConsole I can see following caches -

      org.infinispan:type=Cache,name="LuceneIndexesData(local)"

      org.infinispan:type=Cache,name="LuceneIndexesLocking(local)"

      org.infinispan:type=Cache,name="LuceneIndexesMetadata(local)"

       

      As the names suggests they are local cache, but in the configuration file (hibernate-search-infinispan.xml) they are all with <clustering mode="replication">. Not sure if there is any issue or if I am missing any. Any help will be highly appreciated.

       

      Thanks,

      Moloy