Stephen Hess
f06704985e
renamed predicates to be more accurate
8 years ago
Stephen Hess
0d1d67d6a2
added street layer
8 years ago
Stephen Hess
58701f0169
return do-nothing PiP lookup function if config lacks `pipService`
...
- added URI-formatted `api.pipService` config support in schema
- added predicate that determines whether pipService is enabled/disabled
- reworked should-execute conditions for non-coarse reverse
8 years ago
Stephen Hess
52a6ec68ff
added support for coarse reverse geocoding
...
several things are in this commit:
- coarse reverse controller / pip service
- inject "conditional execute" predicate into search service to shortcut execution conditions
- added coarse reverse controller to precede standard reverse controller
- lots of tests!
8 years ago
Diana Shkolnikov
587c1ede6c
remove empty file that snuck in
8 years ago
Diana Shkolnikov
6dd4cc9bd8
fix postalcodes not showing up in results
8 years ago
Diana Shkolnikov
a52691c61e
feat: search by postalcode
8 years ago
Stephen Hess
bb9d6e0fc9
inject schema to config.generate
8 years ago
Stephen Hess
2288e227a3
converted configValidation to basic schema object
...
to inject into `config.generate`
fixed tests
8 years ago
Stephen Hess
5d28044f4f
removed unused file
8 years ago
Stephen Hess
bfecda2c07
refactored search service tests to inline mock callbacks
8 years ago
Stephen Hess
62a2aa827f
added api.requestRetries to schema and tests
8 years ago
Stephen Hess
901b6826ca
updated wording of test names and comments
8 years ago
Stephen Hess
11b39b3f54
removed unused mock backend response
8 years ago
Stephen Hess
3c9d39d1df
removed unused file
8 years ago
Stephen Hess
ac0776e2be
match error handling to controller/search
8 years ago
Stephen Hess
6425cc6444
added request retries for ES request timeouts
8 years ago
Stephen Hess
89d9943f26
removed unused mock object
8 years ago
Stephen Hess
d5ff417bf5
removed require's for mock backend/query
8 years ago
Stephen Hess
96f9d12ff5
rewrote tests to proxyquire service/search to reduce complexity
...
added a few more tests for coverage, removed unused things from unit/mock/backend
8 years ago
Stephen Hess
c7b83e96d5
added tests for case where error is a string, not an object
8 years ago
Stephen Hess
bf62a1844b
added tests for verifying request retry behavior
...
limited retry behavior to errors with status 408 (request timeout). this also reduces reliance on unit/mock/backend and unit/mock/query.
8 years ago
Stephen Hess
e83c12cd0e
added test for early bail when errors are present
...
simplified conditionals using lodash `.get`
8 years ago
Stephen Hess
f1e5edb4cf
added back logging statement for fallback queries
...
added unit tests to cover conditionals, simplified conditional
8 years ago
missinglink
3a4d26077a
interpolation: fix: source_id mapping
8 years ago
Peter Johnson
d135596c80
service: interpolation: typo
8 years ago
Peter Johnson
69be6e062a
service: interpolation: tests
8 years ago
Peter Johnson
33341b7c99
service: interpolation: tests
8 years ago
Diana Shkolnikov
30590a41d3
fix: match_type and confidence score were not correct for certain queries
8 years ago
Stephen Hess
8c249c26f4
initialize esclient in routes/v1, eliminating need for src/backend
8 years ago
Stephen Hess
948c6a9de5
enable all unit tests
8 years ago
Stephen Hess
992f2455d5
renamed `query` parameter to `venue`
8 years ago
Stephen Hess
e35ba28137
add proxyquire to tests for pelias-logger to swallow some error logging
8 years ago
Stephen Hess
a4b4e286d3
replaced map of singletons in backend with single singleton
8 years ago
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
bb285cf0a5
bumped query hash, updated test
8 years ago
Stephen Hess
8c896695d1
tied query version to specific hash, updated tests
8 years ago
Stephen Hess
16fc3bee66
synthesize query value from parameter
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