Stephen Hess
11b39b3f54
removed unused mock backend response
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
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
8c249c26f4
initialize esclient in routes/v1, eliminating need for src/backend
8 years ago
Stephen Hess
a4b4e286d3
replaced map of singletons in backend with single singleton
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
3c1d758229
Fix timeout error handling
...
Timeout errors come back from the Elasticsearch module as Error objects,
so instead of pushing the entire object onto the errors array, we should
just push the message.
I'm not sure if there are other cases where errors are just strings,
errors that aren't objects with a message property are handled as
before.
9 years ago
Diana Shkolnikov
aff146aec3
Fix local naming convention and confidence score middlewares
9 years ago
Diana Shkolnikov
af8044ef29
Fix all unit tests
9 years ago
Julian Simioni
2505e92a62
Expect an array of types from _ids sanitiser
...
This doesn't have any effect by itself but allows for the 3-part gid
sanitiser to possibly return multiple types (i.e. in the case of
osm:venue:1000)
9 years ago
Diana Shkolnikov
562338635c
Confidence score calculation
...
Fixes pelias/pelias#120
9 years ago
Harish Krishna
bcf823c519
cleanup + tests
10 years ago
Harish Krishna
be39fb5a8f
adding tests for the doc controller
10 years ago
Harish Krishna
f1d13c1337
consolidating suggest_poi and suggest_admin into one suggest endpoint. fixing tests (more tests to come)
10 years ago
Peter Johnson
6efa0aa510
expose id/type/layer
10 years ago
Peter Johnson
6ddbe86ac5
perform mget during suggest. requires suggester output to be a gid
10 years ago
Peter Johnson
17134105d5
geojsonify /search and /reverse FTW
10 years ago
Peter Johnson
42ac5f05eb
geojsonify suggest API
10 years ago
Peter Johnson
18f4f6b256
refactor/ add more tests
10 years ago