yusuketk %!s(int64=7) %!d(string=hai) anos
pai
achega
f6ab259887
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/server/util/search.js

+ 1 - 1
src/server/util/search.js

@@ -537,7 +537,7 @@ SearchClient.prototype.appendCriteriaForQueryString = function(query, queryStrin
     const queries = parsedKeywords.tag.map((tag) => {
       return { term: { tag_names: tag } };
     });
-    query.body.query.bool.filter.push({ bool: { should: queries } });
+    query.body.query.bool.filter.push({ bool: { must: queries } });
   }
 
   if (parsedKeywords.not_tag.length > 0) {