Skip to content

Commit d9a1d5a

Browse files
authored
Merge pull request #21 from integer-net/fix-category-filter
Fix category filter
2 parents dd3905b + 3187eaa commit d9a1d5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Solr/Request/SearchRequest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ private function getResultFromRequest($pageSize, $fuzzy = true, $activeFilterAtt
243243
if ($attributeCode == 'price' && isset($parentResult->facet_counts->facet_intervals->price_f)) {
244244
$result->facet_counts->facet_intervals->price_f = $parentResult->facet_counts->facet_intervals->price_f;
245245
}
246+
if ($attributeCode == 'category') {
247+
continue;
248+
}
246249
$attribute = $this->attributeRepository->getAttributeByCode($attributeCode, null);
247250
if ($attribute->getBackendType() == 'decimal') {
248251
$indexField = new IndexField($attribute, $this->eventDispatcher);

0 commit comments

Comments
 (0)