From 8eee346f319efe96f384f8e2e7f5eac9798facd0 Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Mon, 13 Nov 2023 15:48:05 +0100 Subject: [PATCH] add elisium filter to elastic config to handle french articles CPCN-399 --- server/settings.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/settings.py b/server/settings.py index 6c0d33e..558e0d6 100644 --- a/server/settings.py +++ b/server/settings.py @@ -11,6 +11,7 @@ CLIENT_URL, CLIENT_LOCALE_FORMATS, AUTH_PROVIDERS, + CONTENTAPI_ELASTICSEARCH_SETTINGS, ) from cp.common_settings import AUTH_PROVIDERS # noqa @@ -304,3 +305,13 @@ ] AGENDA_SHOW_MULTIDAY_ON_START_ONLY = True + +CONTENTAPI_ELASTICSEARCH_SETTINGS["settings"]["analysis"]["analyzer"]["html_field_analyzer"]["filter"] = [ + "lowercase", + "elision", + "asciifolding", +] + +# bump core versions to reindex inclusing elision +WIRE_SCHEMA_VERSION = 4 +AGENDA_SCHEMA_VERSION = 6