Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

use dc_identifier_s rather than uuid #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/solr/query-ids.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def initialize(collection, url)
end

def query(q)
response = @solr.get 'select', params: { q: q, fl: 'uuid', rows: '10000' }
response['response']['docs'].each { |doc| puts doc['uuid'] }
response = @solr.get 'select', params: { q: q, fl: 'dc_identifier_s', rows: '10000' }
response['response']['docs'].each { |doc| puts doc['dc_identifier_s'] }
end

def close
Expand Down