public function SearchApiSolrBackend::getSupportedFeatures in Search API Solr 8
Same name and namespace in other branches
- 8.3 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::getSupportedFeatures()
- 8.2 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::getSupportedFeatures()
- 4.x src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::getSupportedFeatures()
Returns all features that this backend supports.
Features are optional extensions to Search API functionality and usually defined and used by third-party modules.
There are currently two features defined directly in the Search API module:
- search_api_mlt, by the \Drupal\search_api\Plugin\views\argument\SearchApiMoreLikeThis class.
- search_api_random_sort, by the \Drupal\search_api\Plugin\views\query\SearchApiQuery class.
Return value
string[] The identifiers of all features this backend supports.
Overrides BackendPluginBase::getSupportedFeatures
See also
hook_search_api_server_features_alter()
File
- src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php, line 458
Class
- SearchApiSolrBackend
- Apache Solr backend for search api.
Namespace
Drupal\search_api_solr\Plugin\search_api\backendCode
public function getSupportedFeatures() {
return [
'search_api_autocomplete',
'search_api_facets',
'search_api_facets_operator_or',
'search_api_mlt',
'search_api_random_sort',
'search_api_data_type_location',
'search_api_grouping',
];
}