title: Django - Haystack in two differents apps
body: <p>I am using Haystack in one app and its perfect. It is indexing everything that I need. But, now I created another app, with different model and content, and I would like to Haystack index it. The idea is to create two different "search" links on my website, one for each app. </p>
  
  <p>However, when I add the second configuration to haystack index it, I get some problem... </p>
  
  <p>I created a new search_index.py (inside my new app) with the following content:</p>
  
  <pre><code>import datetime
  from haystack.indexes import *
  from haystack import site
  from oportunity.models import Oportunity
  
  
  class OportunityIndex(SearchIndex):
      title = CharField(document=True, use_template=True)
      body = CharField()
      date= DateTimeField()
  
      def index_queryset(self):
          return Oportunity.objects.filter(date=datetime.datetime.now())
  
  
  site.register(Oportunity, OportunityIndex)
  </code></pre>
  
  <p>but, when I run python manage.py rebuild_index
  I get the following error:</p>
  
  <blockquote>
    <p>line 94, in all_searchfields
        raise SearchFieldError("All SearchIndex fields with 'document=True' must use the same fieldname.")
    haystack.exceptions.SearchFieldError: All SearchIndex fields with
    'document=True' must use the same fieldname.</p>
  </blockquote>