--- apachesolr.module	2008-12-31 20:14:40.000000000 +0100
+++ apachesolr.module	2009-01-16 19:00:40.000000000 +0100
@@ -84,6 +84,12 @@ function apachesolr_settings() {
     '#default_value' => variable_get('apachesolr_failure', 'show_error'),
     '#description' => t('What to display if ApacheSolr search is not available.'),
   );
+  $form['apachesolr_wildcard'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Solr wildcard'),
+    '#default_value' => variable_get('apachesolr_wildcard', '*'),
+    '#description' => t('Wildcard to show all results from the solr index.'),
+  );  
   return system_settings_form($form);
 }
 
@@ -978,6 +984,10 @@ function apachesolr_current_query($keys 
   if (empty($keys)) {
     $keys = search_get_keys();
   }
+  //when wildcard is used, use empty $keys
+  if ($keys == variable_get('apachesolr_wildcard', '*')) {
+    $keys = '';
+  }  
   if (empty($filters) && !empty($_GET['filters'])) {
     $filters = check_plain($_GET['filters']);
   }
