protected function AbstractSearchApiSolrMultilingualBackend::setFacets in Search API Multilingual Solr Search 8
File
- src/
Plugin/ search_api/ backend/ AbstractSearchApiSolrMultilingualBackend.php, line 533
Class
- AbstractSearchApiSolrMultilingualBackend
- A abstract base class for all multilingual Solr Search API backends.
Namespace
Drupal\search_api_solr_multilingual\Plugin\search_api\backendCode
protected function setFacets(QueryInterface $query, Query $solarium_query, array $field_names) {
parent::setFacets($query, $solarium_query, $field_names);
if ($languages = $query
->getLanguages()) {
foreach ($languages as $language) {
$language_specific_field_names = $this
->getLanguageSpecificSolrFieldNames($language, $field_names, $query
->getIndex());
parent::setFacets($query, $solarium_query, array_diff_assoc($language_specific_field_names, $field_names));
}
}
}