public function SolrFieldType::getCopyFields in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::getCopyFields()
- 4.x src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::getCopyFields()
Gets a list of copy fields that will use this Solr Field Type.
Return value
array
Overrides SolrFieldTypeInterface::getCopyFields
File
- src/
Entity/ SolrFieldType.php, line 360
Class
- SolrFieldType
- Defines the SolrFieldType entity.
Namespace
Drupal\search_api_solr\EntityCode
public function getCopyFields() {
$copy_fields = [];
// Foreach (array('ts' => 'terms_ts', 'tm' => 'terms_tm', 'tos' => 'terms_ts', 'tom' => 'terms_tm') as $src_prefix => $dest_prefix) {
// $copy_fields[] = [
// 'source' => SearchApiSolrUtility::encodeSolrName(
// Utility::getLanguageSpecificSolrDynamicFieldPrefix($src_prefix, $this->field_type_language_code)
// ) . '*',
// 'dest' => SearchApiSolrUtility::encodeSolrName(
// Utility::getLanguageSpecificSolrDynamicFieldPrefix($dest_prefix, $this->field_type_language_code)
// ) . '*',
// ];
// }.
return $copy_fields;
}