From 0e9251e73d22e012643137ae1032a599bf84c8b4 Mon Sep 17 00:00:00 2001 From: Sam Van Campenhout Date: Tue, 4 Aug 2026 15:58:04 +0200 Subject: [PATCH] Make it possible to search organizations by vendor --- CHANGELOG.md | 1 + config/dispatcher/dispatcher.ex | 4 ++++ config/search/config.json | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6688a39..9052451 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Werkingsgebied (dct:spatial) for private OCMW associations [OP-3832] - Add a new "Wijkkantoor" site type [OP-3837] - cleanup local involvement herne [OP-3858] +- Search organizations by vendor [OP-3808] ### Deploy notes ``` diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 23571bf..1890123 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -235,6 +235,10 @@ defmodule Dispatcher do Proxy.forward(conn, path, "http://cache/membership-roles/") end + match "/vendors/*path", %{accept: [:json], layer: :api} do + Proxy.forward(conn, path, "http://cache/vendors/") + end + # There is currently no logic to invalidate the kboOrganization cache when wegwijse updates the content match "/kbo-organizations/*path", %{accept: [:any], layer: :api} do Proxy.forward(conn, path, "http://resource/kbo-organizations/") diff --git a/config/search/config.json b/config/search/config.json index f12e559..a670458 100644 --- a/config/search/config.json +++ b/config/search/config.json @@ -705,6 +705,10 @@ "operation_area_spatial": [ "http://purl.org/dc/terms/spatial", "http://www.w3.org/2000/01/rdf-schema#label" + ], + "vendor": [ + "^http://mu.semte.ch/vocabularies/account/canActOnBehalfOf", + "http://mu.semte.ch/vocabularies/core/uuid" ] }, "mappings": { @@ -834,6 +838,9 @@ "normalizer": "custom_sort_normalizer" } } + }, + "vendor": { + "type": "keyword" } } }