-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dedupe): treat all non-canonical layers and analogous to a venue…
…, prefer non-canonical records
- Loading branch information
1 parent
a4c5462
commit 464e71c
Showing
5 changed files
with
93 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
test/unit/fixture/dedupe_elasticsearch_custom_layer_results.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module.exports = [ | ||
{ | ||
'_id': '101914069', | ||
'layer': 'venue', | ||
'source': 'openstreetmap', | ||
'name': { | ||
'default': 'Nike World Headquarters' | ||
}, | ||
'parent': { | ||
'country_a': ['USA'], | ||
'country': ['United States'], | ||
'region': ['Oregon'], | ||
'region_id': ['85688513'] | ||
}, | ||
'confidence': 0.98 | ||
}, | ||
{ | ||
'_id': '2456::trimet::major_employer', | ||
'layer': 'major_employer', | ||
'source': 'transit', | ||
'name': { | ||
'default': 'Nike World Headquarters' | ||
}, | ||
'parent': { | ||
'country_a': ['USA'], | ||
'country': ['United States'], | ||
'region': ['Oregon'], | ||
'region_id': ['85688513'] | ||
}, | ||
'confidence': 0.50 | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters