use lowercase filter on edge analyzer (#241)
This commit is contained in:
parent
3b53d74bb7
commit
d23b777053
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue