From e6771556768cc206860cba634fd98f4527107d8f Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Tue, 26 Nov 2024 15:16:55 +0100 Subject: [PATCH] Handle new fulltext search provider configuration format --- src/config_generator/map_viewer_config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/config_generator/map_viewer_config.py b/src/config_generator/map_viewer_config.py index 6afd3b4..34f77b2 100644 --- a/src/config_generator/map_viewer_config.py +++ b/src/config_generator/map_viewer_config.py @@ -425,9 +425,12 @@ def theme_item(self, cfg_item, themes_config, assets_dir, autogenExternalLayers, for search_provider in search_providers: if ( 'provider' in search_provider - and search_provider.get('provider') == 'solr' + and ( + search_provider.get('provider') == 'solr' or + search_provider.get('provider') == 'fulltext' + ) ): - search_layers = search_provider.get('layers', {}) + search_layers = search_provider.get('params', {}).get('layers', search_provider.get('layers', {})) break # collect layers