Closed missinglink closed 2 years ago
Cool, this fixes the example I had in mind, will run it through the full test suite to see if it looks good overall.
All our acceptance testing shows this is either a no-op or a slight improvement. I think this is good to go, and then we can start evaluating the other deduplication related PRs: https://github.com/pelias/api/pull/1606 and https://github.com/pelias/api/pull/1371, since their full benefits are only unlocked with this change to the deduplication logic.
an extension to https://github.com/pelias/api/pull/1607 which preserves ordering of synonymous records (ie. the lower ordinal position is inherited by the superior record).