/** * Initializes the search component. * * */ public function initializeSearchComponent() { if ($this->searchConfiguration['spellchecking']) { $this->query->setSpellchecking(); } }