public function SearchApiViewsQuery::addField in Search API 7
Add a field that should be retrieved from the results by this view.
Parameters
$field: The field's identifier, as used by the Search API. E.g., "title" for a node's title, "author:name" for a node's author's name.
Return value
SearchApiViewsQuery The called object.
File
- contrib/
search_api_views/ includes/ query.inc, line 119 - Contains SearchApiViewsQuery.
Class
- SearchApiViewsQuery
- Views query class using a Search API index as the data source.
Code
public function addField($field) {
$this->fields[$field] = TRUE;
return $field;
}