Peter Johnson
14e6c6303f
refactor middleware dedupe for readability
6 years ago
Julian Simioni
6f20209ce4
Merge pull request #1227 from pelias/update-ci-and-nodej
...
Update CI and Node.js
6 years ago
Julian Simioni
87923148e7
feat(doc): Point to common requirements doc
...
This will prevent us from having to update supported Node.js versions in
many places for each release
6 years ago
Julian Simioni
882adb2b29
feat(Node.js): Drop support for Node.js 6
...
Connects https://github.com/pelias/pelias/issues/752
6 years ago
Julian Simioni
cae3c9acbd
feat(release): Skip semantic-release run on pull reqeusts
...
This should speed up our CI slightly
6 years ago
Julian Simioni
d86419cd76
chore(release): Run releases off master branch
...
Connects https://github.com/pelias/pelias/issues/749
6 years ago
Julian Simioni
7a7751e32b
Add bash dependency to CircleCI script
6 years ago
Julian Simioni
50433d9848
Merge pull request #1224 from pelias/fix-query-types
...
Fix confidence score detection
6 years ago
Julian Simioni
2a668612ed
feat(confidence): Add support for new query names
6 years ago
Julian Simioni
c548a73cb9
fix(confidence): Update query type names in confidence score code
...
4adf4b3dd7
renamed some queries to be quite a bit more informative, however it
wasn't obvious that these query names were used elsewhere in the code.
With those changes, no confidence score middleware was running, which
this should help fix.
6 years ago
Julian Simioni
5a8977122b
Merge pull request #1173 from pelias/configurable-boosts
...
Configurable boosts for sources and layers
6 years ago
Julian Simioni
d1dfbf2dcb
Add Configurable Boosts readme section
6 years ago
Julian Simioni
b037835b04
Reorder config options roughly by importance
6 years ago
Julian Simioni
f3b11a16eb
Use default config in search and autcomplete tests
...
The configurable boosts feature can case other unit tests to fail if a
user has customizations in their `pelias.json`.
This adds proxyquire to all tests that might be affected, which force
the default config, preventing such failures.
6 years ago
Peter Johnson
a06683ff68
feat(query): Modify custom boosts feature to use function_score queries
6 years ago
Julian Simioni
32684e0013
feat(query): Add support for custom boosts to search endpoint
...
This adds support for custom boosts to the addressit-style search
queries. The newer libpostal based queries do not include this
functionality since they can only query for addresses.
6 years ago
Julian Simioni
bb605acb3f
Add tests for autocomplete custom boosts
6 years ago
Julian Simioni
4daf2aa6dd
Use `pelias.json` to inform boost configuration
6 years ago
Julian Simioni
9679c14152
Test handling of undefined configuration
6 years ago
Julian Simioni
9080feef05
WIP: Configurable boosts for sources and layers
...
This is a work in progress to enable customizing boosts for sources and
layers.
For now, the config must be hardcoded in query/autocomplete.js, but it
will eventually be driven by `pelias.json` and take effect on all
endpoints.
6 years ago
Julian Simioni
b7502511a8
Merge pull request #1221 from pelias/fix-host-documentation
...
Add environment variable configuration section
6 years ago
Julian Simioni
0deb24b51e
Fix typo
6 years ago
Julian Simioni
39f144c5a0
Add environment variable configuration section
...
Previously, we were conflating environment variable and `pelias.json`
configuration options, and omitted the port option completely.
Add a new section which clearly explains the two environment variables
that affect Pelias API operation.
6 years ago
Julian Simioni
6295d027b4
Fix README typo
6 years ago
Julian Simioni
df04aedab2
Merge pull request #1220 from pelias/structured-logs
...
Use structured logs
6 years ago
Julian Simioni
003c182df5
feat(log): add structured data to address parser logs
...
These logs have been very confusing to us for a long time, and we have
never bothered to collect enought data to understand them better.
6 years ago
Julian Simioni
a1add3656e
feat(log): Use structured logs for place endpoint
6 years ago
Julian Simioni
a7932d0b8c
feat(log): move retry info to structured logs
6 years ago
Julian Simioni
0056c0749a
feat(log): Add structured logs for coarse_reverse
6 years ago
Julian Simioni
4adf4b3dd7
feat(queries): Normalize all query names
...
They should start with the endpoint (ideally), and
address_search_using_ids should not have the same query name as
'search_fallback'.
6 years ago
Julian Simioni
d681a114d6
feat(log): Remove most unstructured controller logs
...
These are nose now, the structured logs have much better info
6 years ago
Julian Simioni
080cd6854f
Remove verbose Elasticsearch log lines
6 years ago
Julian Simioni
f5c6dcf882
feat(log): Add structured logs for interpolation service
6 years ago
Julian Simioni
e55fd28c90
Require microservice-wrapper version with response time
6 years ago
Julian Simioni
c91fd58ec6
fix(log): replace brittle string extraction
6 years ago
Julian Simioni
24ef0a4361
feat(log): replace console logs with pelias-logger
...
This ensures we always get output in JSON if we ask for it.
6 years ago
Julian Simioni
49a988ce37
Remove non-JSON log lines
...
We can have logs with a lot more fidelity by logging structured JSON
directly.
6 years ago
Julian Simioni
8c37ee63dd
feat(log): Add JSON log for Elasticsearch queries
...
This adds a structured and detailed log line for each Elasticsearch
query.
It includes information like the total number of Elasticsearch hits, how
long Elasticsearch took to process the request, query parameters, etc.
This is extremely useful for later analysis as the structured nature of
the query allows for powerful filtering.
6 years ago
Julian Simioni
92d15c6687
feat(log): Log structured data about Placeholder requests
...
Structured logs allow later analysis with details like query parameters,
request time, etc.
6 years ago
Peter Johnson
fa8257cd06
feat(debug): debugging info for interpolation service
6 years ago
Peter Johnson
9d4c773ce1
testing: add test case: incorrect parsing of diagonal directionals - no subsequent element
6 years ago
Julian Simioni
ee43ec041c
fix(libpostal): check for next element before using it
6 years ago
Julian Simioni
42cfcd843a
Merge pull request #1216 from pelias/libpostal_aus_unit_numbers
...
libpostal aus unit numbers
6 years ago
Peter Johnson
4e8a5385f4
feat(libpostal_patch): additional tests
6 years ago
Peter Johnson
27a9e1d900
feat(libpostal_patch): enable field mapping for "unit"
6 years ago
Peter Johnson
69ddbaf3be
feat(libpostal_patch): correctly parse australian-style unit numbers
6 years ago
Peter Johnson
6e2e4fc53a
feat(libpostal_patch): refactor diagonals patch to use an index and lodash functions
6 years ago
Peter Johnson
c8d7776587
feat(libpostal_patch): refactor code to use lodash methods for key checking
6 years ago
Peter Johnson
19eb0b57d1
feat(libpostal_patch): add a libpostal patch which allows recasting labels
6 years ago
Julian Simioni
a982eab215
Merge pull request #1214 from pelias/fix-autocomplete-tokenization
...
fix(autocomplete): detect the case where input text is unsubstantial
6 years ago