You are here

constant SearchApiEvents::INDEXING_ITEMS in Search API 8

The name of the event fired when preparing items for indexing.

This can be used to modify the items in some way before their fields are extracted and they are passed to the server.

Please be aware that generally preventing the indexing of certain items is deprecated. This is better done with processors, which can easily be configured and only added to indexes where this behaviour is wanted. If your module will use this event to reject certain items from indexing, please document this clearly to avoid confusion.

See also

\Drupal\search_api\Event\IndexingItemsEvent

File

src/Event/SearchApiEvents.php, line 103

Class

SearchApiEvents
Defines events for the Search API module.

Namespace

Drupal\search_api\Event

Code

const INDEXING_ITEMS = 'search_api.indexing_items';