public function StreamingExpressionBuilder::_select_copied_field in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/Utility/StreamingExpressionBuilder.php \Drupal\search_api_solr\Utility\StreamingExpressionBuilder::_select_copied_field()
- 4.x src/Utility/StreamingExpressionBuilder.php \Drupal\search_api_solr\Utility\StreamingExpressionBuilder::_select_copied_field()
Copy a field's value to a different field within select().
Parameters
string $search_api_field_name_source:
string $search_api_field_name_target:
Return value
string
File
- src/
Utility/ StreamingExpressionBuilder.php, line 319
Class
- StreamingExpressionBuilder
- Provides methods for creating streaming expressions targeting a given index.
Namespace
Drupal\search_api_solr\UtilityCode
public function _select_copied_field(string $search_api_field_name_source, string $search_api_field_name_target) {
return $this
->concat('fields="' . $this
->_field($search_api_field_name_source) . '"', 'delim=","', 'as="' . $this
->_field($search_api_field_name_target) . '"');
}