django-haystackを使用してSolrでモデルのインデックスを作成しようとしていますが、次のエラーが返されます(rebuild_indexまたはupdate_indexを使用している場合):
Failed to add documents to Solr: [Reason: ERROR:unknown field 'django_ct']
Haystack-Searchの「はじめに」を段階的に説明しました。
私が使用している:
- Apache Solrの最新バージョン(1.4.1)
- django-haystackの最新バージョン
私のsearch_indexes.py:
from haystack.indexes import *
from haystack import site
from models import Entity
class EntityIndex(SearchIndex):
name = CharField(document=True)
def get_queryset(self):
return Entity.objects.all()
site.register(Entity, EntityIndex)