15.7.4. Storing Global Indexes Locally
Storing the global index locally in JBoss Data Grid's Query Module allows each node to
- maintain its own index.
- use Lucene's in-memory or filesystem-based index directory.
Note
The JBoss Data Grid cluster must be operating in replicated mode in order to ensure each node's indexes are always up to date.
When enabling indexing with the global index stored locally, the
indexLocalOnly
attribute of the indexing
element must be set to "false"
in order for changes originating from elsewhere in the cluster are indexed.
The following example shows how to configure storing the global index as a local copy:
<namedCache name="localCopyOfGlobalIndexes"> <clustering mode="replicated"/> <indexing enabled="true" indexLocalOnly="false"> <property name= "default.directory_provider" value="ram"/> </indexing> </namedCache>
hibernate.search is also a valid optional prefix for configuration
property
keys.
Important
The Query Module is currently only available as a Technical Preview for JBoss Data Grid 6.1.