From d23b777053007543c0995f26059ef9562e6781fb Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Tue, 1 Dec 2020 00:30:45 +0100 Subject: [PATCH] use lowercase filter on edge analyzer (#241) --- VERSION | 2 +- import-scripts/import_scripts/channel.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 8351c19..60d3b2f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -14 +15 diff --git a/import-scripts/import_scripts/channel.py b/import-scripts/import_scripts/channel.py index 4e91406..d059f9e 100644 --- a/import-scripts/import_scripts/channel.py +++ b/import-scripts/import_scripts/channel.py @@ -52,7 +52,7 @@ ANALYSIS = { }, }, "analyzer": { - "edge": {"tokenizer": "edge"}, + "edge": {"tokenizer": "edge", "filter": ["lowercase"]}, "lowercase": { "type": "custom", "tokenizer": "keyword", @@ -199,9 +199,6 @@ MAPPING = { } -# def field_reverse_str(field): - - def string_reverse(text): return text[::-1]