protected function SearchApiSolrMultilingualBackend::solrDynamicFieldExists in Apache Solr Multilingual 8
1 call to SearchApiSolrMultilingualBackend::solrDynamicFieldExists()
- SearchApiSolrMultilingualBackend::ensureMultilingualFieldExists in src/
Plugin/ search_api/ backend/ SearchApiSolrMultilingualBackend.php
File
- src/
Plugin/ search_api/ backend/ SearchApiSolrMultilingualBackend.php, line 262 - Contains \Drupal\as_search\Plugin\search_api\backend\ASSearchApiSolrBackend.
Class
- SearchApiSolrMultilingualBackend
- Plugin annotation @SearchApiBackend( id = "search_api_solr_multilingual", label = @Translation("Solr Multilingual"), description = @Translation("Index items using an Apache Solr Multilingual search server.") )
Namespace
Drupal\apachesolr_multilingual\Plugin\search_api\backendCode
protected function solrDynamicFieldExists($solr_field_name, IndexInterface $index) {
$response = $this
->solrRestGet('schema/dynamicfields', $index);
$found = FALSE;
foreach ($response['dynamicFields'] as $dynamic_field) {
if ($dynamic_field['name'] == $solr_field_name) {
$found = TRUE;
break;
}
}
return $found;
}