Julian Simioni
79883594b8
Use clean.layers to determine types
...
This allows removing the types middleware and simplifies some code.
9 years ago
Diana Shkolnikov
9fa5fc5a77
calcSize became middleware (exposed and fixed bug in query defaults)
9 years ago
Diana Shkolnikov
54187dde67
Add dedupe middleware
...
Dedupe middleware removes __exact__ dupes and truncates the results
to the specified size.
9 years ago
Peter Johnson
4e43310288
german street/number naming convention
9 years ago
Peter Johnson
c609ae3ccf
http friendly status codes. resolves #321
9 years ago
Diana Shkolnikov
553f9780c5
Remove admin matching when address is not parsed
9 years ago
Stephen Hess
8be249b701
added helper variables for readability
9 years ago
Stephen Hess
0b5172a452
initial stab at confidence score calculation based on distance from point.lat and point.lon
9 years ago
Diana Shkolnikov
9433d995b1
Fix attribution link
9 years ago
Diana Shkolnikov
73419342a6
Fix attribution link
9 years ago
Julian Simioni
4e74c4db86
Add autocomplete sanitiser
...
This is similar to the search sanitiser but with a more limited scope.
It doesn't support layers, sorces, or bounding boxes.
9 years ago
Peter Johnson
e726636c3d
merge with master
9 years ago
Diana Shkolnikov
c069933d5b
Refactored layers and sources into a common targets module
9 years ago
Julian Simioni
5d7f7ee4c0
Add /status controller
...
It's at the root level, and simply returns 200 with 'status: ok' as the
body.
9 years ago
Diana Shkolnikov
dd78f324ee
Compute distance for each result of reverse query
9 years ago
Peter Johnson
fa209c9b50
add autocomplete route, further query clean up
9 years ago
Julian Simioni
ade4ce8b17
Add types middleware
...
This middleware looks at the list of types that will be sent to
Elasticsearch, if it's an empty array, it sends an error response before
Elasticsearch is even quieried, because Elasticsearch interprets an
empty type array as "search anything" rather than the intended "don't
search anything".
9 years ago
Diana Shkolnikov
f7044d2435
Add content for `attribution` static endpoint
...
Fixes #212
9 years ago
Julian Simioni
6f0ad678eb
Add types middleware
...
This middleware looks at the list of types that will be sent to
Elasticsearch, if it's an empty array, it sends an error response before
Elasticsearch is even quieried, because Elasticsearch interprets an
empty type array as "search anything" rather than the intended "don't
search anything".
9 years ago
Diana Shkolnikov
562338635c
Confidence score calculation
...
Fixes pelias/pelias#120
9 years ago
Diana Shkolnikov
2b9fbdfd10
Fix missing legacyUrl behavior
9 years ago
Julian Simioni
826ad3b569
Move to simpler routing model
9 years ago
Julian Simioni
e3961187b2
Add V1 routes with proxying to legacy
...
Using the semver middleware, handle requests to the new v1 api as well
as legacy routes.
9 years ago