blob: ef4df81550610dc35ce92857f645ea2d68ce7063 (
plain)
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
|
[[analysis-mapping-charfilter]]
=== Mapping Char Filter
A char filter of type `mapping` replacing characters of an analyzed text
with given mapping.
Here is a sample configuration:
[source,js]
--------------------------------------------------
{
"index" : {
"analysis" : {
"char_filter" : {
"my_mapping" : {
"type" : "mapping",
"mappings" : ["ph=>f", "qu=>q"]
}
},
"analyzer" : {
"custom_with_char_filter" : {
"tokenizer" : "standard",
"char_filter" : ["my_mapping"]
},
}
}
}
}
--------------------------------------------------
Otherwise the setting `mappings_path` can specify a file where you can
put the list of char mapping :
[source,js]
--------------------------------------------------
ph => f
qu => k
--------------------------------------------------
|