Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Favor #to_solr over #generate_solr_document #322

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Jan 24, 2024

Valkyrie indexers favor #to_solr; ActiveFedora based indexers favor
#generate_solr_document. However, Valkyrie indexers also implement
#generate_solr_document (see Hyrax::Indexers::ResourceIndexer).

So we shouldn't decorate both of them as that would introduce potential
double processing.

`Valkyrie` indexers favor `#to_solr`; `ActiveFedora` based indexers favor
`#generate_solr_document`.  However, `Valkyrie` indexers also implement
`#generate_solr_document` (see [`Hyrax::Indexers::ResourceIndexer`][1]).

So we shouldn't decorate both of them as that would introduce potential
double processing.

[1]: https://github.com/samvera/hyrax/blob/3a82b3d513047e270848cd394c97fa4ac60e5b14/app/indexers/hyrax/indexers/resource_indexer.rb#L66-L85
@jeremyf jeremyf force-pushed the fixing-iiif-print-issue branch from 469422b to 3dff0eb Compare January 24, 2024 18:29
@jeremyf jeremyf merged commit 032378f into main Jan 31, 2024
9 checks passed
@jeremyf jeremyf deleted the fixing-iiif-print-issue branch January 31, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants