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: