-
1. Re: Indexes and dist cache mode
galder.zamarreno May 4, 2012 3:54 AM (in response to dushyanttiwari)Did you read https://docs.jboss.org/author/x/xgU5 at all? It explains strategies to manage indexes.
-
2. Re: Indexes and dist cache mode
dushyanttiwari May 4, 2012 4:52 AM (in response to galder.zamarreno)Yeah I have gone through the resource. The link talks about what to do in theory, not the implementation. I figured out we need to create indexes as
<indexing enabled="true" indexLocalOnly="true">
<properties>
<property name="hibernate.search.default.directory_provider" value="infinispan"/>
</properties>
</indexing>
But even with this the following is resulting in a index loss: when the owner of the data goes down the new owner will not have an index.(dist mode) Hence asked for a step by step implementation so that I know what am I doing wrong. So please suggest - already lost a lot of time on this.
The hibernate documentation suggested using the same cache manager using jndi but even without it, the indexing should work.
Also my suggestion is to keep this abstract from the developer in the upcoming release. i.e let the indexing be handled by the framework itself. Because for dist mode if we have local indexes (ram) it would make no sense as the indexes are lost on a node failure.
-
3. Re: Indexes and dist cache mode
sannegrinovero May 14, 2012 1:10 PM (in response to dushyanttiwari)Hi,
Also my suggestion is to keep this abstract from the developer in the upcoming release. i.e let the indexing be handled by the framework itself. Because for dist mode if we have local indexes (ram) it would make no sense as the indexes are lost on a node failure.
Yes we're aware that this is currently pretty hard to do, I agree we should make it easier in future.
To resolve your question on the missing jars: we generally assume users are familiar with Maven dependencies; the needed dependencies are those defined in the Hibernate Search project, specifically:
- org.infinispan:infinispan-lucene-directory
- org.hibernate:hibernate-search-infinispan
If you don't use Maven, you can download them from the Hibernate Search distribution https://sourceforge.net/projects/hibernate/files/hibernate-search/4.1.1.Final/
On how to configure it: I'd highly recommend to reset the Hibernate Search documentation at http://docs.jboss.org/hibernate/search/4.1/reference/en-US/html_single/#infinispan-directories , in addition to Infinispan's own documentation.