You are here

public function Result::getTerms in Search API Solr 8.2

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

Get terms component result.

This is a convenience method that maps presets to getComponent

Return value

TermsResult|null

File

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

Class

Result
Autocomplete query result.

Namespace

Drupal\search_api_solr\Solarium\Autocomplete

Code

public function getTerms() {
  return $this
    ->getComponent(ComponentAwareQueryInterface::COMPONENT_TERMS);
}