Stephen Hess
d8cffe4b9b
added configuration validation + tests
8 years ago
Julian Simioni
abb4fa6113
Adjust autocomplete focus boost
...
This lowers the autocomplete focus boost from 40 to 15. The idea is
that, because the boost for population is 20, the focus can't possibly
override a popular city, but it can come close.
On our default dev build, no acceptance tests fail but the san francisco
autocomplete test now passes!
It's not clear if this fixes WOF venue issues yet, since the latest
build there failed :(
8 years ago
Diana Shkolnikov
4f999adce1
fix: empty values in parsed text caused exceptions
8 years ago
Stephen Hess
9e569bae17
renamed mt/st/ft sanitizer to something more generic
8 years ago
Stephen Hess
8f6d820b43
streamlined standardizer
...
more accurate since it's smarter about where to replace periods
8 years ago
Stephen Hess
35ab050341
transliterate mt/ft/saint/sainte into mount/fort/st/ste
...
respectively
8 years ago
Peter Johnson
f087a5badc
improvements for handling non-scalar request params. fixes #744
8 years ago
Stephen Hess
31f5cc2537
bumped query version, updated query name changes + boosts
8 years ago
Stephen Hess
be2a336038
updated naming from component to structured
8 years ago
Stephen Hess
75366f98c4
added text-analyzer call to parse supplied `address` field
8 years ago
Stephen Hess
7aad07368d
modified tests to accommodate changes to ComponentFallbackQuery
8 years ago
Stephen Hess
da72a968f9
switch importance of address/street
8 years ago
Stephen Hess
c1a618e4fb
standardize on non-US-influenced parameter names
...
switched from `city` and `state` to `locality` and `region`, respectively
8 years ago
Stephen Hess
7670eef3fb
added support for city+country inputs
8 years ago
Stephen Hess
0c54f502af
added iso2->iso3 conversion to /search endpoint
8 years ago
Stephen Hess
3bb6a30a9c
preserve both `locality` and `borough` results when no `borough` supplied
...
because we have to treat the `city` value as a possible `borough` when not supplied, both `borough` and `locality` results must be preserved when no `borough` is explicitly supplied. For example, `city=Manhattan` must preserve both the borough of Manhattan in New York and the locality of Manhattan in Kansas.
8 years ago
Stephen Hess
6f04f67d9b
consider postalcode-only input an error condition
8 years ago
Stephen Hess
b18cb234b2
added sanitizer to convert country iso2->iso3
8 years ago
Stephen Hess
91e0520f87
removed `query` parameter support
...
as it's not required functionality right now
modified error message to be joined list of available parameters instead of hardcoded string
8 years ago
Stephen Hess
8ae5b5c6f7
treat country and more granular than dependency
...
this is to ensure that `country=united states` returns the country before any of the US dependencies that happen to contain "United States"
8 years ago
Stephen Hess
d1bb1fd944
added borough support
8 years ago
Stephen Hess
d2c32b5afd
added unit tests for component_geocoding query
...
started folder structure for fixture as it's getting unwieldy
8 years ago
Stephen Hess
08f4aa4b95
renamed files to be more indicative of what the function is
8 years ago
Stephen Hess
d03a8c4586
added support for component geocoding
...
- created `/component` route
- broke out trimByGranularityComponent but could conceivably be combined with existing
- added `address` support to text_parser
- added `component` sanitizer wrapper
8 years ago
Stephen Hess
8179812282
added sanitizer for synthesizing an analysis from parameters
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
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
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
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