Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 0052aad

Browse files
committed
add minimum filter match
1 parent 4c5998a commit 0052aad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graphql/elasticsearch/queryBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function applyFilters (filter, query, type) {
9494
}
9595

9696
if (hasCatalogFilters) {
97-
query = query.orFilter('bool', (b) => attrFilterBuilder(b))
97+
query = query.filterMinimumShouldMatch(1).orFilter('bool', (b) => attrFilterBuilder(b))
9898
.orFilter('bool', (b) => attrFilterBuilder(b, optionsPrefix).filter('match', 'type_id', 'configurable')); // the queries can vary based on the product type
9999
}
100100

0 commit comments

Comments
 (0)