Skip to content

v0.2.4

Latest
Compare
Choose a tag to compare
@pionl pionl released this 17 Mar 09:21
dc3fdc7

⛑ Fix inner hit building and return self while using collapse

This can be now used.

$this->query->collapse(
                (new Collapse(
                    $this->options->groupByTypology
                        ? PriceTermsIndex::TYPE_ID
                        : PriceTermsIndex::OBJECT_ID
                ))
                ->addInnerHit(
                    (new InnerHit(
                        self::KEY_INNER_HITS_NAME,
                        10
                    ))
                    ->collapse(PriceTermsIndex::TYPE_TO_BOARD)
                )
            );