Julian Simioni
080cd6854f
Remove verbose Elasticsearch log lines
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
204f5297de
Remove all leading newlines in files
7 years ago
Stephen Hess
bfecda2c07
refactored search service tests to inline mock callbacks
8 years ago
Stephen Hess
8c249c26f4
initialize esclient in routes/v1, eliminating need for src/backend
8 years ago
Stephen Hess
e35ba28137
add proxyquire to tests for pelias-logger to swallow some error logging
8 years ago
Stephen Hess
a4b4e286d3
replaced map of singletons in backend with single singleton
8 years ago
Peter Johnson
72ec68f4c2
additional backend error logging
8 years ago
Peter Johnson
1451e9038e
change all log labels to 'api'
8 years ago
Stephen Hess
d3febe49cc
moved location of `matched_queries` to correct place
8 years ago
Stephen Hess
8d532adb3f
added support for `_matched_queries` in ES hits
...
this will make it easier to sort thru results from FallbackQuery by knowing which query was called
8 years ago
Peter Johnson
b5b3c41ba1
remove microtime module
9 years ago
Diana Shkolnikov
562338635c
Confidence score calculation
...
Fixes pelias/pelias#120
9 years ago
Peter Johnson
87018d88f6
add logging for elasticsearch query execution time
10 years ago
Severyn Kozak
51ed1507df
Log the time spent in each elasticsearch query.
10 years ago
Peter Johnson
6efa0aa510
expose id/type/layer
10 years ago
Peter Johnson
3ea90dcf4d
typo
10 years ago
Peter Johnson
0301fe8e74
search service
10 years ago