|
|
@ -29,7 +29,7 @@ function setup( backend, query ){ |
|
|
|
cmd.type = req.clean.layers; |
|
|
|
cmd.type = req.clean.layers; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
logger.debug( '[ES req]', JSON.stringify(cmd) ); |
|
|
|
logger.debug( '[ES req]', cmd ); |
|
|
|
|
|
|
|
|
|
|
|
// query backend
|
|
|
|
// query backend
|
|
|
|
service.search( backend, cmd, function( err, docs, meta ){ |
|
|
|
service.search( backend, cmd, function( err, docs, meta ){ |
|
|
@ -43,7 +43,7 @@ function setup( backend, query ){ |
|
|
|
res.data = docs; |
|
|
|
res.data = docs; |
|
|
|
res.meta = meta; |
|
|
|
res.meta = meta; |
|
|
|
} |
|
|
|
} |
|
|
|
logger.debug('[ES response]', JSON.stringify(docs)); |
|
|
|
logger.debug('[ES response]', docs); |
|
|
|
next(); |
|
|
|
next(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|