diff --git a/controller/search.js b/controller/search.js index 1a0a51fea..fe7e09a18 100644 --- a/controller/search.js +++ b/controller/search.js @@ -99,14 +99,13 @@ function setup( apiConfig, esclient, query, should_execute ){ // store the query_type for subsequent middleware res.meta.query_type = renderedQuery.type; - const messageParts = [ - '[controller:search]', - `[queryType:${renderedQuery.type}]`, - `[es_result_count:${_.get(res, 'data', []).length}]` - ]; debugLog.push(req, {queryType: { [renderedQuery.type] : { - es_result_count: _.get(res, 'data', []).length + es_took: message.es_took, + response_time: message.response_time, + retries: message.retries, + es_hits: message.es_hits, + es_result_count: message.result_count } }}); }