-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathanalyzer.json
55 lines (55 loc) · 1.47 KB
/
analyzer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"settings": {
"analysis": {
"filter": {
"shingle_filter": {
"type": "shingle",
"min_shingle_size": 2,
"max_shingle_size": 3,
"output_unigrams": false
},
"light_english_stemmer": {
"type": "stemmer",
"language": "light_english"
},
"english_possessive_stemmer": {
"type": "stemmer",
"language": "possessive_english"
}
},
"char_filter": {
"quotes": {
"type": "mapping",
"mappings": [
"\\u0091=>\\u0027",
"\\u0092=>\\u0027",
"\\u2018=>\\u0027",
"\\u2019=>\\u0027",
"\\u201B=>\\u0027",
"\\u201D=>\\\u0022",
"\\u201C=>\\\u0022",
"\\uFF02=>\\\u0022"
]
}
},
"analyzer": {
"shingle_analyzer_lc": {
"type": "custom",
"tokenizer": "standard",
"char_filter": [ "quotes"],
"filter": [
"shingle_filter", "lowercase"
]
},
"stemmer_analyzer": {
"type": "custom",
"tokenizer": "standard",
"char_filter": [ "quotes"],
"filter": [
"lowercase", "english_possessive_stemmer", "light_english_stemmer", "asciifolding"
]
}
}
}
}
}