Multiple CacheManager Parameters
If both parameters are defined, JNDI will have priority. If none of these is defined, Hibernate Search will use the example Infinispan configuration provided in the hibernate-search-infinispan.jar As mentioned in infinispan configuration in Table 3.1, “List of built-in DirectoryProviders”, each index actually makes use of three caches, so three different caches should be configured as shown in the default-hibernatesearch-infinispan.xml provided in the hibernate-search-infinispan.jar. Several indexes can share the same caches, they are differentiated by using the index name as it is the case with the other Directory implementations.