Julian Simioni
800eb8ca03
Move lots of logging from info to debug
...
These are log lines that are not really useful in a production context,
and just create a lot of noise.
6 years ago
Julian Simioni
561f07950b
Remove focus_selected_layers query view
...
This query extends the standard focus query view with hardcoded layers
for which the query applies. The intent was to apply the focus scoring
only to non-admin areas, but the list of layers was already out of date,
as it was missing streets.
The query is fundamentally problematic with custom layers as well.
7 years ago
Julian Simioni
204f5297de
Remove all leading newlines in files
7 years ago
Julian Simioni
02aac0c13e
Remove use stricts
7 years ago
Stephen Hess
02cfa36d24
switched structured query tests away from fixtures
7 years ago
Adam Rousell
f86ee4a40f
Added postalcode rules for node-postal call and fallbacks
7 years ago
Stephen Hess
447d0f74b9
don't serialize input:layers when passing to query
8 years ago
Stephen Hess
f176b86657
drastically revised comments
8 years ago
Stephen Hess
7037573d8b
removed task comment
8 years ago
Stephen Hess
1fef7ac41c
removed unreachable paths in query/search
8 years ago
Stephen Hess
1f4a29bb0d
removed unused variable
8 years ago
Stephen Hess
99a1868c47
removed population/popularity functions from search using ids
8 years ago
Stephen Hess
1d5151dd49
updated meta.type to 'fallback'
8 years ago
Stephen Hess
5bcfbe76bc
set search_using_ids query_type to 'original'
8 years ago
Stephen Hess
ea3572539f
combined non-county layers into one
8 years ago
Stephen Hess
74419bddc1
added support for focus-only function
8 years ago
Stephen Hess
568a258406
code cleanup, shorter function syntax
8 years ago
Stephen Hess
386897c2c4
added query for address search with ids
8 years ago
Lily He
2a73bb34ac
combined checks for boundary circle radius into one block
8 years ago
Lily He
57b133ba42
check and set default for undefined boundary circle radius in reverse
8 years ago
Stephen Hess
67360a4d0b
added geonames_deprecation to reverse sanitizing
8 years ago
Stephen Hess
10b1d28201
only query ES for non-coarse layers on non-coarse reverse requests
8 years ago
Diana Shkolnikov
242d40760d
add logging of query input types
8 years ago
Diana Shkolnikov
a52691c61e
feat: search by postalcode
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
Diana Shkolnikov
4fa7fae546
fix: add parser and query param logging
8 years ago
Diana Shkolnikov
bccae79e70
get rid of parsed_text logging because privacy
8 years ago
Diana Shkolnikov
f7287c448e
fix: minimize debug logging
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
7670eef3fb
added support for city+country inputs
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
5dedcf5032
changed method name
8 years ago
Stephen Hess
acb669b7b3
added support for optional country
8 years ago
Stephen Hess
54b70c7d3c
removed lodash requirement
8 years ago
Stephen Hess
b8bd6c1252
enabled city/state only inputs for fallback queries
8 years ago
Julian Simioni
78cc4a5de3
Add boundary.rect handling to query/autocomplete
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
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
Diana Shkolnikov
9ff383cc2b
change the query module interfaces back to simple functions
8 years ago
Diana Shkolnikov
3888ae0385
change query module interfaces to allow for additional meta data
8 years ago
Stephen Hess
d4ed96de0c
added explicit `return undefined` + comments
8 years ago
Stephen Hess
c841ed8121
limited fallbackQuery usage to analysis with `street`
8 years ago
Stephen Hess
cc5c9f8468
disable calling GeodisambiguationQuery
8 years ago
Stephen Hess
8072c73d42
removed unused dependency
8 years ago