Search

15.7.4. Storing Global Indexes Locally

download PDF
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.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.