|
|
@ -20,9 +20,9 @@ module.exports = extend( false, peliasQuery.defaults, { |
|
|
|
'boundary:rect:type': 'indexed', |
|
|
|
'boundary:rect:type': 'indexed', |
|
|
|
'boundary:rect:_cache': true, |
|
|
|
'boundary:rect:_cache': true, |
|
|
|
|
|
|
|
|
|
|
|
'ngram:analyzer': 'peliasOneEdgeGram', |
|
|
|
'ngram:analyzer': 'standard', |
|
|
|
'ngram:field': 'name.default', |
|
|
|
'ngram:field': 'name.default', |
|
|
|
'ngram:boost': 1, |
|
|
|
'ngram:boost': 100, |
|
|
|
|
|
|
|
|
|
|
|
'phrase:analyzer': 'peliasPhrase', |
|
|
|
'phrase:analyzer': 'peliasPhrase', |
|
|
|
'phrase:field': 'phrase.default', |
|
|
|
'phrase:field': 'phrase.default', |
|
|
@ -33,7 +33,7 @@ module.exports = extend( false, peliasQuery.defaults, { |
|
|
|
'focus:offset': '100km', |
|
|
|
'focus:offset': '100km', |
|
|
|
'focus:scale': '250km', |
|
|
|
'focus:scale': '250km', |
|
|
|
'focus:decay': 0.5, |
|
|
|
'focus:decay': 0.5, |
|
|
|
'focus:weight': 10, |
|
|
|
'focus:weight': 2, |
|
|
|
|
|
|
|
|
|
|
|
'function_score:score_mode': 'avg', |
|
|
|
'function_score:score_mode': 'avg', |
|
|
|
'function_score:boost_mode': 'multiply', |
|
|
|
'function_score:boost_mode': 'multiply', |
|
|
@ -52,35 +52,35 @@ module.exports = extend( false, peliasQuery.defaults, { |
|
|
|
|
|
|
|
|
|
|
|
'admin:alpha3:analyzer': 'standard', |
|
|
|
'admin:alpha3:analyzer': 'standard', |
|
|
|
'admin:alpha3:field': 'alpha3', |
|
|
|
'admin:alpha3:field': 'alpha3', |
|
|
|
'admin:alpha3:boost': 5, |
|
|
|
'admin:alpha3:boost': 50, |
|
|
|
|
|
|
|
|
|
|
|
'admin:admin0:analyzer': 'peliasAdmin', |
|
|
|
'admin:admin0:analyzer': 'peliasAdmin', |
|
|
|
'admin:admin0:field': 'admin0', |
|
|
|
'admin:admin0:field': 'admin0', |
|
|
|
'admin:admin0:boost': 4, |
|
|
|
'admin:admin0:boost': 40, |
|
|
|
|
|
|
|
|
|
|
|
'admin:admin1:analyzer': 'peliasAdmin', |
|
|
|
'admin:admin1:analyzer': 'peliasAdmin', |
|
|
|
'admin:admin1:field': 'admin1', |
|
|
|
'admin:admin1:field': 'admin1', |
|
|
|
'admin:admin1:boost': 3, |
|
|
|
'admin:admin1:boost': 30, |
|
|
|
|
|
|
|
|
|
|
|
'admin:admin1_abbr:analyzer': 'peliasAdmin', |
|
|
|
'admin:admin1_abbr:analyzer': 'peliasAdmin', |
|
|
|
'admin:admin1_abbr:field': 'admin1_abbr', |
|
|
|
'admin:admin1_abbr:field': 'admin1_abbr', |
|
|
|
'admin:admin1_abbr:boost': 3, |
|
|
|
'admin:admin1_abbr:boost': 30, |
|
|
|
|
|
|
|
|
|
|
|
'admin:admin2:analyzer': 'peliasAdmin', |
|
|
|
'admin:admin2:analyzer': 'peliasAdmin', |
|
|
|
'admin:admin2:field': 'admin2', |
|
|
|
'admin:admin2:field': 'admin2', |
|
|
|
'admin:admin2:boost': 2, |
|
|
|
'admin:admin2:boost': 20, |
|
|
|
|
|
|
|
|
|
|
|
'admin:local_admin:analyzer': 'peliasAdmin', |
|
|
|
'admin:local_admin:analyzer': 'peliasAdmin', |
|
|
|
'admin:local_admin:field': 'local_admin', |
|
|
|
'admin:local_admin:field': 'local_admin', |
|
|
|
'admin:local_admin:boost': 1, |
|
|
|
'admin:local_admin:boost': 10, |
|
|
|
|
|
|
|
|
|
|
|
'admin:locality:analyzer': 'peliasAdmin', |
|
|
|
'admin:locality:analyzer': 'peliasAdmin', |
|
|
|
'admin:locality:field': 'locality', |
|
|
|
'admin:locality:field': 'locality', |
|
|
|
'admin:locality:boost': 1, |
|
|
|
'admin:locality:boost': 10, |
|
|
|
|
|
|
|
|
|
|
|
'admin:neighborhood:analyzer': 'peliasAdmin', |
|
|
|
'admin:neighborhood:analyzer': 'peliasAdmin', |
|
|
|
'admin:neighborhood:field': 'neighborhood', |
|
|
|
'admin:neighborhood:field': 'neighborhood', |
|
|
|
'admin:neighborhood:boost': 1, |
|
|
|
'admin:neighborhood:boost': 10, |
|
|
|
|
|
|
|
|
|
|
|
'popularity:field': 'popularity', |
|
|
|
'popularity:field': 'popularity', |
|
|
|
'popularity:modifier': 'log1p', |
|
|
|
'popularity:modifier': 'log1p', |
|
|
|