Old Release

This documentation covers an old version of Fedora. Looking for another version? See all documentation.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The ElasticIndexer listens to the repository generated JMS events to perform elastic indexing for ElasticSearch. It implements the org.fcrepo.indexer.Indexer interface for the indexing functionalities, which consists of the methods to handle new/updated records and deleted records.

At this time, the ElasticIndexer is serving as experimental purpose only.

Configuration

The indexer is configured using Spring that can be done using Java bean setter methods.  Here is a sample configuration fragment showing how to configure and use the ElasticIndexer:

<!-- Elasticsearch gear -->
<bean id="elasticClient" class="org.fcrepo.indexer.elastic.ElasticClientFactory" factory-method="client"/>
 
<!-- ElasticIndexer -->
<bean id="elasticIndexer" class="org.fcrepo.indexer.elastic.ElasticIndexer"
     p:indexName="testindex" p:searchIndexType="testType"/>
  • No labels