Stephen Hess
8429e0f22a
added response data sorting middleware
8 years ago
Stephen Hess
a6f6d3d6cd
filter out results and hierarchies that don't match boundary.country
8 years ago
Stephen Hess
83101505c0
removed support for alpha3 since it's not used anywhere
8 years ago
Stephen Hess
8a14dcc48a
guard clauses, more tests, code cleanup
8 years ago
Diana Shkolnikov
c1daf18d68
fix tests
8 years ago
Stephen Hess
8ebae9a2ae
added warnings/errors when sources includes geonames
8 years ago
Stephen Hess
b04309c533
added conversion to number before finite check
8 years ago
Stephen Hess
5734d35656
filter synthesized docs on boundary.country
8 years ago
Stephen Hess
4a8711017e
filter placeholder results by requested layers
8 years ago
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
3bf40fe51e
refactored ServiceConfiguration to be a class
8 years ago
Stephen Hess
1f6fefb3eb
converted placeholder controller to use generic service
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
39a5312140
added guard clauses for bbox and centroid
8 years ago
Stephen Hess
fa95fe510a
handle case where result has data but no lineage
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
94f512fe94
added placeholderService to schema
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
Kevin Ennis
512cec9945
Prefer openaddresses results with zip code
8 years ago
Julian Simioni
6b0b124d8f
Always query for a minimum of 20 results from Elasticsearch
...
Fallback and interpolation queries rely on several results coming back
from Elasticsearch to ensure the best result is returned. It was
possible that queries with `size=1` would not return enough results from
Elasticsearch. This change ensures even with `size=1` a sufficient
number of results are returned.
Fixes https://github.com/pelias/pelias/issues/562
8 years ago
Julian Simioni
6014786162
Revert "Update pelias-query to the latest version 🚀 "
8 years ago
Stephen Hess
d80d34cfd9
actually pass do-not-track to service
8 years ago
Stephen Hess
a7867579de
pass dnt to pip service and sanitize error messages
8 years ago
Julian Simioni
c585b00a9b
Remove unused reverse fixture
...
This must have been missed when we removed boundary.circle a long time
ago.
8 years ago
Julian Simioni
81b52fafaf
Use bool instead of filtered queries in fixtures
...
This is needed for Elasticsearch 5 support as part of https://github.com/pelias/pelias/issues/461
8 years ago
Diana Shkolnikov
e1eeb25776
fix: geonames ids should not be misrepresented in hiearchy
8 years ago
Diana Shkolnikov
d6d328fdf6
fix: 500 errors returned when no language service is found
8 years ago
Diana Shkolnikov
e46c17a84a
Sort interpolated results to show address first
8 years ago
missinglink
8d774ab6d3
language service
8 years ago
Peter Johnson
af4b107612
language: update ciao tests to assert warnings produced for invalid inputs
8 years ago
Peter Johnson
43131248b7
language: fallback scenario from invalid querystring to valid header
8 years ago
Peter Johnson
39b1367778
language: accept param as well as request headers
8 years ago
Peter Johnson
e761f99422
add unit tests for language
8 years ago
Peter Johnson
1847fb3692
add unit tests for language
8 years ago
Peter Johnson
7749be549e
add ciao tests for language
8 years ago
Peter Johnson
3a7e8c5229
fix ciao tests for postalcode layer added
8 years ago
Diana Shkolnikov
fe38d2336d
feat: allow postalcode-only structured queries
8 years ago
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