You are here

public function Query::setFulltextFields in Search API 8

Sets the fields that will be searched for the search keys.

If this is not called, all fulltext fields will be searched.

Parameters

array $fields: An array containing fulltext fields that should be searched.

Return value

$this

Overrides QueryInterface::setFulltextFields

File

src/Query/Query.php, line 438

Class

Query
Provides a standard implementation for a Search API query.

Namespace

Drupal\search_api\Query

Code

public function setFulltextFields(array $fields = NULL) {
  $this->fields = $fields;
  return $this;
}