protected function SearchApiSolrMultilingualBackend::createSolrDynamicField in Apache Solr Multilingual 8
1 call to SearchApiSolrMultilingualBackend::createSolrDynamicField()
- SearchApiSolrMultilingualBackend::ensureMultilingualFieldExists in src/
Plugin/ search_api/ backend/ SearchApiSolrMultilingualBackend.php
File
- src/
Plugin/ search_api/ backend/ SearchApiSolrMultilingualBackend.php, line 286 - 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 createSolrDynamicField($solr_field_name, $solr_field_type_name, IndexInterface $index) {
$command = [
'add-dynamic-field' => [
'name' => $solr_field_name,
'type' => $solr_field_type_name,
'stored' => TRUE,
'indexed' => TRUE,
'multiValued' => strpos($solr_field_name, 'tm_') === 0 ? TRUE : FALSE,
],
];
return $this
->solrRestPost('schema', Json::encode($command), $index);
}