Skip to content

Commit

Permalink
Bugfix: Don't let subpaths block full paths from being added as boost…
Browse files Browse the repository at this point in the history
… field
  • Loading branch information
kwahlin committed Nov 28, 2024
1 parent 6962e3b commit bdb3d08
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ class ESQueryLensBoost {
def obj = [(JsonLd.TYPE_KEY): rangeKey]
def rangeChipLens = jsonld.getLensFor(obj, chipsLenses)
def rangeChipFields = collectBoostFields(
rangeChipLens, CARD_BOOST, seenKeys)
rangeChipLens, CARD_BOOST, [] as Set)

return rangeChipFields.collect { "${key}.$it" as String }
.findAll {!seenKeys.contains(it) }
} else {
key = "${key}.${JsonLd.SEARCH_KEY}"
}
Expand Down

0 comments on commit bdb3d08

Please sign in to comment.