Skip to content

fetch data needed for search card shaping that embellish doesn't reach - #1844

Open
kwahlin wants to merge 3 commits into
developfrom
bugfix/missing-index-data
Open

kwahlin wants to merge 3 commits into
developfrom
bugfix/missing-index-data

Conversation

@kwahlin

@kwahlin kwahlin commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Fixes:

Replaces the previous temporary, hard-coded solution for indexing linked holding data such as library organizations and shelf marks.

The original embellish and framing algorithms are left untouched; similar logic has instead been replicated separately to compensate for data they may drop. We may want to consolidate this in the future.

Indexing performance shouldn't be affected too much, but the index size might grow, since we may now also index some unnecessary data. However, that's now mainly a matter of how the lenses are defined, since we "get what we ask for" -- we should tune those if necessary (probably a good idea regardless).

See also:
libris/definitions#626
libris/lxl_api_tests#54

@kwahlin
kwahlin requested review from andersju and olovy September 25, 2026 07:45
Comment thread whelk-core/src/main/groovy/whelk/util/FresnelUtil.java Outdated
var embellishedNonIntegralGraphs = fullEmbellishedGraph.drop(mainGraph.size() + embellishedIntegralGraphs.size())
var shapedEmbellishedNonIntegralGraphs = shapeNonIntegralThings(whelk.fresnelUtil, embellishedNonIntegralGraphs)
var nonIntegralEmbellishments = fullEmbellishedGraph.drop(mainGraph.size() + integralEmbellishments.size()) as List<Map<String, Object>>
Set<String> visited = integralIds + originalGraph.findResults { (String) it[ID_KEY] }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be all visited ids in embellished graph? not just intergral

kwahlin and others added 2 commits September 25, 2026 11:47
Co-authored-by: Olov Ylinenpää <51744858+olovy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants