Developer documentation

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

This section contains documentation for developers, explaining the Search API's basic architecture and giving examples of how certain extensions for it can be developed.

Basic architecture and component interaction

This page describes the Search API's basic architecture, its different components and how they interact.

Custom item types / datasource controllers

Adding new item types allows you to index items that aren't currently supported by the Search API. By default, only entity types (and only

Executing a search in code

Explains the code to use for executing a search with the Search API in code

Add fields to a search index

How to add fields to a search index with custom code

Guide maintainers

drunken monkey's picture