protected function isIndexable(Collection $entity) : bool { $hasTheme = count($entity->getThemeIds()) > 0; $notProfileCollection = !$entity->isMain(); return $hasTheme && $notProfileCollection; }
protected function getThemeIdsWeight(Collection $entity) : array { return $this->themeWeightCalculator->calculateWeights($entity->getThemeIds()); }