Browse Source

increase postcode weights, add postcode to leftovers

pull/356/head
Peter Johnson 9 years ago
parent
commit
c17a0dbc54
  1. 3
      helper/adminFields.js
  2. 2
      query/autocomplete_defaults.js
  3. 2
      query/search_defaults.js

3
helper/adminFields.js

@ -10,7 +10,8 @@ var ADMIN_FIELDS = [
'admin2', 'admin2',
'local_admin', 'local_admin',
'locality', 'locality',
'neighborhood' 'neighborhood',
'address.zip'
]; ];
/** /**

2
query/autocomplete_defaults.js

@ -48,7 +48,7 @@ module.exports = extend( false, peliasQuery.defaults, {
'address:postcode:analyzer': 'peliasZip', 'address:postcode:analyzer': 'peliasZip',
'address:postcode:field': 'address.zip', 'address:postcode:field': 'address.zip',
'address:postcode:boost': 3, 'address:postcode:boost': 20,
'admin:alpha3:analyzer': 'standard', 'admin:alpha3:analyzer': 'standard',
'admin:alpha3:field': 'alpha3', 'admin:alpha3:field': 'alpha3',

2
query/search_defaults.js

@ -48,7 +48,7 @@ module.exports = extend( false, peliasQuery.defaults, {
'address:postcode:analyzer': 'peliasZip', 'address:postcode:analyzer': 'peliasZip',
'address:postcode:field': 'address.zip', 'address:postcode:field': 'address.zip',
'address:postcode:boost': 3, 'address:postcode:boost': 20,
'admin:alpha3:analyzer': 'standard', 'admin:alpha3:analyzer': 'standard',
'admin:alpha3:field': 'alpha3', 'admin:alpha3:field': 'alpha3',

Loading…
Cancel
Save