From 9609347f2a7eabdf46a43afd8414812d4a139663 Mon Sep 17 00:00:00 2001 From: CebullaD Date: Tue, 8 Apr 2025 09:18:02 +0200 Subject: [PATCH] Add Documentation for default fulltext seach provider --- src/topics/Search.md | 49 +++++++++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/src/topics/Search.md b/src/topics/Search.md index f61ddf6e..d23164b8 100644 --- a/src/topics/Search.md +++ b/src/topics/Search.md @@ -440,27 +440,52 @@ curl 'http://localhost:8983/solr/gdi/CONFIG_NAME?command=full-import' ``` -### Configuring the search for a theme +### Configuring the search as default or for a specific theme -To use a fulltext search in a theme, configure a `fulltext` search provider in `themesConfig.json` as follows: +To use a fulltext search as **default for all themes**, configure a `fulltext` search provider in `themesConfig.json` as follows: ```json -"searchProviders": [ +{ + "defaultSearchProviders": [ { - "provider": "fulltext", - "params": { - "default": [], - "layers": { - "": "" - } + "provider": "fulltext", + "params": { + "default": [], + "layers": { + "": "" } + } } -] + ] +} ``` -Where: +To use a fulltext search in **a specific theme**, configure a `fulltext` search provider in `themesConfig.json` as follows: + +```json +{ + "themes": { + "items": [ + { + "searchProviders": [ + { + "provider": "fulltext", + "params": { + "default": [], + "layers": { + "": "" + } + } + } + ] + } + ] + } +} +``` +Where: * `default` lists the search facets enabled by default. -* `layers` providides a mapping of facets which are enabled whenever the theme layer `` is visible on the map. +* `layers` (optional) providides a mapping of facets which are enabled whenever the theme layer `` is visible on the map. Next, create the resources in the Admin GUI to control the search permissions: