Peter Johnson
87ce3bd92e
flip lon values for boundary.rect
9 years ago
Diana Shkolnikov
62315a1775
Revert defaults.json change
9 years ago
Julian Simioni
68c9661c70
Remove all mappings other than helper/type_mapping
9 years ago
Peter Johnson
80f419846d
admin boost for sqrt(popularity), autocomplete focus not restricted to phrase matches
9 years ago
Diana Shkolnikov
2b22d611bd
Fix lost confidence score
9 years ago
Diana Shkolnikov
553f9780c5
Remove admin matching when address is not parsed
9 years ago
Peter Johnson
348d2e70e2
more conformance
9 years ago
Peter Johnson
82ab899ecc
progress commit
9 years ago
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
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
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
8afc5ff004
Revert "splitting admin_parts and input_regions check"
...
This reverts commit 4a45e458ab
.
10 years ago
Harish Krishna
4a45e458ab
splitting admin_parts and input_regions check
10 years ago
Harish Krishna
95c0e7461d
TESTS!
10 years ago
Harish Krishna
708c24195d
adding admin_boost
10 years ago
Harish Krishna
2f49322fb7
removing the console.log
10 years ago
Harish Krishna
495c3251a4
moving all query parsing logic into its own helper. Tests to come
10 years ago
Harish Krishna
f78f49d857
moving sort logic.. popularity then population first!
10 years ago
Harish Krishna
13e9aadeaf
removing an outrageous if condition
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