You are here

public function SearchApiIndex::preprocessIndexItems in Search API 7

Preprocess data items for indexing. Data added by data alter callbacks will be available on the items.

Typically, a preprocessor will execute its preprocessing (e.g. stemming, n-grams, word splitting, stripping stop words, etc.) only on the items' fulltext fields. Other fields should usually be left untouched.

Parameters

array $items: An array of items to be preprocessed for indexing.

Return value

SearchApiIndex The called object.

1 call to SearchApiIndex::preprocessIndexItems()
SearchApiIndex::index in includes/index_entity.inc
Indexes items on this index.

File

includes/index_entity.inc, line 681
Contains SearchApiIndex.

Class

SearchApiIndex
Class representing a search index.

Code

public function preprocessIndexItems(array &$items) {
  foreach ($this
    ->getProcessors() as $processor) {
    $processor
      ->preprocessIndexItems($items);
  }
  return $this;
}