Stephen Hess
471f565997
converted placeholder to microservice-wrapper
8 years ago
Stephen Hess
03667b0711
fixed error message
8 years ago
Stephen Hess
904ce71e37
removed superseded service/placeholder and dependency
8 years ago
Stephen Hess
080eb269eb
added comments, simplified logic
8 years ago
Stephen Hess
3bf40fe51e
refactored ServiceConfiguration to be a class
8 years ago
Stephen Hess
5515fa4b6c
added placeholder config, added tests for http_json service
8 years ago
Stephen Hess
0f0bd3e4ce
added initial attempt at generic http json service
8 years ago
Stephen Hess
539edf09b7
added better error handling
8 years ago
Stephen Hess
8a7ba3d8de
added support for do_not_track header
8 years ago
Stephen Hess
0adc76eca6
treat 404's from placeholder the same as other errors
8 years ago
Stephen Hess
f14400ebce
added placeholder service support to API for admin-only queries
...
Adds a controller, service (which could probably be made more generic and share with pointinpolygon), and predicates for determining when placeholder should be called.
This also renames `is_pip_service_enabled.js` to `is_service_enabled.js` since it's generic. If placeholder returns a non-empty response then `res.data` is populated, otherwise `res.data` is not populated, allowing fallback to existing production behavior.
8 years ago
Stephen Hess
a7867579de
pass dnt to pip service and sanitize error messages
8 years ago
Diana Shkolnikov
d6d328fdf6
fix: 500 errors returned when no language service is found
8 years ago
missinglink
8d774ab6d3
language service
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
Stephen Hess
bfecda2c07
refactored search service tests to inline mock callbacks
8 years ago
Peter Johnson
f948ab26fc
service: interpolation: remove non-production host name
8 years ago
Peter Johnson
5c278b22e9
service: interpolation: handle backend timeouts
8 years ago
Peter Johnson
33341b7c99
service: interpolation: tests
8 years ago
Peter Johnson
576d1a1809
interpolation: integration v1
8 years ago
Stephen Hess
8c249c26f4
initialize esclient in routes/v1, eliminating need for src/backend
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
Peter Johnson
72ec68f4c2
additional backend error logging
8 years ago
Peter Johnson
1451e9038e
change all log labels to 'api'
8 years ago
Stephen Hess
d3febe49cc
moved location of `matched_queries` to correct place
8 years ago
Stephen Hess
8d532adb3f
added support for `_matched_queries` in ES hits
...
this will make it easier to sort thru results from FallbackQuery by knowing which query was called
8 years ago
Julian Simioni
ef78b2e0fd
Filter source and layer by new fields
...
This is functionally the same code as before, except that it uses the
new source and layer mapping.
9 years ago
Peter Johnson
b5b3c41ba1
remove microtime module
9 years ago
Diana Shkolnikov
562338635c
Confidence score calculation
...
Fixes pelias/pelias#120
9 years ago
Harish Krishna
e5f783567f
remove all things that involved suggester including query mixer
...
keeping the suggest sanitizer for suggest/nearby wherein lat/lon are required
10 years ago
Peter Johnson
87018d88f6
add logging for elasticsearch query execution time
10 years ago
Severyn Kozak
51ed1507df
Log the time spent in each elasticsearch query.
10 years ago
Harish Krishna
bcf823c519
cleanup + tests
10 years ago
Harish Krishna
fc7f6cb768
removing suggest_nearby, replacing suggest with suggest_multiple, commenting out a couple of tests for right now.
10 years ago
Harish Krishna
9afed3caef
adding query mixer for suggest and suggest/nearby
10 years ago
Harish Krishna
2b2414d879
using multiple suggesters but one query
10 years ago
Harish Krishna
69a13e9105
fixing all the js lint related issues (lintified)
10 years ago
Peter Johnson
6efa0aa510
expose id/type/layer
10 years ago
Peter Johnson
e24a467e96
suggest service
10 years ago
Peter Johnson
3ea90dcf4d
typo
10 years ago
Peter Johnson
0301fe8e74
search service
10 years ago
Peter Johnson
2ee32f1892
mget service
10 years ago