Closed acka47 closed 2 years ago
Confirmed, it looks like the problem is that one language overwrites the others.
What is the wanted behaviour here? Do we also want to show results if search term was in another language? There maybe two options:
I think the first approach might be a bit confusing for users, but I'm open for discussion and feedback.
We should also consider #128 ("Add strings from skos:altLabel & skos:example to FlexSearch index") in this discussion as implementing it might also lead to showing a concept label as result that does not match the search term. When broadening the context like this, I also see two options:
prefLabel
, altLabel
or example
in the chosen language. (The question why this concept is shown as result will then be answered when clicking on the link where altLabel
s and example
s are shown.)prefLabel
, altLabel
or example
in any language.I think, here, the first approach makes more sense, i.e. to even show a concept when the search term matches its prefLabel
, altLabel
or example
in the given language.
This would mean, for this issue, to chose your second approach from https://github.com/skohub-io/skohub-vocabs/issues/127#issuecomment-911383856 which you already favoured.
I think the vocab has to be rebuild to become effective?
I rebuilt HCRT and Hochschulfächersystematik. Closing.
Taking a deeper look at the FlexSearch index of some vocabularies, I noticed that not all
skos:prefLabels
are indexed. In HCRT, I found that "Abbildung" from https://w3id.org/kim/hcrt/image isn't indexed: