public function Result::getSuggester in Search API Solr 8.3
Same name and namespace in other branches
- 8 src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getSuggester()
- 8.2 src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getSuggester()
- 4.x src/Solarium/Autocomplete/Result.php \Drupal\search_api_solr\Solarium\Autocomplete\Result::getSuggester()
Get suggester component result.
This is a convenience method that maps presets to getComponent.
Return value
\Solarium\Component\Result\Suggester\Result|null The suggester component result.
File
- src/
Solarium/ Autocomplete/ Result.php, line 71
Class
- Result
- Autocomplete query result.
Namespace
Drupal\search_api_solr\Solarium\AutocompleteCode
public function getSuggester() {
return $this
->getComponent(ComponentAwareQueryInterface::COMPONENT_SUGGESTER);
}