diff --git a/helper/adminFields.js b/helper/adminFields.js index 275e03c1..af6ac432 100644 --- a/helper/adminFields.js +++ b/helper/adminFields.js @@ -10,7 +10,8 @@ var ADMIN_FIELDS = [ 'admin2', 'local_admin', 'locality', - 'neighborhood' + 'neighborhood', + 'address.zip' ]; /** @@ -41,4 +42,4 @@ function getAvailableAdminFields(schema, expectedFields, logger) { return available; } -module.exports = getAvailableAdminFields; \ No newline at end of file +module.exports = getAvailableAdminFields; diff --git a/query/autocomplete_defaults.js b/query/autocomplete_defaults.js index f6a9638c..401ebf73 100644 --- a/query/autocomplete_defaults.js +++ b/query/autocomplete_defaults.js @@ -48,7 +48,7 @@ module.exports = extend( false, peliasQuery.defaults, { 'address:postcode:analyzer': 'peliasZip', 'address:postcode:field': 'address.zip', - 'address:postcode:boost': 3, + 'address:postcode:boost': 20, 'admin:alpha3:analyzer': 'standard', 'admin:alpha3:field': 'alpha3', diff --git a/query/search_defaults.js b/query/search_defaults.js index f6a9638c..401ebf73 100644 --- a/query/search_defaults.js +++ b/query/search_defaults.js @@ -48,7 +48,7 @@ module.exports = extend( false, peliasQuery.defaults, { 'address:postcode:analyzer': 'peliasZip', 'address:postcode:field': 'address.zip', - 'address:postcode:boost': 3, + 'address:postcode:boost': 20, 'admin:alpha3:analyzer': 'standard', 'admin:alpha3:field': 'alpha3',