Index: Solr_Base_Query.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/Solr_Base_Query.php,v
retrieving revision 1.1.2.8
diff -u -p -r1.1.2.8 Solr_Base_Query.php
--- Solr_Base_Query.php	27 Nov 2008 18:47:58 -0000	1.1.2.8
+++ Solr_Base_Query.php	19 Mar 2009 18:41:01 -0000
@@ -67,10 +67,12 @@ class Solr_Base_Query {
       return implode(' ', array_filter(explode(' ', $values['#value']), 'trim'));
     }
     else {
-      // if the field value has spaces in it, wrap it in double quotes.
-      if (count(explode(' ', $values['#value'])) > 1) {
-        $values['#value'] = '"'. $values['#value']. '"';
+      // If the field value has spaces, or : in it, wrap it in double quotes.
+      // unless it is a range query.
+      if (preg_match('/[ :]/', $field['#value']) && !preg_match('/\[\S+ TO \S+\]/', $field['#value'])) {
+        $field['#value'] = '"'. $field['#value']. '"';
       }
+      
       return $values['#name']. ':'. $values['#value'];
     }
   }
