From 7e9bee54b520af0cc036031001c4cdafee5bca09 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Wed, 17 Jun 2020 07:05:11 -0700 Subject: [PATCH] Add Saint/St to street_synonyms_en This is a common abbreviation that has not been handled well in the `address_parts.street` field. Connects https://github.com/pelias/pelias/issues/737 --- synonyms/street_synonyms_en.txt | 1 + test/fixtures/expected.json | 3 ++- test/settings.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/synonyms/street_synonyms_en.txt b/synonyms/street_synonyms_en.txt index c211d0a3..0759b5d8 100644 --- a/synonyms/street_synonyms_en.txt +++ b/synonyms/street_synonyms_en.txt @@ -291,6 +291,7 @@ round, rnd route, rt, rte row, rw run, rn +saint, st serviceway, swy, svwy, svcwy shoal, shl shoals, shls diff --git a/test/fixtures/expected.json b/test/fixtures/expected.json index ecbc8686..a575ed27 100644 --- a/test/fixtures/expected.json +++ b/test/fixtures/expected.json @@ -685,6 +685,7 @@ "route,rt,rte", "row,rw", "run,rn", + "saint,st", "serviceway,swy,svwy,svcwy", "shoal,shl", "shoals,shls", @@ -1684,4 +1685,4 @@ }, "dynamic": "strict" } -} \ No newline at end of file +} diff --git a/test/settings.js b/test/settings.js index 6fec0c18..eadb0803 100644 --- a/test/settings.js +++ b/test/settings.js @@ -381,7 +381,7 @@ module.exports.tests.streetSynonymEnglishFilter = function(test, common) { var filter = s.analysis.filter.street_synonyms_en; t.equal(filter.type, 'synonym'); t.true(Array.isArray(filter.synonyms)); - t.equal(filter.synonyms.length, 373); + t.equal(filter.synonyms.length, 374); t.end(); }); };