public function Result::getSpellcheck in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getSpellcheck()
- 8 src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getSpellcheck()
- 4.x 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
SpellcheckResult|null
File
- src/
Solarium/ Autocomplete/ Result.php, line 56
Class
- Result
- Autocomplete query result.
Namespace
Drupal\search_api_solr\Solarium\AutocompleteCode
public function getSpellcheck() {
return $this
->getComponent(ComponentAwareQueryInterface::COMPONENT_SPELLCHECK);
}