You are here

public function ItemInterface::setFieldsExtracted in Search API 8

Sets the field extraction state of this item.

Can be used to tell an item that all its fields have been set already and it shouldn't attempt to extract more when getFields() is called. Or that some of its extracted fields have been removed and that it should extract them again when necessary.

Parameters

bool $fields_extracted: TRUE if all field values have been extracted already for this item. FALSE otherwise.

Return value

$this

1 method overrides ItemInterface::setFieldsExtracted()
Item::setFieldsExtracted in src/Item/Item.php
Sets the field extraction state of this item.

File

src/Item/ItemInterface.php, line 172

Class

ItemInterface
Represents a search item being indexed or returned as a search result.

Namespace

Drupal\search_api\Item

Code

public function setFieldsExtracted($fields_extracted);