Diana Shkolnikov
0348f36671
Remove warning when no size param specified
...
Added tests for _size sanitizer while in there.
9 years ago
Julian Simioni
4e74c4db86
Add autocomplete sanitiser
...
This is similar to the search sanitiser but with a more limited scope.
It doesn't support layers, sorces, or bounding boxes.
9 years ago
Stephen Hess
66bf2bb46b
added sanitizer for boundary country parameter
...
sets to undefined if input country not found as ISO2/3
9 years ago
Diana Shkolnikov
c069933d5b
Refactored layers and sources into a common targets module
9 years ago
Diana Shkolnikov
67e034f5f2
Rename `source` to `sources`
...
... with a dash of refactoring thrown in for good measure
9 years ago
Diana Shkolnikov
dd78f324ee
Compute distance for each result of reverse query
9 years ago
Diana Shkolnikov
feb1b0a6cd
Update /reverse endpoint params and query as per API spec
9 years ago
Stephen Hess
c19d56697e
add _private sanitizer
9 years ago
Stephen Hess
55e31af238
extract truthy sanitizer to own file
9 years ago
Stephen Hess
e52c9e4ab9
moved details tests out to separate file
9 years ago
Peter Johnson
c0f20aabd3
refactor: clean up sorting conditions
9 years ago
Peter Johnson
36185197aa
move query defaults to API repo
9 years ago
Peter Johnson
fa209c9b50
add autocomplete route, further query clean up
9 years ago
Peter Johnson
2f8169ac10
remove unused sort conditions
9 years ago
Julian Simioni
3383fa0321
Add source parameter sanitiser
9 years ago
Julian Simioni
2ebc935295
Rename query/indidces to query/types
...
It didn't really contain a list of indices.
9 years ago
Julian Simioni
258fa4390e
Move cmd.type setting logic to types helper
9 years ago
Julian Simioni
3479325fa8
Add source parameter sanitiser
9 years ago
Julian Simioni
24349a3839
Rename query/indidces to query/types
...
It didn't really contain a list of indices.
9 years ago
Julian Simioni
1573f3a3fa
Move cmd.type setting logic to types helper
9 years ago
Diana Shkolnikov
db0e063d8c
Refactor controllers to be simple midddleware
...
Refactor search and doc controllers to allow for post-processing middleware
to handle geojson and response sending. Allows for a much more flexible routing scheme.
9 years ago
Julian Simioni
167547a6c1
Rename doc endpoint to place
9 years ago
Julian Simioni
4e74e9b681
Whitespace
9 years ago
Diana Shkolnikov
ab436d5dfb
Search query builder not checking all available admin values
...
Fixes #187
10 years ago
Harish Krishna
95c0e7461d
TESTS!
10 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
Harish Krishna
5b34767e8e
tests for sanitizer/search (tests optional geo basically in addition to the usual stuff - suggest/search sanitizer tests should eventually be merged)
10 years ago
Harish Krishna
ec2507f155
tests: reverse sanitizers (latlon is required, size defaults to 1, supports layers)
10 years ago
Harish Krishna
6c802dfa1d
testing sort part of the query
10 years ago
Harish Krishna
68aabd7647
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
407c32e782
suggest_near_me to /suggest/nearby and suggest_near_me.js to suggest_nearby.js
10 years ago
Harish Krishna
886aa498f5
bringing back vanilla suggest (suggestions based on lat/lon/zoom only) - calling it suggest_near_me and adding a new endpoint (plus tests)
10 years ago
Harish Krishna
b1424797cd
adding tests for service wrapper
10 years ago
Harish Krishna
be39fb5a8f
adding tests for the doc controller
10 years ago
Peter Johnson
27e2c4e5b8
migrate outputGenerator from pelias/suggester-pipeline
10 years ago
Harish Krishna
81b3668b30
get to doc
10 years ago
Harish Krishna
018ee3b945
tests - adding get sanitizer tests, renaming sanitiser to suggest because that is what it is really.
10 years ago
Peter Johnson
26a5a7590b
refactor geojsonify
10 years ago
Peter Johnson
2fd67fcc58
refactor; add tests
10 years ago
Peter Johnson
42a2387003
tests
10 years ago
Peter Johnson
18f4f6b256
refactor/ add more tests
10 years ago
Peter Johnson
3857109793
add unit test suite
10 years ago