From cb6c9281fcb31082847193a4cf4deb247e6ef096 Mon Sep 17 00:00:00 2001 From: Mark Pittaway Date: Wed, 6 Mar 2024 17:10:48 +1100 Subject: [PATCH] [STTNHUB-331] config: Set html_field_analyzer to use only lowercase filter --- server/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/settings.py b/server/settings.py index fe9f89a..ce64d0a 100644 --- a/server/settings.py +++ b/server/settings.py @@ -5,6 +5,7 @@ from newsroom.types import AuthProviderType from newsroom.web.default_settings import ( ELASTICSEARCH_SETTINGS, + CONTENTAPI_ELASTICSEARCH_SETTINGS, BLUEPRINTS as DEFAULT_BLUEPRINT, CORE_APPS as DEFAULT_CORE_APPS, CELERY_BEAT_SCHEDULE as CELERY_BEAT_SCHEDULE_DEFAULT, @@ -204,3 +205,5 @@ "name": lazy_gettext("Azure"), "auth_type": AuthProviderType.SAML.value, }) + +CONTENTAPI_ELASTICSEARCH_SETTINGS["settings"]["analysis"]["analyzer"]["html_field_analyzer"]["filter"] = ["lowercase"]