-
Notifications
You must be signed in to change notification settings - Fork 0
/
elasticsearch_index_settings.json
55 lines (55 loc) · 1.35 KB
/
elasticsearch_index_settings.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
{
"index": {
"analysis": {
"analyzer": {
"address_analyzer": {
"type": "custom",
"tokenizer": "address_tokenizer",
"filter": ["lowercase", "address_synonym"]
},
"name_analyzer": {
"type": "custom",
"tokenizer": "name_tokenizer",
"filter": ["lowercase"]
},
"name_compact_analyzer": {
"type": "custom",
"tokenizer": "keyword",
"filter": ["lowercase", "alphanumeric"]
},
"first_name_analyzer": {
"type": "custom",
"tokenizer": "name_tokenizer",
"filter": ["lowercase", "first_name_synonym"]
}
},
"filter": {
"address_synonym": {
"type": "synonym",
"synonyms": $addressSynonyms,
"expand": false
},
"first_name_synonym": {
"type": "synonym",
"synonyms": $firstNameSynonyms,
"expand": true
},
"alphanumeric": {
"type": "pattern_replace",
"pattern": "[^a-zA-Z0-9]",
"replacement": ""
}
},
"tokenizer": {
"address_tokenizer": {
"type": "pattern",
"pattern": "[^a-zA-Z0-9]+"
},
"name_tokenizer": {
"type": "pattern",
"pattern": "[^a-zA-Z0-9']+"
}
}
}
}
}