Versions Compared

Key

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

...

The indexer is configured using Spring that can be done with Java bean setter methods.  The base filesystem storage path, RDF variant, and filename extension be configured.  Here is a sample configuration fragment showing how to configure and use the RdfPersistenceIndexer:

No Format
  <!-- jcr/xml persistence Indexer -->
  <bean id="rdfPersist" class="org.fcrepo.indexer.persistence.RdfPersistenceIndexer">
    <constructor-arg value="${fcrepo.rdf.storage:fcrepo4-rdf}" />
    <constructor-arg value="${fcrepo.rdf.lang:TURTLE}" />
    <constructor-arg value="${fcrepo.rdf.ext:.ttl}" />
  </bean>
 
  <!-- Message Driven POJO (MDP) that manages individual indexers -->
  <bean id="indexerGroup" class="org.fcrepo.indexer.IndexerGroup">
    <constructor-arg name="repositoryURL" value="http://${fcrepo.host:localhost}:${fcrepo.port:8080}${fcrepo.context:/}rest" />
    <constructor-arg name="indexers">
      <set>
        ...
        <ref bean="rdfPersist"/>
        ...
      </set>
    </constructor-arg>
    ...
  </bean>

...