Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Activity

Total releases
3
First release
Jan 2026
Latest release
3 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.1 Stable Mar 24, 2026
1.0.0 Stable Mar 24, 2026
1.0.x-dev Dev Jan 14, 2026