Julian Simioni
f3acf3b308
Check for numeric value of lat/lon to avoid null island bug
...
Using the check-types module, check that lat/lon values are numbers,
instead of checking their truthyness, to ensure that queries for null
island work correctly.
9 years ago
Julian Simioni
dd9654657e
Use flat clean structure in query/autocomplete.js
9 years ago
Julian Simioni
109c28a588
Use flat point.{lat|lon} in query/reverse.js
9 years ago
Julian Simioni
190304b039
Use flat structure for focus.point.{lat|lon} in query/search.js
9 years ago
Julian Simioni
4260442f59
Change boundary.circle params to flat string structure
9 years ago
Julian Simioni
66e1cab007
Whitespace
9 years ago
Stephen Hess
13635a2c16
added boundary.country to search and reverse queries (with test fixtures)
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
feb1b0a6cd
Update /reverse endpoint params and query as per API spec
9 years ago
Peter Johnson
155337eb3f
refactor text parsing to seperate module
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
d568c031a3
move stringify logic to tests, code clean up
9 years ago
Peter Johnson
0d00e19825
remove debugging
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
Peter Johnson
72432066c6
add (commented) missing query params
9 years ago
Peter Johnson
22322eaa32
change param:input to param:text
9 years ago
Peter Johnson
1f13bafab0
refactor reverse & tests
9 years ago
Harish Krishna
86424b8bbe
Rename `/search?input`, replacing it with '/search?text' parameter instead
...
changing parameter name input to text
https://github.com/pelias/api/issues/172
Rebased by @orangejulius
9 years ago
Julian Simioni
426189e87f
Add sources -> types mapping file
9 years ago
Julian Simioni
2ebc935295
Rename query/indidces to query/types
...
It didn't really contain a list of indices.
9 years ago
Peter Johnson
34cd25a023
refactor leftovers for clarity
9 years ago
Peter Johnson
6f817938bc
refactor search
9 years ago
Julian Simioni
ef42ad4d2e
Add sources -> types mapping file
9 years ago
Julian Simioni
24349a3839
Rename query/indidces to query/types
...
It didn't really contain a list of indices.
9 years ago
Diana Shkolnikov
d7871747e1
Fix bug introduced by moving leftovers.join into the if() statement
9 years ago
Diana Shkolnikov
743d8efa54
Remove proxyquire from adminField test
...
Add comments and refactor a bit more for clarity in query/search.js
9 years ago
Diana Shkolnikov
ab436d5dfb
Search query builder not checking all available admin values
...
Fixes #187
9 years ago
Peter Johnson
d8e86d5f17
phrase slop query modifications
9 years ago
Harish Krishna
b3d958fe5a
Revert "match the whole query with phrase.default"
...
This reverts commit 1c763eeb75
.
9 years ago
Harish Krishna
1c763eeb75
match the whole query with phrase.default
9 years ago
Harish Krishna
8afc5ff004
Revert "splitting admin_parts and input_regions check"
...
This reverts commit 4a45e458ab
.
9 years ago
Harish Krishna
4a45e458ab
splitting admin_parts and input_regions check
9 years ago
Harish Krishna
95c0e7461d
TESTS!
9 years ago
Harish Krishna
708c24195d
adding admin_boost
9 years ago
Harish Krishna
2f49322fb7
removing the console.log
9 years ago
Harish Krishna
495c3251a4
moving all query parsing logic into its own helper. Tests to come
9 years ago
Harish Krishna
f78f49d857
moving sort logic.. popularity then population first!
9 years ago
Harish Krishna
13e9aadeaf
removing an outrageous if condition
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
9 years ago
Harish Krishna
a2a0a50b85
fix the number of admin_parts
9 years ago
Harish Krishna
c957cbaf4f
bringing back admin2
9 years ago
Harish Krishna
5025b66a91
adding admin_weights instead of just boosting admin0
9 years ago
Harish Krishna
049a96efd6
flipping the popularity population order
9 years ago
Harish Krishna
e149fed273
check yoself before you wreck yoself
9 years ago
Peter Johnson
ce611fd933
increase search radius to 500km
9 years ago
Peter Johnson
e95c2efb54
resolves #139
9 years ago
Peter Johnson
0cf282767a
remove exact_match script
9 years ago