3.3. Cache Modes and Storing Indexes


3.3.1. Storing Lucene Indexes

In Red Hat JBoss Data Grid's Query Module, Lucene is used to store and manage indexes. Lucene ships with several index storage subsystems, also known as directories.
These include directories for the purpose of:
  • simple, in-memory storage.
  • file system storage.
To configure the storage of indexes, set the appropriate properties when enabling indexing in the JBoss Data Grid configuration.
The following example demonstrates an in-memory, RAM-based index store:
<namedCache name="indexesInMemory">
	<indexing enabled="true">
		<properties>
			<property name="default.directory_provider" value="ram"/>
		</properties>
	</indexing>
</namedCache>
Copy to Clipboard Toggle word wrap
This second example shows a disk-based index store:
<namedCache name="indexesOnDisk">
	<indexing enabled="true">
		<properties>
			<property name="default.directory_provider" value="filesystem"/>
		</properties>
	</indexing>
</namedCache>
Copy to Clipboard Toggle word wrap
Back to top
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. Explore our recent updates.

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.

Theme

© 2026 Red Hat