Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Elasticsearch Services
Search Doc Service
Commits
0a712448
Commit
0a712448
authored
Jan 21, 2021
by
Jonas Waeber
Browse files
Only add each doc type once.
parent
9337edd0
Pipeline
#20546
passed with stages
in 4 minutes and 49 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/InstitutionSearchDocBuilder.kt
View file @
0a712448
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment