You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finally, configure the search facets for the desired themes and give the users the necessary rights in the Admin GUI.
385
-
386
-
1. Add the following to a theme item in `themesConfig.json`:
384
+
To use a fulltext search in a theme, configure a `fulltext` search provider in `themesConfig.json` as follows:
387
385
388
386
```json
389
387
"searchProviders": [
390
388
{
391
-
"provider": "solr",
389
+
"provider": "fulltext",
392
390
"default": [<FACET_NAME>],
393
391
"layers": {
394
392
"<layer_name>": "<FACET_NAME>"
395
393
}
396
394
}
397
395
]
398
396
```
397
+
Where:
399
398
400
-
When activating a search to a theme, you can either:
401
-
402
-
* Add the search name to the `default` list, resulting in the search always being active.
403
-
* Add the search name to the `layers` object, resulting in the search being active only if the theme layer `<layer_name>` is present in the theme.
399
+
*`default` lists the search facets enabled by default.
400
+
*`layers` providides a mapping of facets which are enabled whenever the theme layer `<layer_name>` is visible on the map.
404
401
405
-
2. Create`Search facet` resources in the Admin GUI for the desired facet names.
402
+
Next, create`Search facet` resources in the Admin GUI for the desired facet names.
406
403
407
404
* To manage layer search permissions, you can create a `Search facet` with name `dataproduct`.
408
405
* You can create a wildcard `Search facet` resource by setting the name to `*`. This is useful to assign permissions for all available facets with one single resource.
409
406
410
-
3. Add permissions on the newly created resource
411
-
4. Re-generate the services configurations with the `Generate service configuration` button
407
+
Finally, create permissions for the newly created resources and regenerate the service configuration.
0 commit comments