Skip to content

Commit

Permalink
feat(autocomplete): add macrocounty to list of potential admin matchi…
Browse files Browse the repository at this point in the history
…ng fields
  • Loading branch information
missinglink committed Mar 28, 2024
1 parent e6f532b commit aa458a1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions query/autocomplete_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'admin:county:boost': 1,
'admin:county:cutoff_frequency': 0.01,

'admin:macrocounty:analyzer': 'peliasAdmin',
'admin:macrocounty:field': 'parent.macrocounty.ngram',
'admin:macrocounty:boost': 1,
'admin:macrocounty:cutoff_frequency': 0.01,

'admin:localadmin:analyzer': 'peliasAdmin',
'admin:localadmin:field': 'parent.localadmin.ngram',
'admin:localadmin:boost': 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
'parent.dependency.ngram^1',
'parent.macroregion.ngram^1',
'parent.region.ngram^1',
'parent.macrocounty.ngram^1',
'parent.county.ngram^1',
'parent.localadmin.ngram^1',
'parent.locality.ngram^1',
Expand Down
1 change: 1 addition & 0 deletions test/unit/fixture/autocomplete_linguistic_with_admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
'parent.dependency.ngram^1',
'parent.macroregion.ngram^1',
'parent.region.ngram^1',
'parent.macrocounty.ngram^1',
'parent.county.ngram^1',
'parent.localadmin.ngram^1',
'parent.locality.ngram^1',
Expand Down
1 change: 1 addition & 0 deletions test/unit/fixture/autocomplete_single_character_street.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
'parent.dependency.ngram^1',
'parent.macroregion.ngram^1',
'parent.region.ngram^1',
'parent.macrocounty.ngram^1',
'parent.county.ngram^1',
'parent.localadmin.ngram^1',
'parent.locality.ngram^1',
Expand Down

0 comments on commit aa458a1

Please sign in to comment.