? foo.patch
Index: apachesolr_views.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr_views/apachesolr_views.views.inc,v
retrieving revision 1.17
diff -u -p -r1.17 apachesolr_views.views.inc
--- apachesolr_views.views.inc	19 May 2010 18:47:29 -0000	1.17
+++ apachesolr_views.views.inc	30 Jul 2010 05:34:04 -0000
@@ -29,6 +29,9 @@ function apachesolr_views_views_handlers
       'apachesolr_views_handler_argument_tid' => array(
         'parent' => 'apachesolr_views_handler_argument',
       ),
+      'apachesolr_views_handler_argument_number_decimal' => array(
+        'parent' => 'views_handler_argument_numeric',
+      ),
       'apachesolr_views_handler_field' => array(
         'parent' => 'views_handler_field_node',
       ),
@@ -294,6 +297,15 @@ function apachesolr_views_views_data() {
           ),
         );
       }
+      elseif ($field['field_type'] == 'number_decimal') {
+        $data['apachesolr_' . $base_table][apachesolr_index_key($field)] = array(
+          'title' => t($field['label']),
+          'help' => t('CCK Mapping for @fieldname', array('@fieldname' => $field['field_name'])),
+          'argument' => array(
+            'handler' => 'apachesolr_views_handler_argument',
+          ),
+        );
+      }
     }
   }
   
@@ -367,3 +379,10 @@ function apachesolr_views_plugins_alter(
   $plugins['row']['node']['base'][] = 'apachesolr_node';
 }
 
+/**
+ * Implementation of hook_apachesolr_cck_field_mappings().
+ * Enables support for CCK numeric fields
+ */
+function apachesolr_views_apachesolr_cck_fields_alter(&$mappings) {
+  $mappings['number_decimal']['number'] = array('callback' => '', 'index_type' => 'float');
+}
Index: apachesolr_views_query.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr_views/apachesolr_views_query.inc,v
retrieving revision 1.31
diff -u -p -r1.31 apachesolr_views_query.inc
--- apachesolr_views_query.inc	19 May 2010 18:47:29 -0000	1.31
+++ apachesolr_views_query.inc	30 Jul 2010 05:34:04 -0000
@@ -673,9 +673,13 @@ class apachesolr_views_query extends vie
   protected function part_of_facet_block($argument) {
     $facet_arguments = array(
       'tid',
-      'type',
-      'uid',
     );
+    foreach (apachesolr_get_enabled_facets() as $module => $module_facets) {
+      foreach($module_facets as $delta => $facet_field) {
+        $facet_arguments[] = $facet_field;
+      }
+    }
+
     // we use field instead of real_field
     // because we want these specific ones defined in
     // apachesolr_views.views.inc
@@ -808,6 +812,9 @@ class apachesolr_views_query extends vie
       return $term;
     }
     
+    if (strpos($term, ' TO ') !== FALSE) {
+      return $term;
+    }
     if (strpos($term, ' ') !== FALSE) {
       return Drupal_Apache_Solr_Service::phrase($term);
     }
