public function apachesolr_views_query::add_solr_field in Apache Solr Views 6
Add a Solr Field to retrieve.
Parameters
$field: The name of the field to add.
Return value
string The field alias.
File
- ./
apachesolr_views_query.inc, line 439
Class
- apachesolr_views_query
- Class for handling a view that gets its data not from the database, but from a Solr server.
Code
public function add_solr_field($field) {
if (!in_array($field, $this->_used_fields)) {
$this->_used_fields[] = $field;
}
return $field;
}