Browse Source

update address matching analyzers. related https://github.com/pelias/schema/pull/77

pull/356/head
Peter Johnson 9 years ago
parent
commit
ac01d72477
  1. 6
      query/autocomplete_defaults.js
  2. 6
      query/reverse_defaults.js
  3. 6
      query/search_defaults.js

6
query/autocomplete_defaults.js

@ -38,15 +38,15 @@ module.exports = extend( false, peliasQuery.defaults, {
'function_score:score_mode': 'avg',
'function_score:boost_mode': 'replace',
'address:housenumber:analyzer': 'standard',
'address:housenumber:analyzer': 'peliasHousenumber',
'address:housenumber:field': 'address.number',
'address:housenumber:boost': 2,
'address:street:analyzer': 'standard',
'address:street:analyzer': 'peliasStreet',
'address:street:field': 'address.street',
'address:street:boost': 5,
'address:postcode:analyzer': 'standard',
'address:postcode:analyzer': 'peliasZip',
'address:postcode:field': 'address.zip',
'address:postcode:boost': 3,

6
query/reverse_defaults.js

@ -38,15 +38,15 @@ module.exports = extend( false, peliasQuery.defaults, {
'function_score:score_mode': 'avg',
'function_score:boost_mode': 'replace',
'address:housenumber:analyzer': 'standard',
'address:housenumber:analyzer': 'peliasHousenumber',
'address:housenumber:field': 'address.number',
'address:housenumber:boost': 2,
'address:street:analyzer': 'standard',
'address:street:analyzer': 'peliasStreet',
'address:street:field': 'address.street',
'address:street:boost': 5,
'address:postcode:analyzer': 'standard',
'address:postcode:analyzer': 'peliasZip',
'address:postcode:field': 'address.zip',
'address:postcode:boost': 3,

6
query/search_defaults.js

@ -38,15 +38,15 @@ module.exports = extend( false, peliasQuery.defaults, {
'function_score:score_mode': 'avg',
'function_score:boost_mode': 'replace',
'address:housenumber:analyzer': 'standard',
'address:housenumber:analyzer': 'peliasHousenumber',
'address:housenumber:field': 'address.number',
'address:housenumber:boost': 2,
'address:street:analyzer': 'standard',
'address:street:analyzer': 'peliasStreet',
'address:street:field': 'address.street',
'address:street:boost': 5,
'address:postcode:analyzer': 'standard',
'address:postcode:analyzer': 'peliasZip',
'address:postcode:field': 'address.zip',
'address:postcode:boost': 3,

Loading…
Cancel
Save