diff --git a/custom_search.module b/custom_search.module
index a9095aa..ecb51dc 100644
--- a/custom_search.module
+++ b/custom_search.module
@@ -349,7 +349,7 @@ function custom_search_submit($form, &$form_state) {
     // Apache Solr search
     $type = "search/apachesolr_search/$originalkeywords";
     $keys = array();
-    if (count($types) && !in_array('all', $types)) $keys[] = 'type:' . implode('%20type:', $types);
+    if (count($types) && !in_array('all', $types)) $keys[] = 'bundle:' . implode('%20type:', $types);
     if (module_exists('taxonomy') && count($terms)) $keys[] = 'tid:' . implode('%20tid:', $terms);
     if (count($keys)) {
       $args_delimiter = '?filters=';
