From b42c5b05a9be44d7fb76dd90df21eab2c88d27b2 Mon Sep 17 00:00:00 2001 From: Nikhil P Bonte Date: Tue, 10 Oct 2023 21:15:20 +0530 Subject: [PATCH] DG-235 rawQueryText ES indexing issue with \n --- addons/elasticsearch/es-settings.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/elasticsearch/es-settings.json b/addons/elasticsearch/es-settings.json index d23de9e945..359482a09d 100644 --- a/addons/elasticsearch/es-settings.json +++ b/addons/elasticsearch/es-settings.json @@ -111,9 +111,10 @@ "replacement":" $0" }, "truncate_filter": { - "pattern": "(^.{0,100000}).*$", + "pattern": "(.{0,100000}).*", "type": "pattern_replace", - "replacement": "$1 " + "replacement": "$1", + "flags": "DOTALL" } } }