You are here

public function SearchApiMultiQueryInterface::fields in Search API Multi-Index Searches 7

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

If this method is not called on the query before execution, or it is called with NULL, all fulltext fields should be searched.

Parameters

array|null $fields: An array containing fulltext fields that should be searched, or NULL if all fields should be searched.

Return value

SearchApiMultiQueryInterface The called object.

Throws

SearchApiException If one of the fields isn't of type "text".

1 method overrides SearchApiMultiQueryInterface::fields()
SearchApiMultiQuery::fields in ./search_api_multi.query.inc
Sets the fields that will be searched for the search keys.

File

./search_api_multi.query.inc, line 105

Class

SearchApiMultiQueryInterface
Interface representing a search query on multiple Search API indexes.

Code

public function fields($fields = NULL);