Julian Simioni
ad8db9b8e9
Remove layer configuration based on address parsing
...
This code doesn't seem like it will be triggered very often (due to it
comapring space delimited words with comma delimited words from the text
field), and also has the potential to cause quite a bit of weird
behavior.
9 years ago
Julian Simioni
4037c49c4b
Store sanitised types from layers parameter
...
This moves the list of types created by sanitising the layer API
parameter from clean.layers to clean.types.from_layers. In subsequent
commits, types created from address parsing, and the
yet-to-be-implemented source parameter will also live in the clean.types
object.
This will allow moving logic to set cmd.type out of controllers, and
into separate logic that can be a littler smarter. Also, it will no
longer require the clean.default_layers_set flag to be passed all around
like a nasty global variable.
9 years ago
Julian Simioni
fb0cf514e9
Whitespace
9 years ago
Diana Shkolnikov
562338635c
Confidence score calculation
...
Fixes pelias/pelias#120
9 years ago
Julian Simioni
63d0447b25
Update ciao tests for /v1
9 years ago
Diana Shkolnikov
1d8db6e5d1
Change type back to layer... oooops
9 years ago
Diana Shkolnikov
1b4b401a66
More property renaming/mapping
...
* Rename `layer` to `type` and `source`
* Rename `address` block and merge properties to main `geocoding` namespace
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
b547111d52
Remove latitude restrictions
9 years ago
Julian Simioni
396f27dcba
Mark previously invalid lat/lon test values as valid
...
These examples should all now pass with the lat/lon wrapping.
9 years ago
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
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
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
Diana Shkolnikov
49d439425e
Use address_weights.js in tests instead of hardcoding boost values
10 years ago
Diana Shkolnikov
743d8efa54
Remove proxyquire from adminField test
...
Add comments and refactor a bit more for clarity in query/search.js
10 years ago
Diana Shkolnikov
ab436d5dfb
Search query builder not checking all available admin values
...
Fixes #187
10 years ago
Peter Johnson
d8e86d5f17
phrase slop query modifications
10 years ago
Harish Krishna
e57d0b38ed
keys -> key
...
It's easy to misread and think keys contains a collection of some kind
10 years ago
Harish Krishna
b3d958fe5a
Revert "match the whole query with phrase.default"
...
This reverts commit 1c763eeb75
.
10 years ago
Harish Krishna
1c763eeb75
match the whole query with phrase.default
10 years ago
Harish Krishna
b57621c0a9
removing admin2 match from the full valid address match
10 years ago
Harish Krishna
d6bcc1b400
test search query for valid address full & partial
10 years ago
Harish Krishna
36cc6415d0
tests search
10 years ago
Harish Krishna
35105015b2
tests suggest sanitiser
10 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
10 years ago
Harish Krishna
95c0e7461d
TESTS!
10 years ago
Harish Krishna
708c24195d
adding admin_boost
10 years ago
Harish Krishna
f78f49d857
moving sort logic.. popularity then population first!
10 years ago
Harish Krishna
5a052627af
Revert "fix broken test"
...
This reverts commit 68dbf1bd2e
.
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
68dbf1bd2e
fix broken test
10 years ago
Harish Krishna
96a21570be
fixing layers related bug - adding a default_layers_set flag to clean obj.
10 years ago
Harish Krishna
5025b66a91
adding admin_weights instead of just boosting admin0
10 years ago
Harish Krishna
049a96efd6
flipping the popularity population order
10 years ago
Harish Krishna
b9c4c673f5
Revert "removing searchType overhead"
...
This reverts commit ee4aa1b97a
.
10 years ago
Harish Krishna
ee4aa1b97a
removing searchType overhead
10 years ago
Peter Johnson
ce611fd933
increase search radius to 500km
10 years ago
Peter Johnson
e95c2efb54
resolves #139
10 years ago
Peter Johnson
0cf282767a
remove exact_match script
10 years ago
Peter Johnson
21d6585314
update sanitizer middleware
10 years ago
Diana Shkolnikov
3548ca1584
Revert "Add acceptance tests to travis-ci scripts"
10 years ago
Harish Krishna
050c11ec0b
just using a forked version of addressIt that focuses on US addresses (for now), modifying search queries and ignoring tests for now
10 years ago
Diana Shkolnikov
ad37ab6283
Add acceptance tests to travis-ci scripts
10 years ago
Diana Shkolnikov
63ed198320
Details param not working as expected
...
Fixes #135
10 years ago
Diana Shkolnikov
061f151bc8
Revert "Use multi_match in name.* for /search"
...
This reverts commit 3697627fb7
.
10 years ago
Peter Johnson
4770f0660f
multi_match -> match
10 years ago
Peter Johnson
60a02315ae
enable shingle matching
10 years ago