/**
  * Initializes the search component.
  *
  * Sets minimum match, boost function, and boost query.
  *
  */
 public function initializeSearchComponent()
 {
     if (!empty($this->searchConfiguration['query.']['minimumMatch'])) {
         $this->query->setMinimumMatch($this->searchConfiguration['query.']['minimumMatch']);
     }
     if (!empty($this->searchConfiguration['query.']['boostFunction'])) {
         $this->query->setBoostFunction($this->searchConfiguration['query.']['boostFunction']);
     }
     if (!empty($this->searchConfiguration['query.']['boostQuery'])) {
         $this->query->setBoostQuery($this->searchConfiguration['query.']['boostQuery']);
     }
     if (!empty($this->searchConfiguration['query.']['boostQuery.'])) {
         $boostQueries = array();
         $boostConfiguration = $this->searchConfiguration['query.']['boostQuery.'];
         foreach ($boostConfiguration as $query) {
             $boostQueries[] = $query;
         }
         $this->query->setBoostQuery($boostQueries);
     }
 }