Julian Simioni
2a668612ed
feat(confidence): Add support for new query names
6 years ago
Julian Simioni
c548a73cb9
fix(confidence): Update query type names in confidence score code
...
4adf4b3dd7
renamed some queries to be quite a bit more informative, however it
wasn't obvious that these query names were used elsewhere in the code.
With those changes, no confidence score middleware was running, which
this should help fix.
6 years ago
Adam Rousell
8d7c01dcbe
Added tests for postcode fix
7 years ago
Diana Shkolnikov
30590a41d3
fix: match_type and confidence score were not correct for certain queries
8 years ago
Stephen Hess
916e7d6736
made `locality` and `localadmin` equivalent in fallback scoring
8 years ago
Stephen Hess
c3451bbec0
added city input/results support
...
just uses the original scoring, which is open to debate
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
Julian Simioni
8cae743c80
Handle empty country_a values as well
9 years ago
Julian Simioni
f18e278e51
Handle case where record has no region_ a field
9 years ago
Diana Shkolnikov
aff146aec3
Fix local naming convention and confidence score middlewares
9 years ago
Diana Shkolnikov
31374b5381
Fix middleware unit tests
9 years ago
Julian Simioni
fcc9237993
Use tape's doesNotThrow where appropriate
9 years ago
Julian Simioni
5a84afa539
Add test of parsing hit with no address object
...
In #369 I said I wouldn't bother testing for the case of the address
object on hit being absent, but it turns out that does sometimes happen.
9 years ago
Diana Shkolnikov
ce32802368
Hotfix for confidence exception
9 years ago