Settings Screenshot

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

Releases