コード例 #1
0
ファイル: SpellChecker.php プロジェクト: kalypso63/ext-solr
 /**
  * Gets the raw spellchecking suggestions
  *
  * @return array Array of suggestions
  */
 public function getSuggestions()
 {
     $suggestions = $this->search->getSpellcheckingSuggestions();
     return $suggestions;
 }
コード例 #2
0
ファイル: SpellChecker.php プロジェクト: nxpthx/ext-solr
 /**
  * Gets the collated suggestion
  *
  * @return string collated suggestion
  */
 public function getCollatedSuggestion()
 {
     $suggestions = $this->search->getSpellcheckingSuggestions();
     return $suggestions['collation'];
 }