You are here

public function QueryInterface::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

1 method overrides QueryInterface::setFulltextFields()
Query::setFulltextFields in src/Query/Query.php
Sets the fields that will be searched for the search keys.

File

src/Query/QueryInterface.php, line 193

Class

QueryInterface
Represents a search query on a Search API index.

Namespace

Drupal\search_api\Query

Code

public function setFulltextFields(array $fields = NULL);