Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
2.4. Configure Indexing
2.4.1. Configure Indexing in Library Mode Using XML Link kopierenLink in die Zwischenablage kopiert!
<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:
Example 2.3. Configuring Indexing Using XML in Library Mode
2.4.2. Configure Indexing Programmatically Link kopierenLink in die Zwischenablage kopiert!
Author
, which is stored in the grid and made searchable via two properties, without annotating the class.
Example 2.4. Configure Indexing Programmatically
2.4.3. Configure the Index in Remote Client-Server Mode Link kopierenLink in die Zwischenablage kopiert!
- NONE
- LOCAL = indexLocalOnly="true"
- ALL = indexLocalOnly="false"
Example 2.5. Configuration in Remote Client-Server Mode
<indexing index="LOCAL"> <property name="default.directory_provider" value="ram" /> <!-- Additional configuration information here --> </indexing>
<indexing index="LOCAL">
<property name="default.directory_provider" value="ram" />
<!-- Additional configuration information here -->
</indexing>
By default the Lucene caches will be created as local caches; however, with this configuration the Lucene search results are not shared between nodes in the cluster. To prevent this define the caches required by Lucene in a clustered mode, as seen in the following configuration snippet:
Example 2.6. Configuring the Lucene cache in Remote Client-Server Mode
2.4.4. Rebuilding the Index Link kopierenLink in die Zwischenablage kopiert!
- The definition of what is indexed in the types has changed.
- A parameter affecting how the index is defined, such as the
Analyser
changes. - The index is destroyed or corrupted, possibly due to a system administration error.
MassIndexer
and start it as follows:
SearchManager searchManager = Search.getSearchManager(cache); searchManager.getMassIndexer().start();
SearchManager searchManager = Search.getSearchManager(cache);
searchManager.getMassIndexer().start();