Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Search API Layout Block filter

No security coverage Under active development 4 sites

Part of the Search ecosystem · 125 projects

This module allows you to exclude specific Layout Builder blocks from being indexed by Search API. This prevents content from those blocks, such as related items, from appearing in search results for your main content. You can configure which search indices and which blocks should be excluded.

The Search API module provides a processor that allows indexing the rendered content of a page. This allows full text indexing, even for pages built with Layout Builder, where content may not live in a field on the entity but rather in a block added to the layout. This functionality is very cool and powerful, but there's a potential drawback that this module here attempts to resolve.

Imagine you have an article page built with Layout Builder that features a slider of related articles. Imagine these related articles are rendered as cards featuring a title, image and short description. When that article is indexed and a field on the index processes the rendered content, those titles and descriptions on the related articles slider get indexed too. For example, if your article is about burgers, and it features a related article that has "Pizza" in it's title or description, searching for "Pizza" will surface your article about burgers, even if "Pizza" appears nowhere in your article, except in the slider of related articles.

Wouldn't it be nice to somehow tell Search API: "When you index the rendered content for this page, ignore the related articles slider."? This module lets you do that.

Features

  • You can choose which search indices this module should work on.
  • You can choose which Layout Builder blocks should be excluded.

Post-Installation

Go to the config page, check the indices for which you want to exclude blocks, and the blocks that should be excluded. Check the "Enable filter" checkbox and save the configuration.
Content needs to be re-indexed afterwards. It is recommended to test the configuration on a single node, ideally on a non-production environment, before you proceed to queue all your content for re-indexing.

Additional Requirements

This module has a dependency on the Search API and Core Layout Builder modules.

Drupal 10–11

Ask your assistant about Search API Layout Block filter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jan 2026
Latest release
6 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.1 Stable 10–11 Mar 24, 2026
1.0.0 Stable 10–11 Mar 24, 2026
1.0.x-dev Dev 10–11 Jan 14, 2026