Skip to main content
Drupal is a registered trademark of Dries Buytaert
Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Usage Milestone: Menu Block Module menu_block crossed 1,000 active installs. Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Release: Arguments 1.0.12 Minor update available for module arguments (1.0.12). Release: Thunder 8.4.3 Minor update available for distribution thunder (8.4.3). Release: Thunder 8.4.2 Minor update available for distribution thunder (8.4.2). Release: Views HTTP Client 1.0.1 Minor update available for module views_http_client (1.0.1). Release: Copyright Footer 4.0.0-alpha2 New alpha version released for module copyright_footer (4.0.0-alpha2). Release: Views HTTP Client 1.0.0 Initial release available for module views_http_client (1.0.0)! Security Coverage: Entity Add Another Module entity_add_another now has official Drupal security advisory coverage.

This module allows site administrators to choose which content types are indexed and displayed in Drupal's native search results. It provides a simple configuration form to manage this exclusion list.

The Exclude Content Types from Search module allows site administrators to exclude selected content types from Drupal's native search system.

The module provides a simple configuration form where administrators can select the content types that should not be indexed or displayed in native content search results.

## Features

- Excludes selected content types from Drupal's native search index.
- Prevents excluded content types from appearing in native search results.
- Removes existing index entries when the configuration is saved.
- Allows previously excluded content types to be indexed again.
- Supports multilingual content.
- Provides a dedicated administrative permission.
- Requires no additional contributed modules.

## Requirements

This module requires the following Drupal core modules:

- Node
- Search

The module only affects Drupal's native Search module. It does not integrate with Search API, Solr, Elasticsearch, or external search providers.

## Installation

Install the module as you would normally install a contributed Drupal module.

Using Drush:

`drush en exclude_content_types_search -y`

Clear Drupal's caches after installation:

`drush cr`

## Configuration

1. Navigate to Configuration > Search and metadata > Exclude content types from search.
2. Select the content types that should be excluded.
3. Save the configuration.
4. Run cron to process any pending native search indexing.

The configuration form is also available at:

`/admin/config/search/exclude-content-types`

## Permissions

The module provides the following permission:

- Administer excluded content types in native search

Only trusted administrative roles should receive this permission.

## Uninstallation

Uninstalling the module removes its configuration. Content previously excluded by the module can be indexed again during subsequent cron runs.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Jul 17, 2026