Julian Simioni
41362f83c2
Support county + region queries for fallback query
8 years ago
Julian Simioni
09c45b5bed
Support island input from libpostal
...
This includes an edge case for Hawaii to handle islands which are mostly
stored as counties in our data currently. See https://github.com/pelias/whosonfirst/issues/94 .
8 years ago
Stephen Hess
df6bd50645
unrolled loop tests
8 years ago
Stephen Hess
916e7d6736
made `locality` and `localadmin` equivalent in fallback scoring
8 years ago
Stephen Hess
acb669b7b3
added support for optional country
8 years ago
Stephen Hess
c3451bbec0
added city input/results support
...
just uses the original scoring, which is open to debate
8 years ago
Stephen Hess
b8bd6c1252
enabled city/state only inputs for fallback queries
8 years ago
Stephen Hess
d230367f02
changed the variable passed to the label generator
8 years ago
Julian Simioni
5f70110027
Add autocomplete boundary.rect ciao test
8 years ago
Julian Simioni
78cc4a5de3
Add boundary.rect handling to query/autocomplete
8 years ago
Stephen Hess
34d9893018
removed unused parameter
8 years ago
Stephen Hess
beb309ca07
moved assignLabels to fire before geojsonify
8 years ago
Stephen Hess
94eaafd39a
setup labelGenerator to have a default
8 years ago
Stephen Hess
248b1299c8
added post-processing step to generate labels
...
injects label generation function for easier unit testing
moved label generation code to separate package
8 years ago
Stephen Hess
c14a1311f7
extracted labelGenerator to be injectable
8 years ago
Stephen Hess
4dbaff6589
removed hard-coded `size`
...
effectively reverts https://github.com/pelias/api/pull/684
8 years ago
Stephen Hess
7555095399
added `boost:address` and `boost:street` to search defaults
...
bumped query version to 8.8.0
defaults are `10` and `5`, respectively
8 years ago
Diana Shkolnikov
3fe113645f
feat: check for preferred record when dupe found
8 years ago
Stephen Hess
c7b07c271e
updated hardcoded ES query size to 50
8 years ago
Stephen Hess
b408b96948
hardcode size to 100 for FallbackQuery
8 years ago
Stephen Hess
a62581ddd6
actually removed last of `sanitise` references
8 years ago
Stephen Hess
3763d0b503
renamed `sanitise` -> `sanitize`
8 years ago
Stephen Hess
cad2c5f5ad
bumped addressit version, updated corresponding tests
8 years ago
Diana Shkolnikov
30e42e2b80
cleanup variable name and add ciao test
8 years ago
Diana Shkolnikov
21d4bb63f3
feat: add accuracy field
8 years ago
Diana Shkolnikov
9ff383cc2b
change the query module interfaces back to simple functions
8 years ago
Diana Shkolnikov
4a7dee235a
add ciao test for confidence and match_type properties
8 years ago
Diana Shkolnikov
d5ff072e9e
update tests
8 years ago
Diana Shkolnikov
3888ae0385
change query module interfaces to allow for additional meta data
8 years ago
Diana Shkolnikov
fd3ec97ad0
add new confidence score computation for fallback query type
8 years ago
Diana Shkolnikov
9fd19242e7
make existing confidence score only handle the original query type
8 years ago
Stephen Hess
24d81b754f
updated fixtures for latest query
8 years ago
Stephen Hess
df2ac8c91b
added `street` to trimByGranularity
8 years ago
Stephen Hess
cf1aeec4e1
fixed tests for latest query changes
8 years ago
Stephen Hess
c841ed8121
limited fallbackQuery usage to analysis with `street`
8 years ago
Stephen Hess
768843b0fb
delete `clean.parsed_text` if falling back to addressit
8 years ago
Stephen Hess
cc5c9f8468
disable calling GeodisambiguationQuery
8 years ago
Stephen Hess
06310bd3b7
only initialize req.clean/errors/warnings if not initialized yet
...
also added tests for sanitizeAll
8 years ago
Stephen Hess
15b7c3fa57
uncommented tests
8 years ago
Stephen Hess
6f4ec874fe
added special override condition for libpostal query/housenumber mixup
8 years ago
Stephen Hess
d5e993fc11
included `localadmin`, `macrocounty`, `macroregion`, and `dependency`
8 years ago
Stephen Hess
5178dc1cc9
added `trimByGranularity` to tests-to-run
8 years ago
Stephen Hess
681d689f51
fixed test names
8 years ago
Stephen Hess
9f350eb117
updated tests to reflect changes to query module
8 years ago
Diana Shkolnikov
e33c58bd42
Remove empty arrays from ES fixture
8 years ago
Diana Shkolnikov
a8e82b018d
Refactor deduper and write additional tests
8 years ago
Stephen Hess
8339a66e91
updated query module to branch from hashcode
...
fixed tests to use `boost_mode` value of `multiply` instead of `replace`
8 years ago
Stephen Hess
876782ed3a
enabled all scores and filters
...
adjusted tests to account for new querying strategies, renamed all existing test fixture files to `*_original`. pointed query module to a PR for testing.
8 years ago
Stephen Hess
d682468096
adapted tests to latest query module output
8 years ago
Stephen Hess
42affa80f8
updated filename
8 years ago