title: Fields in apache solr response are multivalued when they should be singular
body: <p>I'm experiencing a problem with Apache Solr where I'm receiving fields wrapped in lists in JSON responses but they should be singular. Here is an exerpt from schema.xml, two example fields giving me a problem are <code>django_ct</code> and <code>django_id</code>:</p>
  
  <pre><code>  &lt;fields&gt;
      &lt;!-- general --&gt;
      &lt;field name="id" type="string" indexed="true" stored="true" multiValued="false" required="true"/&gt;
      &lt;field name="django_ct" type="string" indexed="true" stored="true" multiValued="false"/&gt;
      &lt;field name="django_id" type="string" indexed="true" stored="true" multiValued="false"/&gt;
  </code></pre>
  
  <p>Here is an example of how data is posted to Solr:</p>
  
  <pre><code>&lt;doc&gt;
      &lt;field name="id"&gt;search.productcategory.3&lt;/field&gt;
      &lt;field name="gender"&gt;M&lt;/field&gt;
      &lt;field name="name"&gt;OBQYHSOQLWOUEHRMPSDI&lt;/field&gt;
      &lt;field name="text"&gt;M\nOBQYHSOQLWOUEHRMPSDI&lt;/field&gt;
      &lt;field name="django_id"&gt;3&lt;/field&gt;
      &lt;field name="django_ct"&gt;search.productcategory&lt;/field&gt;
  &lt;/doc&gt;
  </code></pre>
  
  <p>And here is an example of the file stored in solr:</p>
  
  <pre><code>  "response": {
      "numFound": 1,
      "start": 0,
      "docs": [
        {
          "django_ct": [
            "search.productcategory"
          ],
          "name": [
            "Example"
          ],
          "text": [
            "Male\nExample"
          ],
          "id": "search.productcategory.2",
          "gender": [
            "Male"
          ],
          "django_id": [
            2
          ],
          "_version_": 1502081283634757600
        }
      ]
    }
  </code></pre>
  
  <p>What is causing these fields to be wrapped in lists? In the schema, the <code>multiValued</code>attribute for these fields is set to false. Apart from creating the core and replacing schema.xml everything else is straight out of the box. I'm accessing Solr using Haystack (a Django plugin), the code expects to receive single values for these fields but is completely broken by this. Tracing back the problem it seems to be due to how Solr is configured.</p>
  
  <p>Edit: Here are the complete contents of solr.log, all of this was logged after starting the server, running a couple of example queries had no output:</p>
  
  <pre><code>INFO  - 2015-05-27 08:38:12.563; [   ] org.eclipse.jetty.server.Server; jetty-8.1.10.v20130312
  INFO  - 2015-05-27 08:38:12.586; [   ] org.eclipse.jetty.deploy.providers.ScanningAppProvider; Deployment monitor /Users/sampeka/solr-5.1.0/server/contexts at interval 0
  INFO  - 2015-05-27 08:38:12.593; [   ] org.eclipse.jetty.deploy.DeploymentManager; Deployable added: /Users/sampeka/solr-5.1.0/server/contexts/solr-jetty-context.xml
  INFO  - 2015-05-27 08:38:13.629; [   ] org.eclipse.jetty.webapp.StandardDescriptorProcessor; NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
  INFO  - 2015-05-27 08:38:13.682; [   ] org.apache.solr.servlet.SolrDispatchFilter; SolrDispatchFilter.init()WebAppClassLoader=1121453612@42d8062c
  </code></pre>