Skip to content

Commit c410f07

Browse files
committed
ES query explain
1 parent 732d8b6 commit c410f07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/routes/projects/list.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ const retrieveProjects = (req, criteria, sort, ffields) => {
258258
return new Promise((accept, reject) => {
259259
const es = util.getElasticSearchClient();
260260
es.search(searchCriteria).then((docs) => {
261-
const rows = _.map(docs.hits.hits, (single) => { const r = single._source; r.all = docs; return r; }); // eslint-disable-line no-underscore-dangle
261+
const jres = JSON.stringify(docs);
262+
const rows = _.map(docs.hits.hits, (single) => { const r = single._source; r.all = jres; return r; }); // eslint-disable-line no-underscore-dangle
262263
accept({ rows, count: docs.hits.total });
263264
}).catch(reject);
264265
});

0 commit comments

Comments
 (0)