-
Notifications
You must be signed in to change notification settings - Fork 1
How to index
Mark A. Matienzo edited this page Jul 24, 2018
·
4 revisions
At the moment, Stanford Arclight is not in an exploratory phase, and the indexing is being done locally.
There is a data
directory on the server. This directory contains a git repository with the EAD to be used for Stanford Arclight.
You must be in the root of the rails app in order to index.
$ cd arclight/current
$ pwd
/opt/app/arclight/arclight/current
You must provide a set of ENV variables when running the indexing rake task in order to tie the EAD document(s) with the appropriate repository information as well as to identify which solr core to write to.
$ SOLR_URL=https://solr.host/solr/solr-core REPOSITORY_ID=sul-spec REPOSITORY_FILE=config/repositories.yml FILE=~/data/sul-spec/file-name.xml bundle exec rake arclight:index
$ SOLR_URL=https://solr.host/solr/solr-core REPOSITORY_ID=sul-spec REPOSITORY_FILE=config/repositories.yml DIR=~/data/sul-spec bundle exec rake arclight:index_dir