You are here

public function ResultSet::addSpellingSuggestion in Google Search Appliance 8

Adds spelling suggestion.

Parameters

string $string: Suggestion.

Return value

$this

File

src/SearchResults/ResultSet.php, line 149

Class

ResultSet
Defines a value object for a search response.

Namespace

Drupal\google_appliance\SearchResults

Code

public function addSpellingSuggestion($string) {
  $this->spellingSuggestions[] = $string;
  return $this;
}