Open elrayle opened 3 years ago
it might be nice to tackle this with a more feature-oriented approach. do all of these solr documents stored by ActiveFedora get used in Hyrax? if so, what features do they support?
for some of these (e.g. ActiveFedora::IndirectContainer
) there's no corresponding concept in Valkyrie. do we want to invent one to populate the index?
My inclination is to make sure we have the ones we know are needed. Then when we test turning off ActiveFedora, see if anything breaks. But I'm not opposed to a more proactive analysis of how Hyrax uses the ones marked AF specific.
Descriptive summary
When writing to Valkyrie's solr is enabled, not all model types that are saved through ActiveFedora to ActiveFedora managed solr core are also saved to the Valkyrie solr core.
Rationale
Although some model types are ActiveFedora specific and are ok to not include in the Valkyrie solr core, any model type related to content should be saved in the Valkyrie solr core.
Expected behavior
Expected results when testing with seed data that creates 1 admin set, 9 collections, 5 Publication works, and 5 Release works each with 3 files.
Actual behavior
Actual results when testing with seed data that creates 1 admin set, 9 collections, 5 Publication works, and 5 Release works each with 3 files.
Resolution
Each solr doc type is addressed in a separate issue.
Model types that need solr doc for Valkyrie:
Model types that already have solr doc for Valkyrie:
Model types that are ActiveFedora specific and don't require a solr doc for Valkyrie:
Related work
Issue #4487 - Solr docs generated by ActiveFedora and Hyrax::ValkyrieWorkIndexer are not compatible