Commit 0a712448 authored by Jonas Waeber's avatar Jonas Waeber

Only add each doc type once.

parent 9337edd0
Pipeline #20546 passed with stages
in 4 minutes and 49 seconds
......@@ -98,7 +98,12 @@ class InstitutionSearchDocBuilder(
type = type,
name = name,
description = description,
documentType = recordSetIds.flatMap { elasticSearchWrapper.getDocumentTypesFromRecords(it, KEYS.QueryFields.recordSetFacet) },
documentType = recordSetIds.flatMap {
elasticSearchWrapper.getDocumentTypesFromRecords(
it,
KEYS.QueryFields.recordSetFacet
)
}.distinctBy { it.filter },
keyVisualLink = institution[KEYS.wikidataImage].let { if (it != null) it as String else "NoKeyVisualLinkDefined" },
canton = cantons,
city = municipalities,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment