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.

Search exclude nid

579 sites Security covered
View on drupal.org

This module allows you to exclude specific nodes from your site's search results by entering their node IDs into a list. This prevents pages that display dynamic content, like node listings, from appearing as unwanted search results.

Sometimes it's necessary to exclude single nodes from the site search. An example use case would be, if you use the module "Insert view" to insert views into the body text of a node, which outputs a list of other nodes. A common problem is here, that the listing node is found as a second unwanted search result as it displays content of the listed item as its own (body) content. With this tiny module you can exclude these listing pages or other unwanted node pages from the search result by entering their node ids into an exclusion list.

This module does exactly this and nothing else.

Alternative modules, which offer similiar (much more) functionality:
http://drupal.org/project/custom_search
http://drupal.org/project/search_config

If you need the same functionality for Search API have a look at:
https://www.drupal.org/project/search_api_exclude

Credits

This module was built with the support of Sparks Interactive - a New Zealand company supporting the Drupal Community!

Activity

Total releases
3
First release
Sep 2025
Latest release
8 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
2.0.1 Stable Oct 27, 2025
2.0.0 Stable Sep 30, 2025
2.0.0-alpha3 Pre-release Sep 29, 2025