Search Query Exclude

Categories

Component ID

1426494

Component name

Search Query Exclude

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

480

Component created

Component changed

Component body

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