Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
deployed marc_liberation to staging
opened tunnel to lib-solr-staging4: ssh -L 9000:localhost:8983 pulsys@lib-solr-staging4
checked that the hathi file exists in ls -lrt /opt/marc_liberation/shared/hathi/output/
opened a tmux new session: tmux new -s test-index
checked hathi final file. first column is oclc, second column is the bibid.
found in lib-solr-staging4 the id:“9056807”
`{
"responseHeader":{
"zkConnected":true,
"status":0,
"QTime":11,
"params":{
"q":"id:\"9056807\"",
"fl":"timestamp",
"_":"1591268705383"}},
"response":{"numFound":1,"start":0,"maxScore":56.77745,"docs":[
{
"timestamp":"2020-02-26T01:57:22.307Z"}]
},
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"format":[
"Book",1],
"language_facet":[
"English",1],
"pub_date_start_sort":[
"2015",1],
"advanced_location_s":[
"Firestone Library",1,
"f",1]},
"facet_ranges":{},
"facet_intervals":{},
"facet_heatmaps":{}}}
`
UPDATE_LOCATIONS=true BIBDATA_URL=https://bibdata-staging.princeton.edu BIB=9056807 SET_URL=http://lib-solr-staging4.princeton.edu:8983/solr/catalog-staging rake liberate:bib
after he task:
`{
"responseHeader":{
"zkConnected":true,
"status":0,
"QTime":12,
"params":{
"q":"id:\"9056807\"",
"fl":"timestamp",
"_":"1591271556313"}},
"response":{"numFound":1,"start":0,"maxScore":56.545258,"docs":[
{
"timestamp":"2020-06-04T11:52:12.404Z"}]
},
"facet_counts":{
"facet_queries":{},
"facet_fields":{
"format":[
"Book",1],
"language_facet":[
"English",1],
"pub_date_start_sort":[
"2015",1],
"advanced_location_s":[
"Firestone Library",1,
"f",1]},
"facet_ranges":{},
"facet_intervals":{},
"facet_heatmaps":{}}}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.