hasFacet example



        foreach ($elasticResult['aggregations'] as $key => $aggregation) {
            if (!str_contains($key, 'combined_facet_')) {
                continue;
            }

            if ($aggregation['doc_count'] <= 0) {
                continue;
            }

            if (!$criteria->hasFacet($key)) {
                continue;
            }

            $facet = $criteria->getFacet($key);
            if (!$facet instanceof CombinedConditionFacet) {
                continue;
            }

            $result->addFacet(
                new BooleanFacetResult(
                    $facet->getName(),
                    
Home | Imprint | This part of the site doesn't use cookies.