1 | {
|
2 | "size": 10,
|
3 | "track_scores": true,
|
4 |
|
5 | "centroid:field": "center_point",
|
6 | "categories:field": "category",
|
7 |
|
8 | "sort:distance:order": "asc",
|
9 | "sort:distance:distance_type": "plane",
|
10 |
|
11 | "boundary:circle:radius": "50km",
|
12 | "boundary:circle:distance_type": "plane",
|
13 |
|
14 | "boundary:rect:type": "indexed",
|
15 |
|
16 | "ngram:analyzer": "peliasOneEdgeGram",
|
17 | "ngram:field": "name.default",
|
18 | "ngram:boost": 1,
|
19 |
|
20 | "phrase:analyzer": "peliasPhrase",
|
21 | "phrase:field": "phrase.default",
|
22 | "phrase:boost": 1,
|
23 | "phrase:slop": 2,
|
24 |
|
25 | "focus:function": "linear",
|
26 | "focus:offset": "1km",
|
27 | "focus:scale": "50km",
|
28 | "focus:decay": 0.5,
|
29 | "focus:weight": 2,
|
30 |
|
31 | "function_score:score_mode": "avg",
|
32 | "function_score:boost_mode": "replace",
|
33 |
|
34 | "address:housenumber:analyzer": "standard",
|
35 | "address:housenumber:field": "address.number",
|
36 | "address:housenumber:boost": 1,
|
37 |
|
38 | "address:street:analyzer": "standard",
|
39 | "address:street:field": "address.street",
|
40 | "address:street:boost": 1,
|
41 |
|
42 | "address:postcode:analyzer": "standard",
|
43 | "address:postcode:field": "address.zip",
|
44 | "address:postcode:boost": 1,
|
45 |
|
46 | "admin:country_a:analyzer": "standard",
|
47 | "admin:country_a:field": "parent.country_a",
|
48 | "admin:country_a:boost": 1,
|
49 |
|
50 | "admin:country:analyzer": "peliasAdmin",
|
51 | "admin:country:field": "parent.country",
|
52 | "admin:country:boost": 1,
|
53 |
|
54 | "admin:region:analyzer": "peliasAdmin",
|
55 | "admin:region:field": "parent.region",
|
56 | "admin:region:boost": 1,
|
57 |
|
58 | "admin:region_a:analyzer": "peliasAdmin",
|
59 | "admin:region_a:field": "parent.region_a",
|
60 | "admin:region_a:boost": 1,
|
61 |
|
62 | "admin:county:analyzer": "peliasAdmin",
|
63 | "admin:county:field": "parent.county",
|
64 | "admin:county:boost": 1,
|
65 |
|
66 | "admin:localadmin:analyzer": "peliasAdmin",
|
67 | "admin:localadmin:field": "parent.localadmin",
|
68 | "admin:localadmin:boost": 1,
|
69 |
|
70 | "admin:locality:analyzer": "peliasAdmin",
|
71 | "admin:locality:field": "parent.locality",
|
72 | "admin:locality:boost": 1,
|
73 |
|
74 | "admin:neighbourhood:analyzer": "peliasAdmin",
|
75 | "admin:neighbourhood:field": "parent.neighbourhood",
|
76 | "admin:neighbourhood:boost": 1,
|
77 |
|
78 | "popularity:field": "popularity",
|
79 | "popularity:modifier": "sqrt",
|
80 | "popularity:max_boost": 999999,
|
81 | "popularity:weight": 1,
|
82 |
|
83 | "population:field": "population",
|
84 | "population:modifier": "sqrt",
|
85 | "population:max_boost": 999999,
|
86 | "population:weight": 2,
|
87 |
|
88 | "localregions:weight": 10,
|
89 | "localregions:function": "linear",
|
90 | "localregions:offset": "100km",
|
91 | "localregions:scale": "500km",
|
92 | "localregions:decay": 0.5
|
93 | }
|