title: why django haystack spelling_suggestion() is always None
body: <p>I need to integrate spell check mechanism in Django application. I found that Haystack has "Spelling Suggestions" method to use it. So I have installed latest dev version(2.0.0 beta) of haysatck with Django(1.4.1).</p>
  
  <p>I have downloaded apache-solr-3.6.0 and configured as like in <a href="http://django-haystack.readthedocs.org/en/latest/installing_search_engines.html" rel="nofollow">doc</a>. </p>
  
  <p>schema.xml</p>
  
  <blockquote>
    <p>./manage.py build_solr_schema > solr-3.6.0/example/solr/conf/schema.xml</p>
  </blockquote>
  
  <p>myapps/mysearch_index.py</p>
  
  <pre><code>from haystack import indexes
  
  class MovieIndex(indexes.SearchIndex, indexes.Indexable):
      text = indexes.CharField(document=True,use_template=True)
      # other field definition
      suggestions = indexes.FacetCharField()
  
      def prepare(self, obj):
          prepared_data = super(NoteIndex, self).prepare(obj)
          prepared_data['suggestions'] = prepared_data['text']
          return prepared_data
  </code></pre>
  
  <p>solrconfig.xml</p>
  
  <pre><code>&lt;searchComponent name="spellcheck" class="solr.SpellCheckComponent"&gt;
      &lt;str name="queryAnalyzerFieldType"&gt;textSpell&lt;/str&gt;
      &lt;lst name="spellchecker"&gt;
          &lt;str name="name"&gt;default&lt;/str&gt;
          &lt;str name="field"&gt;suggestions&lt;/str&gt;
          &lt;str name="spellcheckIndexDir"&gt;./spellchecker&lt;/str&gt;
          &lt;str name="accuracy"&gt;0.7&lt;/str&gt;
          &lt;str name="buildOnCommit"&gt;true&lt;/str&gt;
      &lt;/lst&gt;
  &lt;/searchComponent&gt;
  &lt;requestHandler name="/spell" class="solr.SearchHandler"&gt;
      &lt;lst name="defaults"&gt;
          &lt;str name="spellcheck.dictionary"&gt;default&lt;/str&gt;
          &lt;str name="spellcheck.onlyMorePopular"&gt;false&lt;/str&gt;
          &lt;str name="spellcheck.extendedResults"&gt;false&lt;/str&gt;
          &lt;str name="spellcheck.count"&gt;1&lt;/str&gt;
      &lt;/lst&gt;
      &lt;arr name="last-components"&gt;
          &lt;str&gt;spellcheck&lt;/str&gt;
      &lt;/arr&gt;
  &lt;/requestHandler&gt;
  </code></pre>
  
  <p>settings.py</p>
  
  <pre><code>HAYSTACK_CONNECTIONS = {
    'default': {
      'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
      'URL': 'http://127.0.0.1:8983/solr',
      'TIMEOUT': 60 * 5,
      'INCLUDE_SPELLING': True,
    },
  }
  </code></pre>
  
  <p>Restart the solr search engine</p>
  
  <pre><code>cd examples/solr
  java -jar start.jar
  </code></pre>
  
  <p>Rebuild the index</p>
  
  <pre><code>python manage.py rebuild_index
  # 9905 entries indexed
  </code></pre>
  
  <p>Testing through django shell</p>
  
  <pre><code>In [1]: from haystack.query import SearchQuerySet
  In [2]: len(SearchQuerySet())
  Out[3]: 9905
  In [4]: sqs = SearchQuerySet().auto_query('spider')
  In [5]: suggestion = sqs.spelling_suggestion()
  In [6]: print suggestion
  None
  In [7]:
  </code></pre>
  
  <p>I have gone though several bolgs and forum and tried of lot of settings, But spelling_suggestion is always None.</p>
  
  <p>Can anyone help me?</p>
  
  <p>Thanks for reading this post</p>