Old Release

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

The FileSerializer listens to the JMS events generated from the repository. It converts the generated RDF to SOLR document format with name fields, and persists it to the file system. It implements the org.fcrepo.indexer.Indexer interface for the indexing functionality, which consists of the methods to handle new/updated records and deleted records.

The generated files are stored under the configured directory file.serializer.dir with a file name that concatenates the id and the timestamp, e.g. id@yyyyMMddHHmmss.


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

  <!-- file serializer -->
  <bean id="fileSerializer" class="org.fcrepo.indexer.FileSerializer">
    <property name="path" value="${file.serializer.dir:./target/test-classes/fileSerializer/}"/>
  <!-- Message Driven POJO (MDP) that manages individual indexers -->
  <bean id="indexerGroup" class="org.fcrepo.indexer.IndexerGroup">
    <constructor-arg name="indexers">
        <ref bean="fileSerializer"/>
  • No labels