Skip to content
Leonardo Foderaro edited this page Sep 8, 2015 · 6 revisions

Setup

You can try the framework and follow the tutorial without modifying your existing SolrCloud installation using the pre-built Docker container. More information here.

This guide assumes you already have a working SolrCloud instance.

  1. Copy the project's jar in a folder and configure your solrconfig.xml accordingly, eg:

<lib dir="/opt/solr/solr-5.2.1/custom-libs/" regex=".*\.jar" />

  1. Configure the plugins loader:

     <str>examples.alba.books</str>
    

and add it to the standard request handler:

 <requestHandler name="standard" class="solr.SearchHandler">

   ...

   <arr name="first-components">

     <str>loader</str>

   </arr>

 </requestHandler>
  1. Configure the main components:

     <transformer name="alba" class="alba.solr.transformers.Transformer" />
    
     <valueSourceParser name="alba" class="alba.solr.core.DynamicValueSourceParser"/>
    
     <queryParser name="alba" class="alba.solr.core.DynamicQueryParser" />
    
     <queryResponseWriter name="alba" class="alba.solr.core.AlbaResponseWriter" />
    

Of course you can choose a different name instead of 'alba'.

Please refer to the albabooks-solr-collection repo for a complete example.

Clone this wiki locally