- Follow the instructions in the main
README.md
to set up the basic Blacklight application locally. - At the root level of the project directory, create a
.env.development
file with the following environment variables:
# provide alma domain for oai base url fetch
alma="na03"
# provide institution for oai base url fetch
institution="01GALI_EMORY"
# provide SOLR_URL for solr connections
SOLR_URL="http://localhost:8983/solr/blacklight-core"
- Connect to
vpnproxy.emory.edu
using Big-IP Edge Client. - Run the rake task:
- If the production set (4.9~ million) is desired, run
RAILS_ENV=development bundle exec rails marc_index_ingest oai_set_name=blacklight full_index=true
in your terminal. This will take over twelve hours to process, so be cautious using this set locally. - If you'd like a more manageable set (4.6~ thousand) for testing purposes, run the command below:
RAILS_ENV=development bundle exec rails marc_index_ingest oai_set_name=blacklighttest full_index=true
- Note: The commands above can be used to re-index (update) your local Solr instance. To re-index only the
items that have changed since the last harvest, remove the argument
full_index=true
completely. - If you want to re-index a single item, remove
full_index=true
,oai_set_name
and addoai_single_id=some_msid
with an id of the record you want to re-index.
- In your local Solr instance, perform a global search query. You will start to see records accumulate when refreshing the page multiple times.
This tutorial can also be found at this link (Emory login required).