ualbertalib / blacklight_solr_conf

Solr configuration for our Blacklight application
1 stars 2 forks source link

blacklight_solr_conf

Solr configuration for our Blacklight application

In short, the Discovery application doesn't exist in a vacuum -- it allows administrators to ingest data from Symphony, SFX, and 'databases' into SolrCloud, and allow students, staff, and other users to query it via the web front-end. This repository contains the "Solr Schema" -- the basic configuration that defines the datatypes that will be ingested and queried. Solr uses this schema as a template for the data, making searching and faceting possible.

How is this repository used? The typical workflow (under auspices of a change request) is:

In the Production environment, we might need to do a staged rollout, eg taking york out of the HAProxy pool, so it can populate new collections (under new schema) with new data, while the other two servers continue to serve requests from the old collection. Once the new collection is complete, we can apply code updates to the other two servers, and swing the alias over to have all the application servers use the new collection.

Also, the NEOSDiscovery application uses the same SolrCloud collection, via alias... so consider whether that code needs updating at the same time as the Discovery environment, and dovetail any plans to update!

About Tagging This Repository: I guess it would be convenient if the RPM version of this code matched an appropriate version of Discovery. But be aware: Discovery suffers revisions much more frequently, than this repo. There will be significant lag between versions.

Why a separate repo? At the inception of the Discovery project, the files inside this repo were buried within the Discovery repo. Neil split them out, to facilitate RPM-based distribution. And to prevent Sam from accidentally updating the schema, without telling me.

Docker image for UAL Discovery/NEOS Discovery Solr

What is this?

This image can be used as a Solr datastore for UAL Discovery and NEOS Discovery. This image is built on the Solr 6.6 image and adds the configuration files required to create collections. This is necessary because the configuration lives in a seperate repository to the application.

Requirements

Ensure you have Docker (1.13.0+) and Docker Compose (1.10.0+) installed

In this Docker Container

In the Docker Container are the minimum dependencies to run Solr with this projects schema and configurations available in the /myconfig directory.

Usage

Expected usage is with Docker Compose docker-compose up -d which can use the entrypoints provided by the solr container to create any collections desired (discovery_test, etc).

Developer Handbook Docker Usage Section

Updating Docker Hub

Upgrading local container

Expected usage is with Docker Compose docker-compose pull which will seek out the latest image from Docker Hub.

See Developer Handbook Updating the local container

Frequently used commands

See Developer Handbook

Special notes / warnings / gotchas

Future considerations

To capture any proposed future work or future considerations.