<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -274,9 +274,6 @@ class SearchBackend(BaseSearchBackend):
             if field_class.document is True:
                 content_field_name = field_name
             
-            if field_class.indexed is False:
-                field_data['indexed'] = 'false'
-            
             # DRL_FIXME: Perhaps move to something where, if none of these
             #            checks succeed, call a custom method on the form that
             #            returns, per-backend, the right type of storage?
@@ -294,6 +291,15 @@ class SearchBackend(BaseSearchBackend):
             elif isinstance(field_class, MultiValueField):
                 field_data['multi_valued'] = 'true'
             
+            # Do this last to override `text` fields.
+            if field_class.indexed is False:
+                field_data['indexed'] = 'false'
+                
+                # If it's text and not being indexed, we probably don't want
+                # to do the normal lowercase/tokenize/stemming/etc. dance.
+                if field_data['type'] == 'text':
+                    field_data['type'] = 'string'
+            
             schema_fields.append(field_data)
         
         return (content_field_name, schema_fields)</diff>
      <filename>haystack/backends/solr_backend.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a2443adba79afd23716f30deb85ffd31cbab3f1e</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Lindsley</name>
    <email>daniel@toastdriven.com</email>
  </author>
  <url>http://github.com/toastdriven/django-haystack/commit/689ec28a0822519843f1cf88b9dcc8ae7959b310</url>
  <id>689ec28a0822519843f1cf88b9dcc8ae7959b310</id>
  <committed-date>2009-11-04T08:22:50-08:00</committed-date>
  <authored-date>2009-11-04T08:22:50-08:00</authored-date>
  <message>Fixed a bug in the `build_schema` where fields that aren't supposed to be indexed are still getting post-procesed by Solr. Thanks to Jonathan Slenders for the report.</message>
  <tree>703b2a5b43a5d4ee54915b2c42c7425b1f244e5b</tree>
  <committer>
    <name>Daniel Lindsley</name>
    <email>daniel@toastdriven.com</email>
  </committer>
</commit>
