use lowercase filter on edge analyzer (#241)
This commit is contained in:
parent
3b53d74bb7
commit
d23b777053
|
@ -52,7 +52,7 @@ ANALYSIS = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"analyzer": {
|
"analyzer": {
|
||||||
"edge": {"tokenizer": "edge"},
|
"edge": {"tokenizer": "edge", "filter": ["lowercase"]},
|
||||||
"lowercase": {
|
"lowercase": {
|
||||||
"type": "custom",
|
"type": "custom",
|
||||||
"tokenizer": "keyword",
|
"tokenizer": "keyword",
|
||||||
|
@ -199,9 +199,6 @@ MAPPING = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# def field_reverse_str(field):
|
|
||||||
|
|
||||||
|
|
||||||
def string_reverse(text):
|
def string_reverse(text):
|
||||||
return text[::-1]
|
return text[::-1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue