-
Notifications
You must be signed in to change notification settings - Fork 26
Traject EAD Indexing
Jack Reed edited this page Aug 27, 2019
·
3 revisions
- gotchas
- PR review checklist
One way:
# Index content in a fresh solr instance using traject
$ TRAJECT=true bundle exec rake arclight:seed
# Run the feature specs (or individual tests)
$ bundle exec rspec spec/features
Another way:
# Index content in a fresh solr instance using legacy method
$ bundle exec rake arclight:seed
# Store a version of a document
$ curl -o old.json http://127.0.0.1:8983/solr/blacklight-core/select?fl=*&q=id%3Aaoa271
# Restart solr to get a fresh version
# Index using trajct
$ TRAJECT=true bundle exec rake arclight:seed
$ curl -o new.json http://127.0.0.1:8983/solr/blacklight-core/select?fl=*&q=id%3Aaoa271
# diff the output
$ colordiff old.json new.json
Some differences for stored fields only in Solr
- A top level collection document aoa271 https://www.diffchecker.com/nEw8gaDp
TODOs:
- a test that compare solr_ead--> JSON with Traject --> JSON