Ejemplo n.º 1
0
 /**
  * Gets the raw spellchecking suggestions
  *
  * @return array Array of suggestions
  */
 public function getSuggestions()
 {
     $suggestions = $this->search->getSpellcheckingSuggestions();
     return $suggestions;
 }
Ejemplo n.º 2
0
 /**
  * Gets the collated suggestion
  *
  * @return string collated suggestion
  */
 public function getCollatedSuggestion()
 {
     $suggestions = $this->search->getSpellcheckingSuggestions();
     return $suggestions['collation'];
 }