Esempio n. 1
0
 /**
  * Perform normalization and analysis of Summon return value.
  *
  * @param array $input The raw response from Summon
  *
  * @throws \SerialsSolutions_Summon_Exception
  * @return array       The processed response from Summon
  */
 protected function process($input)
 {
     $result = parent::process($input);
     // Process highlighting/snippets:
     foreach ($result['documents'] as $i => $current) {
         // Remove snippets if not desired:
         if (!$this->snippets) {
             unset($result['documents'][$i]['Snippet']);
         }
     }
     return $result;
 }