-
Notifications
You must be signed in to change notification settings - Fork 1
Setup
Leonardo Foderaro edited this page Sep 8, 2015
·
6 revisions
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.
- 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" />
-
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>
-
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.