From dd107e76e94b36df51c31dcaea73bf091a4dd275 Mon Sep 17 00:00:00 2001 From: Yugi Date: Wed, 21 Feb 2024 23:53:20 -0500 Subject: [PATCH] renaname arabic, use custom analyzer --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7edf491..c7723da 100644 --- a/main.py +++ b/main.py @@ -45,7 +45,7 @@ def create_and_update_index(index_name, documents, fields_to_not_index): "stemmer", ], }, - "rebuilt_arabic": { + "custom_arabic": { "tokenizer": "standard", "char_filter": ["html_strip"], "filter": [ @@ -96,7 +96,7 @@ def create_and_update_index(index_name, documents, fields_to_not_index): }, } } - | {"arabicText": {"type": "text", "analyzer": "arabic"}} + | {"arabicText": {"type": "text", "analyzer": "custom_arabic"}} } if es_client.indices.exists(index=index_name): es_client.indices.delete(index=index_name)