Versions Compared

Key

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

...

Code Block
titlesolr-fields.json
 [{"name":"uuid","type":"text_general","stored":"true","indexed":"true"}] 

 

Download, Build, Configure and Start fcrepo-jms-indexer-pluggable

Code Block
languagebash
git clone git@github.com:futures/fcrepo-jms-indexer-pluggable.git
Edit the configuration at fcrepo-jms-indexer-pluggable/fcrepo-jms-indexer-webapp/src/main/resources/sprint/indexer-core.xml to point to your solr installation.
Code Block
languagexml
firstline31
linenumberstrue
  <!-- Solr Indexer START-->
  <bean id="solrIndexer" class="org.fcrepo.indexer.solr.SolrIndexer">
    <constructor-arg ref="solrServer" />
  </bean>
  <!--External Solr Server  -->
  <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>
  <!-- Solr Indexer END-->

  <!-- Message Driven POJO (MDP) that manages individual indexers -->
  <bean id="indexerGroup" class="org.fcrepo.indexer.IndexerGroup">
    <property name="repositoryURL" value="http://${fcrepo.host:localhost}:${fcrepo.port:8080}/rest" />
    <property name="indexers">
      <set>
          <!--
        <ref bean="fileSerializer"/>
        <ref bean="sparqlUpdate"/>   -->
        <!--To enable solr Indexer, please uncomment line below  -->
         <ref bean="solrIndexer"/>
      </set>
    </property>
  </bean>