Closed christinach closed 1 month ago
Locally this seems to be functioning without any errors:
bundle exec rake oai:index_record[oai:dataspace.princeton.edu:88435/dsp01vh53wv957] SOLR="http://localhost:8983/solr/orangetheses-core-development"
[10:53:32] INFO: Adding dsp01vh53wv957
I have just tested this against the staging
environment for bibdata
, and it successfully completed for the theses collection. However, I must please defer to others in DACS in order to be certain that this indeed fixing the indexing errors.
@jrgriffiniii I posted an update on the PR that there is still a failure. The rake task can successfully export the records. However because the field pu.location exists in the export, it causes the POST to the solr index to fail.
The last orangetheses ref that works is 4ac8dc2bd04b10db764fc37df3261531c9937061
https://github.com/pulibrary/bibdata/blob/2adad5269031fd31a80d72f7e68bfb226d6f85ce/Gemfile#L50
I am very sorry, I may need to please request for assistance with this, as I am finding the following when I invoke bundle exec rake oai:index_all[com_88435_dsp019c67wm88m] SOLR="http://lib-solr8-prod.princeton.edu:8983/solr/catalog-alma-production"
, that this succeeds. I assumed that this transmitted a POST
request to the Solr endpoint.
I was corrected and I am now testing against the following:
bundle exec rake orangetheses:cache_theses
I have tested the following successfully:
RAILS_ENV=staging SOLR="http://lib-solr8d-staging.princeton.edu:8983/solr/catalog-staging" bundle exec rake orangetheses:cache_collection[361]
bundle exec rake orangetheses:cache_theses
will create a json file with the desired records from dspace.
I'm happy to test the changes on bibdata staging or if you wish to try indexing on staging please follow:
ssh deploy@bibdata-worker-staging1.lib.princeton.edu
cd /opt/bibdata/current
FILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses
(this will override the existing theses.json file which is ok.)curl 'http://lib-solr8d-staging.princeton.edu:8983/solr/catalog-staging/update?commit=true' --data-binary @/home/deploy/theses.json -H 'Content-type:application/json'
Expected behavior
Example record from last successfully indexed export
Actual behavior
The same record using version v1.4.3
Steps to replicate
Run the rake task on bibdata-staging
Impact of this bug
The rake task fails to index because of the new unnecessary fields in the export json
Acceptance criteria
Implementation notes, if any