title: Django-haystack returns results with "simple" backend, but not with "whoosh"
body: <p>I'm trying to integrate a search with django-haystack,<br>
  While it works well with the "sample" backend, when replacing the backend with whoosh it always returns 0 results.</p>
  
  <p>settings.py:</p>
  
  <pre><code>HAYSTACK_DEFAULT_OPERATOR = 'AND'
  HAYSTACK_SITECONF = 'search_sites'
  HAYSTACK_SEARCH_ENGINE = 'whoosh'
  HAYSTACK_SEARCH_RESULTS_PER_PAGE = 20
  HAYSTACK_WHOOSH_PATH = os.path.join(PROJECT_ROOT, 'search_index')
  </code></pre>
  
  <p>search_sites.py</p>
  
  <pre><code>import haystack
  haystack.autodiscover()
  </code></pre>
  
  <p>profiles/search_indexes.py:</p>
  
  <pre><code>from haystack import indexes
  from haystack import site
  
  from profiles.models import Profile
  
  
  class ProfileIndex(indexes.SearchIndex):
      text = indexes.CharField(document=True, use_template=True)
  
      def index_queryset(self):
          """Used when the entire index for model is updated."""
          return Profile.objects.all()
  
  site.register(Profile, ProfileIndex)
  </code></pre>
  
  <p>templates/search/indexes/profiles/profile_text.txt:</p>
  
  <pre><code>{{ profile.name }}
  {{ profile.description }}
  </code></pre>
  
  <p>Running <code>python manage.py rebuild_index</code> returns:</p>
  
  <pre><code>All documents removed.
  Indexing 60 profiles.
  </code></pre>
  
  <p>When running the following in the shell:</p>
  
  <pre><code>&gt;&gt;&gt; from haystack.query import SearchQuerySet
  &gt;&gt;&gt; sqs = SearchQuerySet().all()
  &gt;&gt;&gt; sqs.count()
  0
  </code></pre>
  
  <p>When switching whoosh with the "simple" backend, everything works fine and 60 results are returned.</p>
  
  <p>Everything seems to be set up correctly, according to <a href="http://docs.haystacksearch.org/dev/tutorial.html" rel="nofollow" title="Getting Started with Haystack">Getting Started with Haystack</a>, and <a href="http://docs.haystacksearch.org/dev/debugging.html#no-results-found-on-the-web-page" rel="nofollow" title="Debugging Haystack">Debugging Haystack</a>.<br>
  I tried installing previous version of Whoosh, without any success.</p>
  
  <p>Feeling very stupid at this point, any help will be really appreciated.</p>
  
  <p>Package Versions:</p>
  
  <pre><code>python==2.7  
  Django==1.3.1  
  Whoosh==2.3.2  
  django-haystack==1.2.6  
  </code></pre>
  
  <hr>
  
  <p><strong>Updates:</strong></p>
  
  <ul>
  <li>Downgrading Whoosh to 1.8.4 didn't help.</li>
  <li>When using the basic search template as described at the <a href="http://docs.haystacksearch.org/dev/tutorial.html#search-template" rel="nofollow">Haystack Tutorial</a>, all results are returned for 1 letter queries, and 0 results for other searches.</li>
  </ul>