|
@@ -540,10 +540,11 @@ class ElasticsearchDelegator {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const result = await this.client.search(query);
|
|
const result = await this.client.search(query);
|
|
|
|
|
+
|
|
|
// for debug
|
|
// for debug
|
|
|
logger.debug('ES result: ', result);
|
|
logger.debug('ES result: ', result);
|
|
|
- return {
|
|
|
|
|
|
|
|
|
|
|
|
+ return {
|
|
|
meta: {
|
|
meta: {
|
|
|
took: result.took,
|
|
took: result.took,
|
|
|
total: result.hits.total,
|
|
total: result.hits.total,
|