Stephen Hess
2bc12d0d72
added support for pip retries and timeout in schema
8 years ago
Stephen Hess
88882d0199
added services.pip to successful test
8 years ago
Stephen Hess
aa09419b9c
removed support for api.pipService (relocated to api.services)
8 years ago
Stephen Hess
914e508e41
added pip config + tests to schema
8 years ago
Stephen Hess
143971e43e
use url.resolve to eliminate duplicate slashes
8 years ago
Stephen Hess
1f6b6b1ed0
finished conversion to use generic http/json service
8 years ago
Stephen Hess
e97950c142
adapted coarse reverse controller to generic service
8 years ago
Stephen Hess
dd172d782e
added PointInPolygon service configuration
8 years ago
Stephen Hess
50e3121f9a
added tests for placeholder service
8 years ago
Stephen Hess
5a8ddd6268
added debug logging for sorting
8 years ago
Stephen Hess
234f9f9738
fixed bug where _geonames_warnings was throwing exception on undefined clean.parsed_text
...
refactored a bit for clarity
8 years ago
Stephen Hess
238b49a0d8
added should_execute to sortResponseData
8 years ago
Stephen Hess
c602794ed8
added predicate for finding results at given layers
8 years ago
Stephen Hess
c5f16e32ad
added support for `boundary.rect` and `boundary.circle`
...
- tigthened up parsing of string-ish numbers to deal with lodash weirdness
- added lots of guard clauses to deal with bad data
8 years ago
Stephen Hess
ba7a81123c
added support for popularity from placeholder
8 years ago
Stephen Hess
2ad3bec3b4
added guard clause for string/negative population
8 years ago
Stephen Hess
5d7a467909
added response data sorting middleware
8 years ago
Stephen Hess
d1b87235c4
pull population from placeholder repsonse
8 years ago
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