From 7ab815c9f32214fa0b306b36417b76e564f271b9 Mon Sep 17 00:00:00 2001 From: Nikhil P Bonte Date: Wed, 13 Sep 2023 19:37:53 +0530 Subject: [PATCH] PLT-1886 Add truncate analyzer for vertex_index --- addons/elasticsearch/es-settings.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/addons/elasticsearch/es-settings.json b/addons/elasticsearch/es-settings.json index 221a73d25f..d23de9e945 100644 --- a/addons/elasticsearch/es-settings.json +++ b/addons/elasticsearch/es-settings.json @@ -57,6 +57,12 @@ "graph_synonyms", "lowercase" ], "tokenizer": "atlan_tokenizer" + }, + "truncate_analyzer": { + "char_filter": [ + "truncate_filter" + ], + "tokenizer": "standard" } }, "normalizer": { @@ -103,6 +109,11 @@ "type":"pattern_replace", "pattern":"\\d+", "replacement":" $0" + }, + "truncate_filter": { + "pattern": "(^.{0,100000}).*$", + "type": "pattern_replace", + "replacement": "$1 " } } }