Versions Compared

Key

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

This guide will help you get up and running with a Fedora 4 instance whose updates are automatically indexed in a Solr repository.  This guide glosses over many of the details and should be considered a starting point for testing this feature.  The document assumes a POSIX operating system with cURL, a text editor, Java, and a download of Apache Solr 4.10.3.

...

  • Fedora 4 is running on port 8080 at context "fcrepo" (with JMS listening on events published at port 61616)
  • Your Fedora 4 instance has the transform service enabled. Since the transform service is not available in the core Fedora webapp, you will likely need to use the Fedora Webapp Plus.

...

  1. You should be able to view Fedora in a web browser at the following URL: http://localhost:8080/fcrepo/rest
  2. Create a resource or You should be able to create and navigate to an existing Fedora resource in the web browser, for example http://localhost:8080/fcrepo/rest/collection
  3. Assuming the resource is named "collection", you can you should be able to verify that the transform service is enabled by navigating to the following URL in a web browser: http://localhost:8080/fcrepo/rest/collection/fcr:transform/default
    1. You should see a json JSON document such as:

      Code Block
      [{
        "created":["2016-06-01T18:04:41.859Z"],
        "has_parent":["http://localhost:8080/fcrepo/rest/"],
        "id":["http://localhost:8080/fcrepo/rest/collection"],
        "title":[],
        "last_modified":["2016-06-01T18:04:41.859Z"]
      }]

...

The location of your untarred Solr installation will be furthermore hereinafter referenced as $SOLR_HOME.

...

  • you should be presented with some ASCII art in your terminal and
  • you should be put into the Karaf client shell, such as:

    No Format
            __ __                  ____      
           / //_/____ __________ _/ __/      
          / ,<  / __ `/ ___/ __ `/ /_        
         / /| |/ /_/ / /  / /_/ / __/        
        /_/ |_|\__,_/_/   \__,_/_/         
      Apache Karaf (4.0.2)
    
    
    karaf@root()>
  • Note, to exit the Karaf client shell, type: "ctrl d" CTRL-D. This will stop the Karaf server, ending the indexing process.

  • To run Karaf as a system service please refer to the Karaf Service Wrapper documentation.

Install, Configure and Start Fedora Messaging Application Toolbox

...

Still in the Karaf client shell, the following command, should...

Code Block
languagebash
feature:list|grep fcrepo

...should result in both the "the fcrepo-camel" and " and fcrepo-indexing-solr" features being in the "the Started" state

No Format
fcrepo-camel                            | 4.4.1            |          | Started     | fcrepo-camel-4.4.1
fcrepo-indexing-solr                    | 4.5.1            | x        | Started     | toolbox-features-4.5.1

Configure Toolbox

The configuration of the "the fcrepo-indexing-solr" feature is found at: $KARAF_HOME/etc/org.fcrepo.camel.indexing.solr.cfg

...