use lowercase filter on edge analyzer (#241)

This commit is contained in:
Rok Garbas 2020-12-01 00:30:45 +01:00 committed by GitHub
parent 3b53d74bb7
commit d23b777053
Failed to generate hash of commit
2 changed files with 2 additions and 5 deletions

View file

@ -1 +1 @@
14
15

View file

@ -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]