Skip to content

Commit

Permalink
debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcam-src committed Oct 3, 2024
1 parent c0d300a commit da72ca6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/dissertations_page_count.rake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace :dissertations do

loop do
query_string = year ? "admin_set_tesim:\"Dissertations\" AND year_tesim:\"#{year}\"" : 'admin_set_tesim:"Dissertations"'
Rails.logger.info("Querying Solr with: #{query_string}")
response = ActiveFedora::SolrService.get(query_string, start: start, rows: rows)
processed_dissertations = response['response']['docs'].map { |doc| process_dissertation(doc) }
all_processed_dissertations.concat(processed_dissertations)
Expand Down

0 comments on commit da72ca6

Please sign in to comment.