You are here

public function apachesolr_views_query::add_field in Apache Solr Views 6

Same name and namespace in other branches
  1. 7 apachesolr_views_query.inc \apachesolr_views_query::add_field()

Add a field to retrieve.

File

./apachesolr_views_query.inc, line 449

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_field($table, $field, $alias = '', $params = array()) {
  $this->has_sql_fields = TRUE;
  return $this->_db_query
    ->add_field($table, $field, $alias, $params);
}