Reserve collections solr core

This project aims to provide a multi core solr configuration to search for reserve collections and its related objects. Apache Solr is a java web application that provides full text search through the use of Apache Lucene.

Installation

First of all get your working copy of this repository. This directory is used as the base directory to solr, where all data and configuration is kept.

git clone https://github.com/unibib-duisburg-essen/reserve-collections-solr-schema.git ~/rc-solr-home

rc-solr-home is going to be our $SOLR_HOME from here on.

To make use of the configuration you have to have a Java runtime environment and a running copy of apache solr. Download Java and the latest version of Solr. Inside the solr bin dir you can find several binaries to just run solr or install it as system service (Windows and Linux). For development just start solr inside the console using:

bin/solr start -f -s $SOLR_HOME

$SOLR_HOME should be the location you cloned this repository to. If solr successfully started you can access the application from your browser

The installation is now finished and can be used by the reserve collection web application. If for example the application model changes it may be possible that the solr model must be modified.

Model

There are four cores configured:

  • reservecollectionview
  • bookjobview
  • copyrightview
  • scanjobview

These cores are adressed by the reserve collections web application for crud operations. For example the list of all reserve collection loads its data form the reservecollectionview. The list is filtered on query changes therefore must be very fast.

Take a look at the different schema.xml files located in <core>/conf to view all configured fields.

Dataimport

Every core has one data-config.xml file that can be used to perform a import from the database. Inside the dataConfig element there are multiple dataSource elements given, that contain information to connect to a database. The given data (driver, url ...) must be configured to match your local installation. Also make sure to install the correct jdbc driver to the $SOLR_HOME/lib directory.