From 069c1ad85a0f8241a74ea3d916d9a5229c7721e3 Mon Sep 17 00:00:00 2001 From: Martin Ledvinka Date: Mon, 21 Oct 2024 15:22:06 +0200 Subject: [PATCH] [Enhancement #536] Support search by examples in faceted search. --- src/component/search/facet/FacetedSearch.tsx | 37 ++++++++++++++------ 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/src/component/search/facet/FacetedSearch.tsx b/src/component/search/facet/FacetedSearch.tsx index a87eb96f..02b53734 100644 --- a/src/component/search/facet/FacetedSearch.tsx +++ b/src/component/search/facet/FacetedSearch.tsx @@ -36,6 +36,11 @@ INITIAL_STATE[VocabularyUtils.SKOS_NOTATION] = { value: [""], matchType: MatchType.EXACT_MATCH, }; +INITIAL_STATE[VocabularyUtils.SKOS_EXAMPLE] = { + property: VocabularyUtils.SKOS_EXAMPLE, + value: [""], + matchType: MatchType.SUBSTRING, +}; INITIAL_STATE[VocabularyUtils.RDF_TYPE] = { property: VocabularyUtils.RDF_TYPE, value: [], @@ -96,33 +101,43 @@ const FacetedSearch: React.FC = () => { - - - - + - + - + + + + + + + + +