forked from HSLdevcom/pelias-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelias.json.docker
116 lines (116 loc) · 2.86 KB
/
pelias.json.docker
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"esclient": {
"apiVersion": "2.4",
"keepAlive": true,
"requestTimeout": "20000",
"hosts": [
{
"env": "production",
"protocol": "http",
"host": "pelias-data-container",
"port": 9200
},
{
"env": "production",
"protocol": "http",
"host": "pelias-data-container",
"port": 9300
}
]
},
"logger": {
"level": ["error", "warning"]
},
"acceptance-tests": {
"endpoints": {
"dev": "http://dev-api.digitransit.fi/geocoding/v1/"
}
},
"api" : {
"indexName": "pelias",
"version": "1.0",
"textAnalyzer": "libpostal",
"sizePadding": 10,
"minConfidence": 0.2,
"relativeMinConfidence": 0.4,
"languageMatchThreshold": 0.4,
"query": {
"search": {
"disableFallback": true,
"defaults": {
"ngram:analyzer": "peliasIndexOneEdgeGram",
"ngram:multifield": ["name.*"],
"phrase:multifield": ["name.*"],
"address:housenumber:boost": 0.1,
"address:street:boost": 1,
"admin:localadmin:boost": 20
}
},
"autocomplete": {
"defaults": {
"ngram:multifield": ["name.*"],
"phrase:multifield": ["name.*"]
}
}
},
"languages": [
"fi",
"default",
"sv",
"en",
"se",
"local",
"alternative",
"international",
"national",
"official",
"old",
"regional",
"short",
"sorting"
],
"languageMap": {
"default":"fi",
"local":"fi",
"alternative":"fi",
"international":"fi",
"national":"fi",
"official":"fi",
"old":"fi",
"regional":"fi",
"short":"fi",
"sorting":"fi"
},
"localization" : {
"confidenceAdminWeights": {
"localadmin": 1,
"locality": 0.2,
"neighbourhood": 0.2,
"region": 0.2,
"country": 0.1,
"street": 0.2
},
"confidenceAddressParts": {
"number": {"parent":"address_parts", "field":"number", "numeric": true, "weight": 0.5},
"street": {"parent":"address_parts", "field":"street", "numeric": false, "weight": 2},
"postalcode": {"parent":"address_parts", "field":"zip", "numeric": false, "weight": 1}
},
"filteredRegions": ["suomi", "finland"],
"cleanRegions": true,
"postalCodeValidator": "^[0-9]{5}$",
"streetNumberValidator": "^[0-9].*$",
"translations": "/opt/pelias/api/translations.json",
"equalCharMap": {
"é":"e",
"'":"",
"-":" "
},
"labelSchemas": {
"FIN": {
"address": { "fields": [["street", "housenumber"], "neighbourhood"], "matchType": "first", "targets": ["venue", "stop", "station"] },
"local": { "fields": ["localadmin", "locality"], "matchType": "best" }
}
}
}
}
}