Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

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 functionalitiesfunctionality, which consists of the methods to handle new/updated records and deleted records.

Info

At this timeCurrently, the ElasticIndexer is serving as experimental, or intended for demonstration purpose only. To use the ElasticIndexer, please download and install ElasticSearch.

...

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

No Format
<!-- 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 alsi be initiated using Spring with the Java bean setter methods. Here is a sample file that can use to initiate the ElasticSearch client with the 

...

with the configuration file elasticsearch.yml

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