/** * Sets the fields that will be searched for the search keys. * * If this is not called, all fulltext fields will be searched. * * @param array $fields * An array containing fulltext fields that should be searched. * * @return $this * * @throws \Drupal\search_api\SearchApiException * Thrown if one of the fields isn't of type "text". * * @see \Drupal\search_api\Query\QueryInterface::setFulltextFields() */ public function setFulltextFields($fields = NULL) { if (!$this->shouldAbort()) { $this->query->setFulltextFields($fields); } return $this; }