You are here

public function Result::getSpellcheck in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getSpellcheck()
  2. 8 src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getSpellcheck()
  3. 8.2 src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getSpellcheck()

Get spellcheck component result.

This is a convenience method that maps presets to getComponent.

Return value

\Solarium\Component\Result\Spellcheck\Result|null The spellcheck component result.

File

src/Solarium/Autocomplete/Result.php, line 59

Class

Result
Autocomplete query result.

Namespace

Drupal\search_api_solr\Solarium\Autocomplete

Code

public function getSpellcheck() {
  return $this
    ->getComponent(ComponentAwareQueryInterface::COMPONENT_SPELLCHECK);
}