Peter Johnson
63d9329afd
add additional test case
9 years ago
Peter Johnson
eb73ec7390
better comment
9 years ago
Peter Johnson
0caca08787
improve error matching by using string prefix matching on known elasticsearch exception names
9 years ago
Peter Johnson
b15cfb3795
refactor elasticsearch error detection, improve test coverage
9 years ago
Julian Simioni
833d3a7109
Merge pull request #481 from pelias/multi_match_admin_parts
...
Use multi_match query for admin fields
9 years ago
Diana Shkolnikov
e4647eaeaf
Merge pull request #445 from vesameskanen/no-stringify-logging
...
Remove expensive JSON.stringify from api debug logging calls
9 years ago
Julian Simioni
373a08e79b
Set all admin boosts to 1
...
They seem to interfere with the new multi_match query. More tweaking in
the future is definitely warranted.
9 years ago
Julian Simioni
ab19a12e1c
Use multi_match query for admin fields
9 years ago
Julian Simioni
e04efed98b
Merge pull request #526 from pelias/missinglink
...
autocomplete milestone
9 years ago
missinglink
979aab1ac3
ensure that problematic single grams are removed from the query
9 years ago
missinglink
1c9af40f3c
remove query.tokens_complete and query.tokens_incomplete from geoJSON
9 years ago
missinglink
05240626fd
handle addressit case where parsed_text.street is produced and parsed_text.name is not
9 years ago
Peter Johnson a.k.a. insertcoffee
e6d9a0c034
Merge pull request #529 from pelias/missinglink_complete_incomplete_refactor
...
improve api-side tokenizer
9 years ago
missinglink
ee73774c89
add tokenizer, refactor how we determine if a token is 'complete' or 'incomplete'
9 years ago
missinglink
b771053bd1
Merge branch 'master' of github.com:pelias/api into missinglink
9 years ago
Peter Johnson a.k.a. insertcoffee
2d136f75ea
Merge pull request #527 from pelias/enable_borough_for_search
...
enable borough for search
9 years ago
missinglink
e093a09a8d
remove search related improvements from this PR
9 years ago
missinglink
0c67347c27
enable borough for search
9 years ago
missinglink
9dbed08884
remove duplicate entry for borough
9 years ago
missinglink
da4c666538
reduce admin:borough:boost from 800->600
9 years ago
missinglink
2398f05f8d
fix borough matching for both autocomplete and search endpoints
9 years ago
missinglink
b862fc8833
refactor pop_subquery to be config driven
9 years ago
missinglink
ca0c51b0fd
don't strip single digits from query
9 years ago
missinglink
01a3233a7b
add a view to boost exact matches
9 years ago
missinglink
3051885119
Merge branch 'master' of github.com:pelias/api into missinglink
9 years ago
Julian Simioni
e29c9f300d
Merge pull request #524 from pelias/greenkeeper-pelias-query-6.3.0
...
Update pelias-query to version 6.3.0 🚀
9 years ago
greenkeeperio-bot
bf3d931640
chore(package): update pelias-query to version 6.3.0
...
https://greenkeeper.io/
9 years ago
Julian Simioni
ae5549dde8
Merge pull request #522 from pelias/admin_borough
...
Search borough when searching admin fields
9 years ago
Julian Simioni
f8af354e71
Base admin fields on placetypes
9 years ago
Julian Simioni
028ab1d889
Add search config settings for borough
9 years ago
missinglink
25ab63c3b3
change search analyzer to be more similar to what we had before the autocomplete_refactor milestone
9 years ago
Stephen K Hess
986c340f5b
Merge pull request #520 from pelias/switch-to-text-analyzer-package
...
switched to pelias-text-analyzer package since that responsibility ha…
9 years ago
Julian Simioni
25e9d6f026
Merge pull request #504 from pelias/use_new_express_send_status_method
...
Use new express sendStatus method
9 years ago
Stephen Hess
bd3b8e7bbe
switched to pelias-text-analyzer package since that responsibility has been moved to there
9 years ago
missinglink
30db744b87
Merge branch 'autocomplete_increase_slop' of github.com:pelias/api into missinglink
9 years ago
Julian Simioni
96199dc6d9
Merge pull request #512 from pelias/greenkeeper-pelias-model-4.0.0
...
Update pelias-model to version 4.0.0 🚀
9 years ago
Stephen K Hess
daec7e9ebb
Merge pull request #517 from pelias/fix-name-only-result-labels
...
fixed extraneous comma labels for results with only a `name`
9 years ago
Stephen K Hess
97ca8687d9
Merge pull request #514 from pelias/support-borough-layer
...
added `layer=borough` support for *all 5 boroughs* in data
9 years ago
Stephen Hess
9cdfce13c1
fixed extraneous comma labels for results with only a `name`
9 years ago
missinglink
b80efff0ea
Merge branch 'master' of github.com:pelias/api into missinglink
9 years ago
Stephen Hess
2c40827701
added `layer=borough` support for *all 5 boroughs* in data
9 years ago
greenkeeperio-bot
7876650581
chore(package): update pelias-model to version 4.0.0
...
http://greenkeeper.io/
9 years ago
missinglink
e40c9ef326
increase focus weight from 10->40 and simplify population/popularity subview
9 years ago
Julian Simioni
2e4cba0459
Merge pull request #507 from pelias/special-case-usa-for-labels
...
added special case for USA in labels
9 years ago
Julian Simioni
af187e6c8e
Merge pull request #505 from pelias/change-macrocountry-to-macrocounty
...
Change macrocountry to macrocounty, add macroregion
9 years ago
Stephen Hess
0076200728
added special case for USA in labels
...
if record is for literal United States, use the full name, otherwise use USA
9 years ago
Stephen Hess
c99fa9f0ef
added support for `macroregion`
9 years ago
Julian Simioni
fd529ccee9
Use new express sendStatus method
...
According to a message on the console:
```
express deprecated res.send(status): Use res.sendStatus(status) instead
middleware/options.js:12:9
```
9 years ago
Julian Simioni
bc39ddd970
Merge pull request #503 from pelias/fix_timeout_error
...
Fix timeout error handling
9 years ago
Julian Simioni
3c1d758229
Fix timeout error handling
...
Timeout errors come back from the Elasticsearch module as Error objects,
so instead of pushing the entire object onto the errors array, we should
just push the message.
I'm not sure if there are other cases where errors are just strings,
errors that aren't objects with a message property are handled as
before.
9 years ago