You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It attempts to collapse on version_id as a float, which won't work since PDS4 uses semantic versioning (e.g. in PDS4 1.100 > 1.2). We need to figure out some sort of normalized numeric version we can use for this.
For collapse to work it requires all versions of that product to be on the same shard, which is unlikely. We would need to change the installation to 1 shard for this to work.
The search faceting overwrites the fq value. So as soon as someone facets on something, we no longer have the latest versions only.
Alternative options to collapse:
Remove previous versions and only load the latest versions.
Create separate index to support latest-only, and write tool to query data core to get only the latest products.
Create separate field for maintaining latest version, add that to search and archive-filter request handlers. (see provenance in registry-sweepers for possible implementation)
Switch to use 1 shard, create new some version_id_normalized field for handling numeric comparison to support Solr collapse, update add-hierarchy.xsl to calculate and add version_id_normalized to metadata onload.
💡 Description
Current implementation attempts to use Solr collapse functionality.
https://github.com/NASA-PDS/registry-mgr-legacy/blob/main/src/main/resources/collections/data/solrconfig.xml#L789
https://github.com/NASA-PDS/registry-mgr-legacy/blob/main/src/main/resources/collections/data/solrconfig.xml#L848
A few issues with this method:
It attempts to collapse on
version_id
as a float, which won't work since PDS4 uses semantic versioning (e.g. in PDS4 1.100 > 1.2). We need to figure out some sort of normalized numeric version we can use for this.For collapse to work it requires all versions of that product to be on the same shard, which is unlikely. We would need to change the installation to 1 shard for this to work.
The search faceting overwrites the
fq
value. So as soon as someone facets on something, we no longer have the latest versions only.Alternative options to collapse:
data
core to get only the latest products.search
andarchive-filter
request handlers. (see provenance in registry-sweepers for possible implementation)Sub-tasks
The text was updated successfully, but these errors were encountered: