To add simple filters on your search query with apachesolr can be easily done through hook_apachesolr_query_alter. You'll find the documentation on path/to/apachesolr/apachesolr.api.php. An example would be: <?php function module_apachesolr_query_alter($query) { $query->addFilter('bundle', 'page'); // To filter by either page or article content type $query->addFilter('bundle', 'page OR article'); } For adding subqueries (which is a bit different), you may do this: <?php function module_apachesolr_query_alter($query) { $sometid = 1; $filter = new SolrFilterSubQuery('A...