Severyn Kozak
f477db140a
Pass params to sort(), addressing https://github.com/pelias/api/pull/113#discussion_r28972496 .
10 years ago
Severyn Kozak
f9670bf7e4
Use is-object, addressing https://github.com/pelias/api/pull/113/files#r28972145 .
10 years ago
Severyn Kozak
d7c4409e20
Fix failing tests.
...
test/unit/query/(search, sort).js
-Fix the tests that started failing as a result of 144b72c
.
10 years ago
Severyn Kozak
144b72cb16
Boost results with exact text matches when _score ties.
...
query/sort.js
-Use the elasticsearch script introduced in
https://github.com/pelias/scripts/pull/7 to boost results with
exact text matches when documents' `_score`s are tied.
-Make `query/sort` export a function that creates the `sort`
query component, rather than the query component as a singleton,
to allow it to optionally add the exact-match script (that is,
when an `input` is present in `params`).
10 years ago
Harish Krishna
34a168060a
Merge pull request #107 from pelias/fix-error-msg
...
Layers be layers not layer (typo in the error message)
10 years ago
Harish Krishna
c2f7410916
Merge pull request #109 from pelias/fix-coarse
...
[Major bug fix] using coarse sanitizer for the coarse endpoint
10 years ago
Harish Krishna
14c718bf1c
passing in an object (req.clean) instead of a boolean. Plus updated test
10 years ago
Harish Krishna
fdb0d939bb
simplifying logic: replacing the complicated ternary statement with an if statement
10 years ago
Harish Krishna
176f580215
using is-object
10 years ago
Grant Heffernan
1fc624c957
DOCS update
10 years ago
Grant Heffernan
22d235907d
fix bbox italics in DOCS
10 years ago
Grant Heffernan
83dbdc7d41
DOCS formatting
10 years ago
Grant Heffernan
9e7e1455b5
a bit more DOCS cleanup
10 years ago
Grant Heffernan
6bff821c53
standardize some DOCS language, fix indentation
10 years ago
Grant Heffernan
189a768d05
more DOCS updates
10 years ago
Harish Krishna
b07d693d04
updates (added suggest/nearby)
10 years ago
Grant Heffernan
6506c84434
update DOCS.md for readability, etc
10 years ago
Harish Krishna
904cb696a0
using coarse sanitizer for the coarse endpoint
10 years ago
Harish Krishna
a91cb23ea4
adding a new file DOCS.md (same as https://github.com/pelias/api/wiki/API-Endpoints ), modifying controller/index.js to return text/html instead of application/json by default. Using markdown module to convert MD to HTML. Fixing tests (removed test/jsonp.coffee)
10 years ago
Harish Krishna
7667a898dd
param layers should be called layers consistently across the API
10 years ago
Harish Krishna
aae256c93f
category scoring - weights are all hardcoded to 10 currently - requires to be tweaked
10 years ago
Harish Krishna
53bfab2529
simplifying things
10 years ago
Harish Krishna
71499cd201
flipping default behavior - by default its details=true
10 years ago
Harish Krishna
af45b4743c
oh so many more tests!
10 years ago
Harish Krishna
719e73f3bd
taking default_value into account
10 years ago
Harish Krishna
c78c8e2dbe
only true or 1 is valid
10 years ago
Harish Krishna
ea78b8268a
more tests: testing falsy and truthy params
10 years ago
Harish Krishna
acfa8e1f20
testing geojsonify when adddress_details flag is set to false (by default)
10 years ago
Harish Krishna
0e9af3b9b8
adding controller tests to test details=true test case
10 years ago
Harish Krishna
c99c5f712a
adding a parameter called details (defaults to false for all endpoint except reverse) + fixing tests
10 years ago
Harish Krishna
9502ab8854
fixing failing tests
10 years ago
Harish Krishna
38e1c58c94
Merge pull request #96 from pelias/bbox-optimize
...
Bbox optimize
10 years ago
Harish Krishna
94b044d179
using elasticsearch-backend 0.0.12
10 years ago
Harish Krishna
46f487d819
Merge pull request #98 from pelias/add-layers
...
adding 'locality', 'local_admin' to the list of layers
10 years ago
Harish Krishna
3968034f80
Merge pull request #90 from pelias/suggester-fix
...
Allow consumers to filter suggestions by layer on '/suggest'
10 years ago
Harish Krishna
b4bd69abd2
Merge pull request #92 from pelias/suggest-requires-geo
...
Suggest requires geo
10 years ago
Harish Krishna
baec480e48
Merge pull request #89 from pelias/null-island-bug
...
Null island bug Fix
10 years ago
Harish Krishna
5094ecb25e
adding 'locality', 'local_admin' to the list of layers (part of admin alias) plus tests
10 years ago
Harish Krishna
f13f1cdf2c
tests
10 years ago
Harish Krishna
b51db53213
using an optimized bbox query
10 years ago
Harish Krishna
5b34767e8e
tests for sanitizer/search (tests optional geo basically in addition to the usual stuff - suggest/search sanitizer tests should eventually be merged)
10 years ago
Harish Krishna
217a5c1049
seperating suggest and search sanitizers because suggest requires geoBias (lat/lon) until ES 2.0.0 lands.
10 years ago
Harish Krishna
e586b49d1d
tests - that check if the layers are being set correctly for suggesters and using query mixers right
10 years ago
Harish Krishna
898896bc24
giving request layers higher precedence (compared to the layers specified in queryMixer)
10 years ago
Harish Krishna
ec2507f155
tests: reverse sanitizers (latlon is required, size defaults to 1, supports layers)
10 years ago
Harish Krishna
7a8422025a
latlon is a required field for reverse (updated _geo sanitizer) and added ability to filter by layers on /reverse
10 years ago
Harish Krishna
7265651b4c
Merge pull request #81 from pelias/script-readme
...
adding script dependency to README
10 years ago
Harish Krishna
73bf83275e
Merge pull request #71 from pelias/add-popularity
...
adding popularity to sort scoring function list
10 years ago
Harish Krishna
b8ede3680e
adding script dependency
10 years ago
Harish Krishna
28e3d3943e
consistent naming convention
10 years ago