scientist-softserv / iiif_print

A gem for Hyrax/Samvera for displaying PDF pages in a IIIF Compliant viewer
Apache License 2.0
4 stars 1 forks source link

🐛 Cast ID to String to Account for Valkyrie::ID #337

Closed jeremyf closed 7 months ago

jeremyf commented 7 months ago

Prior to this, casting a Valkyrie::ID to a SolrDocument value would create a hash and produce the following error:

RSolr::Error::Http:
RSolr::Error::Http - 400 Bad Request
Error: Unable to index docs with children: the schema must include
definitions for both a uniqueKey field and the '_root_' field, using the
exact same fieldType

See:

http://playbook-staging.notch8.com/en/samvera/hyku/troubleshooting/unable-to-index-docs-with-children