Peter Johnson
c17a0dbc54
increase postcode weights, add postcode to leftovers
9 years ago
Peter Johnson
ac01d72477
update address matching analyzers. related https://github.com/pelias/schema/pull/77
9 years ago
Peter Johnson
49d37eafed
one config per query
9 years ago
Peter Johnson
8ceac4cbb0
change modifier function from sqrt() to log1p() and adjust max_boost
9 years ago
Peter Johnson
2ce249ad30
adjust balance between population/popularity and focus
9 years ago
Peter Johnson
481a65a4f9
population twice as important as popularity
9 years ago
Peter Johnson
cb679888ff
better population and popularity boosting
9 years ago
Peter Johnson
56591abe97
remove all references to tiebreaking groovy scripts
9 years ago
Stephen Hess
a26bf0b9a8
switched to Math.max to avoid the explicit conditional
9 years ago
Stephen Hess
dcadc7832e
add focus:scale to /search requests with just viewport.*, calculated from bounding box diagonal, minimum of 1
9 years ago
Julian Simioni
57fb960471
Set centerpoint of viewport in search query
...
This simply reuses the focus:point:{lat|lon} variables, but sets them
using the centerpoint of the viewport. Eventually we should calculate a
radius and use that here.
9 years ago
Peter Johnson
31ae318861
tweaks
9 years ago
Peter Johnson
c7a79c57b5
reduce streetnumber boost
9 years ago
Peter Johnson
3a5e6f7811
tweak boost values
9 years ago
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