diff --git a/controller/search.js b/controller/search.js index fcb12831..1edb3b7a 100644 --- a/controller/search.js +++ b/controller/search.js @@ -12,7 +12,8 @@ function setup( backend, query ){ // backend command var cmd = { index: 'pelias', - body: query( req.clean ) + body: query( req.clean ), + type: req.clean.layers }; // query backend