Peter Johnson a.k.a. insertcoffee
c702614913
Merge pull request #138 from pelias/benchmarking
...
add logging for elasticsearch query execution time
10 years ago
Diana Shkolnikov
24b28d8754
Merge pull request #141 from pelias/acceptance-tests
...
Add acceptance tests to travis-ci scripts
10 years ago
Diana Shkolnikov
4023c364a4
booo
10 years ago
Diana Shkolnikov
ad37ab6283
Add acceptance tests to travis-ci scripts
10 years ago
Diana Shkolnikov
542a93c00b
Merge pull request #140 from pelias/details-flag
...
Details param not working as expected
10 years ago
Diana Shkolnikov
1f6f5a9d52
Refactor truthy check into separate function
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
d80008d098
pedantry: fix indentation and code comment
10 years ago
Peter Johnson
87018d88f6
add logging for elasticsearch query execution time
10 years ago
Diana Shkolnikov
129dbeb598
Merge pull request #131 from pelias/multi_match
...
Use multi_match in name.* for /search
10 years ago
Diana Shkolnikov
3697627fb7
Use multi_match in name.* for /search
10 years ago
Diana Shkolnikov
289cb1ba37
Merge pull request #122 from pelias/doc-details
...
Add categories and address properties to result doc
10 years ago
Severyn Kozak
beb6dfb790
Merge pull request #123 from pelias/add-logging#8
...
add logging
10 years ago
Severyn Kozak
56922a012a
Merge pull request #126 from pelias/edit-docs
...
some DOCS.md refactoring
10 years ago
Severyn Kozak
57d133b813
Merge pull request #113 from pelias/boost-exact-matches#5
...
Boost exact matches#5
10 years ago
Diana Shkolnikov
39e3672271
Fix property check
10 years ago
Severyn Kozak
b94a346a1d
package.json: v1.2.1
10 years ago
Severyn Kozak
c1b782abb5
DOCS.md: remove bbox from the /reverse parameters.
...
(it's not actually supported for that particular endpoint)
10 years ago
Peter Johnson
dff3f9896a
1.2.0
10 years ago
Peter Johnson a.k.a. insertcoffee
758b8fad60
Merge pull request #124 from pelias/issue84
...
try/catch extent()
10 years ago
Peter Johnson
ee24214aae
refactor for clarity
10 years ago
Severyn Kozak
f1db1dc385
Remove unnecessary category weights.
...
helper/category_weights.js
-Address @missinglink's comment:
https://github.com/pelias/api/pull/106#issuecomment-99401791
-Remove category weights with default values, since they're
unnecessary.
10 years ago
Severyn Kozak
1f25303523
Quote properties.
...
(query/sort, test/unit/query/search).js
-Address @dianashk's comment:
https://github.com/pelias/api/pull/113/files#r29764750
10 years ago
Peter Johnson
00ff35a7de
update dep, resolves #84
10 years ago
Severyn Kozak
2281cdca21
Use inline code delimiters for parameter names.
...
DOCS.md
-Since parameter names are code-related, use inline-code
rather than bold delimiters for them.
-Use a uniform "default value" syntax.
10 years ago
Peter Johnson
ce96e1274a
try/catch extent()
10 years ago
Severyn Kozak
a921961c7d
Remove redundant parameter documentation.
...
DOCS.md
-Rather than repeating parameter documentation verbatim for
similar endpoints, simply reference the related endpoints.
10 years ago
Severyn Kozak
435c45562c
rEADME: use inline rather than block code delimiters.
...
DOCS.md
-Replace inline use of ```code``` with `code`, to reduce
character bloat and since that's what the inline delimiters are
meant for.
10 years ago
Severyn Kozak
35467d0c60
package.json: add microtime dependency.
...
Was mistakenly left out earlier and broke a Travis build.
10 years ago
Severyn Kozak
bd2c65a798
Document the pelias-config accessLog option.
...
README.md
-Add a section documenting all of the pelias-config options
recognized by the API.
-Document the `accessLog` option.
10 years ago
Severyn Kozak
51ed1507df
Log the time spent in each elasticsearch query.
10 years ago
Severyn Kozak
0b8220cbf3
Log only once per error.
...
middleware/500.js
-Make one log call per error rather than two, to reduce
clutter/noise.
10 years ago
Diana Shkolnikov
ed0b5113d5
change for loop for foreach
10 years ago
Diana Shkolnikov
0b44ba68c3
forgot to add test to commit
10 years ago
Diana Shkolnikov
31bed0d104
Change /reverse default size to 10
10 years ago
Severyn Kozak
157734b8d6
Emit access-logs via pelias-logger.
...
(app, middleware/access_log).js
-Move the logic that determines whether access logging is
necessary to app.js, since that allows us to maintain the style
of `app.use(require(/* desired middleware module */))` inside
`app.js` without returning a "noop" middleware from
`middleware/access_log.js` in the case that it's unnecessary.
10 years ago
Severyn Kozak
a007af3572
Replace src/logger with pelias-logger.
...
(query, query)/*.js
-Remove unused `../src/logger` `require()`s.
src/logger.js, package.json
-Remove `src/logger` in favor of using `pelias-logger` for all
logging, since it's the Pelias standard.
middleware/500.js
-Replace usage of `src/logger` with pelias-logger.
10 years ago
Diana Shkolnikov
a68c7fae53
Add categories and address properties to result doc
10 years ago
Severyn Kozak
742cebe7c5
Merge branch 'master' into add-logging#8
...
README.md
-Pull in the updated README.
10 years ago
Severyn Kozak
1ce9f1bb05
Shotgun edits to the README.
...
README.md
-Edit a bunch of unrelated things... sorry. ;)
-Condense the documentation of different `npm run`nable commands
to one list.
-Remove the note about Travis, since that applies to virtually
all the Pelias repos and is documented elsewhere.
-Point the API docs hyperlink to `DOCS.md`.
10 years ago
Severyn Kozak
877e1e90a5
Add an access log middleware.
...
middleware/access_log.js, package.json
-Add middleware for printing out access logs.
-Add necessary dependencies.
10 years ago
Severyn Kozak
d0dd39257b
package.json: remove `npm run coverage` from `npm test`.
...
There isn't any point in regenerating coverage reports after every test
run.
10 years ago
Severyn Kozak
98a0a33256
Merge branch 'master' into boost-exact-matches#5
...
Pull in the latest of master.
Conflicts:
query/reverse.js
query/sort.js
10 years ago
Diana Shkolnikov
e5a1d12ced
Merge pull request #117 from pelias/better-bbox-desc
...
Better way of describing bbox param
10 years ago
Severyn Kozak
f27df8b5c5
Return error message if string.
...
middleware/500.js
-cf1a483 changed the middleware to return an opaque error
message rather than the error object itself, in case it contains
sensitive information. The problem is that some sanitizers
return a helpful error message (intended to be seen by users) as
a string. Add a conditional to only return the ambiguous,
catchall error message when a non-string `err` object is
received -- this will likely be a stack trace, or something.
10 years ago
Diana Shkolnikov
e3cdda9778
ugh another comment fix
10 years ago
Diana Shkolnikov
6ae1a4f7df
fix comments and tests
10 years ago
Severyn Kozak
f72ed2a6bd
Merge pull request #106 from pelias/category-scoring
...
category scoring [WIP]
10 years ago
Diana Shkolnikov
7c81c56cf3
Fix bbox comment
10 years ago