You are here

public function apachesolr_views_query::add_field in Apache Solr Views 7

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

File

./apachesolr_views_query.inc, line 202
Views query plugin for Apache Solr Views. Gets its data not from the database, but from a Solr server.

Class

apachesolr_views_query
@file Views query plugin for Apache Solr Views. Gets its data not from the database, but from a Solr server.

Code

public function add_field($table_alias, $field, $alias = '', $params = array()) {

  // Make sure an alias is assigned.
  $alias = $alias ? $alias : $field;
  return $alias;
}