Skip to content

Commit 509cb33

Browse files
committed
feat: Use peliasQuery analyzer for address_parts.street
This is an experimental change, but one that has good impact when paired with pelias/schema#446. Essentially, this change continues the trend we have started for the `name.*` and `phrase.*` fields to generate synonyms _only_ at index time. It may be the case that variations on input vs data text (for example `crt` vs `ct` vs `court`) may cause different synonyms to be generated by the same analyzer. Many queries, especially `match_phrase` queries, will require that _all_ of those generated synonym tokens must match. This is often not desirable.
1 parent e379a5f commit 509cb33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

query/search_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {
4141
'address:housenumber:boost': 2,
4242
'address:housenumber:cutoff_frequency': 0.01,
4343

44-
'address:street:analyzer': 'peliasStreet',
44+
'address:street:analyzer': 'peliasQuery',
4545
'address:street:field': 'address_parts.street',
4646
'address:street:boost': 5,
4747
'address:street:slop': 1,

0 commit comments

Comments
 (0)