Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
The Search Query Exclude module, allows site administrators to easily control the search results by providing a query to exclude nodes from the search result.
Use Cases:
1) Exclude nodes with php code using the default query provided
select nid from node_revisions where body like '%<?php%' group by nid
2) Exclude test nodes using the query
select nid from node_revisions where title like '%test%' OR body like '%test%' group by nid
Inspired from: http://www.blinkreaction.com/blog/be-aware-nodes-with-php-code-and-drupa...
Code taken from: http://www.lullabot.com/articles/hiding-content-drupals-search-system
Project information
- Module categories: Site Search, Developer Tools
- 1 site reports using this module
- Created by TechNikh on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.