Index: luceneapi.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/luceneapi/luceneapi.module,v
retrieving revision 1.61.2.133
diff -u -p -r1.61.2.133 luceneapi.module
--- luceneapi.module	26 Feb 2010 18:44:01 -0000	1.61.2.133
+++ luceneapi.module	12 Jul 2010 17:44:59 -0000
@@ -1564,7 +1564,7 @@ function luceneapi_find(LuceneAPI_Search
 
   // caches data if caching is enabled and number of results are below threshold
   $threshold = luceneapi_variable_get($module, 'cache_threshold');
-  if ($caching_enabled && !$results_cached && $threshold && count($hits) <= $threshold) {
+  if ($caching_enabled && !$results_cached && ($threshold == 0 || count($hits) <= $threshold)) {
     if ($max_cached = luceneapi_variable_get($module, 'number_cached')) {
       $hits = array_slice($hits, 0, $max_cached);
     }
