-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetting_analyzers
More file actions
50 lines (44 loc) · 901 Bytes
/
setting_analyzers
File metadata and controls
50 lines (44 loc) · 901 Bytes
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
GET myblog2022/_search
POST myblog2022/_close
PUT myblog2022/_settings
{
"analysis": {
"analyzer": {
"myanalyzercontent":{
"type":"custom",
"tokenizer":"standard",
"char_filter":[
"html_strip",
"remplace"
],
"filter":[
"lowercase",
"myfilter"
]
}
},
"char_filter": {
"remplace":{
"type":"mapping",
"mappings":[
"la => llllla ",
"des => ffff",
"abc => www"
]
}
},
"filter": {
"myfilter":{
"type":"stop",
"stopwords":"_french_"
}
}
}
}
POST myblog2022/_open
GET myblog2022/_settings
post myblog2022/_analyze
{
"text":"la bla <p>sss</p> 2022 des abc le de ",
"analyzer":"myanalyzercontent"
}