此内容没有您所选择的语言版本。
2.2. Configure Infinispan Query
2.2.1. Configure Indexing Using XML 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Indexing can be configured in XML by adding the
<indexing ... />
element to the cache configuration in the Infinispan core configuration file, and optionally pass additional properties in the embedded Lucene-based Query API engine. For example:
In this example, the index is stored in memory. As a result, when the relevant nodes shut down the index is lost. This arrangement is ideal for brief demonstration purposes, but in real world applications, use the default (store on file system) or store the index in Red Hat JBoss Data Grid to persist the index.