Old Release

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

The SolrIndexer listens to the repository JMS events to update the records in SOLR. 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.

The indexer retrieves the record in RDF format from the repository and converts the RDF to the SOLR document with name fields, then updates it in SOLR.

To use the SolrIndexer, please download and install SOLR.

Configuration

The indexer is configured with Spring that can be done using Java bean setter methods.  Here is a sample fragment for configuring and using the SolrIndexer:

  <!-- Solr Indexer -->
  <bean id="solrIndexer" class="org.fcrepo.indexer.solr.SolrIndexer">
    <constructor-arg ref="solrServer" />
  </bean>

  <!-- Standardalone solr Server used by the Solr indexer  -->
  <bean id="solrServer" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
    <constructor-arg index="0" value="http://${fcrepo.host:localhost}:${solrIndexer.port:8983}/solr/" />
  </bean>

  <!-- Message Driven POJO (MDP) that manages individual indexers -->
  <bean id="indexerGroup" class="org.fcrepo.indexer.IndexerGroup">
    <constructor-arg name="indexers">
      <set>
        ...
        <ref bean="solrIndexer"/>
        ...
      </set>
    </constructor-arg>
    ...
  </bean>
  • No labels