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

« Previous Version 3 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 experimental for demonstration purpose only. To use the ElasticIndexer, please download and install ElasticSearch.

Configuration

The indexer is configured using Spring that can be done with the Java bean setter methods.  Here is the configuration file showing how to configure and test with 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"/>

The ElasticSearch client configured above can be initiated with the configuration file elasticsearch.yml

discovery.zen.ping.multicast.enabled: false
cluster:
  name: testCluster
node:
  name: testNode
  local: true
index:
  store:
    type: memory
  • No labels