diff --git sites/all/modules/apachesolr_attachments/apachesolr_attachments.module sites/all/modules/apachesolr_attachments/apachesolr_attachments.module
index 0c321b5..aaf4b72 100644
--- sites/all/modules/apachesolr_attachments/apachesolr_attachments.module
+++ sites/all/modules/apachesolr_attachments/apachesolr_attachments.module
@@ -395,3 +395,36 @@ function apachesolr_attachments_remove_attachments_from_index($nid) {
     watchdog('Apache Solr Attachments', nl2br(check_plain($e->getMessage())), NULL, WATCHDOG_ERROR);
   }
 }
+
+/**
+ * Implements hook_apachesolr_field_mappings().
+ */
+function apachesolr_attachments_apachesolr_field_mappings() {
+  $mappings = array(
+    'file' => array(
+      'display_callback' => 'apachesolr_attachments_file_display_callback',
+      'indexing_callback' => 'apachesolr_attachments_file_indexing_callback',
+      'index_type' => 'string',
+    ),
+  );
+  return $mappings;
+}
+
+function apachesolr_attachments_file_indexing_callback($entity, $field_name, $index_key, $field_info) {
+  $fields = array();
+  if (!empty($entity->$field_name)) {
+    $field = $entity->$field_name;
+    list($lang, $values) = each($field);
+    foreach ($values as $fval) {
+      $fields[] = array(
+        'key' => $index_key,
+        'value' => apachesolr_clean_text($fval['filemime']),
+      );
+    }
+  }
+  return $fields;
+}
+
+function apachesolr_attachments_file_display_callback($facet, $options) {
+  return $facet;
+}
