/**
  * @param $search
  * @param Query $query
  */
 public function onSearch($search, Query $query)
 {
     $message = "Searching '{$search}' with {$query->count()} results";
     $this->loggerChannel->addDebug($message);
 }
 /**
  * @param Search $search
  * @param array $results
  */
 public function onSearch(Search $search, array $results)
 {
     $resultsCount = count($results);
     $message = "Searching '{$search->getInput()}' #{$search->getId()} with {$resultsCount} results.";
     $this->loggerChannel->addDebug($message);
 }
 /**
  * @param string $message
  */
 public function onError($message)
 {
     $this->loggerChannel->addCritical($message);
 }