Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Solr indexing for damspas

UCSD Library edited this page Feb 28, 2014 · 1 revision

Index a single record

   bin/damsolrizer-single --hydra_home . bb02020202

Index multiple records

bin/damsolrizer-single --hydra_home . bb02020202 bb48484848 bb80808080

Index all records, use the following script created by Esme
This script lists all the records using the REST API and then index them all using damsolrizer-single.

#!/bin/sh

DIR=/pub/hydration<br>
curl http://localhost:8080/dams/api/records > $DIR/log/all_records.log 
cat $DIR/log/all_records.log | tr '>' '\n'| grep "/obj" | sed -e's/<.*//' -e's/.*\///' > $DIR/log/all_arks.log 
cd $DIR 
bundle exec bin/damsolrizer-single --hydra_home . `cat log/all_arks.log`
Clone this wiki locally