@@ -440,27 +440,52 @@ curl 'http://localhost:8983/solr/gdi/CONFIG_NAME?command=full-import'
440440```
441441
442442
443- ### Configuring the search for a theme
443+ ### Configuring the search as default or for a specific theme
444444
445- To use a fulltext search in a theme , configure a ` fulltext ` search provider in ` themesConfig.json ` as follows:
445+ To use a fulltext search as ** default for all themes ** , configure a ` fulltext ` search provider in ` themesConfig.json ` as follows:
446446
447447``` json
448- "searchProviders" : [
448+ {
449+ "defaultSearchProviders" : [
449450 {
450- "provider" : " fulltext" ,
451- "params" : {
452- "default" : [<FACET_NAME> ],
453- "layers" : {
454- "<layer_name>" : " <FACET_NAME>"
455- }
451+ "provider" : " fulltext" ,
452+ "params" : {
453+ "default" : [<FACET_NAME> ],
454+ "layers" : {
455+ "<layer_name>" : " <FACET_NAME>"
456456 }
457+ }
457458 }
458- ]
459+ ]
460+ }
459461```
460- Where:
461462
463+ To use a fulltext search in ** a specific theme** , configure a ` fulltext ` search provider in ` themesConfig.json ` as follows:
464+
465+ ``` json
466+ {
467+ "themes" : {
468+ "items" : [
469+ {
470+ "searchProviders" : [
471+ {
472+ "provider" : " fulltext" ,
473+ "params" : {
474+ "default" : [<FACET_NAME> ],
475+ "layers" : {
476+ "<layer_name>" : " <FACET_NAME>"
477+ }
478+ }
479+ }
480+ ]
481+ }
482+ ]
483+ }
484+ }
485+ ```
486+ Where:
462487* ` default ` lists the search facets enabled by default.
463- * ` layers ` providides a mapping of facets which are enabled whenever the theme layer ` <layer_name> ` is visible on the map.
488+ * ` layers ` (optional) providides a mapping of facets which are enabled whenever the theme layer ` <layer_name> ` is visible on the map.
464489
465490Next, create the resources in the Admin GUI to control the search permissions:
466491
0 commit comments