Browse Source

using terms instead of match

category
Harish Krishna 9 years ago
parent
commit
6be93ff0b0
  1. 6
      query/search.js

6
query/search.js

@ -46,10 +46,8 @@ function generate( params ){
// add category mapping // add category mapping
if (params.categories) { if (params.categories) {
query.query.filtered.query.bool.should.push({ query.query.filtered.filter.bool.must.push({
'match': { terms: { category: params.categories }
'category': params.categories
}
}); });
} }

Loading…
Cancel
Save