Severyn Kozak
9b77b4434f
Add more test-cases for invalid bbox values.
...
test/unit/sanitiser/search.js
-Add some more sanity-check test-cases to verify that bbox
validation is working as expected.
9 years ago
Severyn Kozak
8868039835
Verify that bbox longitude is not NaN.
...
sanitiser/_geo.js
-The removal of the longitude sanitizer might result in a NaN
longitude value passing through in the bbox. Add an `isNaN()`
check.
9 years ago
Severyn Kozak
762ef85f5c
Fix longitude-sanitization tests.
...
test/unit/sanitiser/(search, suggest, reverse).js
-Update/fix all of the tests that started failing as a result of
the removal of longitude sanitization in 90a7683
.
9 years ago
Severyn Kozak
d000868800
Remove checks for longitude validity.
...
sanitiser/_geo.js
-Remove the code that verified `longitude` validity, to allow
longitude values outside of the value's real range, [-180, 180].
elasticsearch appears to handle them gracefully, so this
resolves #56 .
9 years ago
Julian Simioni
472c8a4a05
Merge branch 'rename-doc-to-place'
9 years ago
Julian Simioni
a976b7b258
Add places endpoint to API docs
9 years ago
Julian Simioni
167547a6c1
Rename doc endpoint to place
9 years ago
Julian Simioni
2fce64f75a
Move files
9 years ago
Julian Simioni
4e74e9b681
Whitespace
9 years ago
Peter Johnson
776b0ce1e1
update unit test
9 years ago
Peter Johnson a.k.a. insertcoffee
ee3c96f84b
Merge pull request #171 from pelias/phrase_slop
...
phrase slop query modifications
9 years ago
Diana Shkolnikov
7f265c0f67
Merge pull request #192 from pelias/admin-fields
...
Search query builder not checking all available admin values
9 years ago
Diana Shkolnikov
d7871747e1
Fix bug introduced by moving leftovers.join into the if() statement
9 years ago
Diana Shkolnikov
49d439425e
Use address_weights.js in tests instead of hardcoding boost values
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 a.k.a. insertcoffee
342e0f1ed4
Merge pull request #158 from pelias/multicore
...
run webserver on all available cores, resolves #6
9 years ago
Peter Johnson
e3efeb66d1
change dependency to git url until PR merged upstream, test travis against 0.10,0.12
9 years ago
Peter Johnson
3a802b9691
Merge branch 'master' of github.com:pelias/api into multicore
9 years ago
Peter Johnson
d8e86d5f17
phrase slop query modifications
9 years ago
Harish Krishna
1b6d3feb27
Merge pull request #169 from pelias/ngram-address-parser
...
Address Parser
9 years ago
Harish Krishna
fae9aae3d3
moving the logic for each of the three parsed addresses out into their own function
9 years ago
Harish Krishna
e57d0b38ed
keys -> key
...
It's easy to misread and think keys contains a collection of some kind
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
b57621c0a9
removing admin2 match from the full valid address match
9 years ago
Harish Krishna
8afc5ff004
Revert "splitting admin_parts and input_regions check"
...
This reverts commit 4a45e458ab
.
9 years ago
Harish Krishna
d6bcc1b400
test search query for valid address full & partial
9 years ago
Harish Krishna
4a45e458ab
splitting admin_parts and input_regions check
9 years ago
Harish Krishna
36cc6415d0
tests search
9 years ago
Harish Krishna
35105015b2
tests suggest sanitiser
9 years ago
Harish Krishna
e00c5aa2ad
Testing search sanitisers
...
all sanitiser tests should test sanitizing input, lat/lon etc..
query parsing is tested seperately so, using query_parser to set expected.parsed_input
9 years ago
Harish Krishna
b361d4ee69
removing landmarks (was an experiment - has got nothing to do with address parsing)
9 years ago
Harish Krishna
dbd1664042
Merge branch 'master' into ngram-address-parser
9 years ago
Harish Krishna
95c0e7461d
TESTS!
9 years ago
Harish Krishna
5401ed9962
2.2.0
9 years ago
Harish Krishna
6efe46b796
Merge pull request #163 from pelias/err-fix
...
Error handling bug fix
9 years ago
Harish Krishna
3ed4842e86
timeout is one word
9 years ago
Harish Krishna
8e17f28170
typeof error should be string
9 years ago
Harish Krishna
e636e6830f
Merge branch 'master' into ngram-address-parser
9 years ago
Harish Krishna
e56a40f172
Merge pull request #165 from pelias/suggest-no-more
...
Remove all suggest code
9 years ago
Harish Krishna
b3f85ebc17
err & err.message instead of err.message
9 years ago
Harish Krishna
ccf26378d0
use 1.3.0
...
https://github.com/DamonOehlman/addressit/pull/13 got merged!
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
6011e4ee2b
weighing admin2 equally with local_admin, locality and neighborhood.
9 years ago
Harish Krishna
13e9aadeaf
removing an outrageous if condition
9 years ago
Harish Krishna
a8c090252a
if the query has a number - search addresses
9 years ago