Django Haystack:whoosh.index.IndexVersionError:Can';t读取格式-111

Django Haystack:whoosh.index.IndexVersionError:Can';t读取格式-111,django,django-haystack,whoosh,Django,Django Haystack,Whoosh,当我运行python manage.py rebuild_index时,使用haystack2.0.0和whoosh2.4.0设置django1.7得到以下错误: Removing all documents from your index because you said so. Traceback (most recent call last): File "manage.py", line 11, in <module> execute_from_command_l

当我运行python manage.py rebuild_index时,使用haystack
2.0.0
和whoosh
2.4.0
设置django
1.7
得到以下错误:

Removing all documents from your index because you said so.
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_from_command_line(sys.argv)
  File "/home/ubuntu/webapps/djangoenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()

  ...

  File "/home/ubuntu/webapps/djangoenv/local/lib/python2.7/site-packages/whoosh/filedb/filestore.py", line 54, in open_index
    return FileIndex(storage, schema=schema, indexname=indexname)
  File "/home/ubuntu/webapps/djangoenv/local/lib/python2.7/site-packages/whoosh/filedb/fileindex.py", line 220, in __init__
    TOC.read(self.storage, self.indexname, schema=self._schema)
  File "/home/ubuntu/webapps/djangoenv/local/lib/python2.7/site-packages/whoosh/filedb/fileindex.py", line 113, in read
    raise IndexVersionError("Can't read format %s" % version, version)
whoosh.index.IndexVersionError: Can't read format -111
从索引中删除所有文档,因为您这么说了。
回溯(最近一次呼叫最后一次):
文件“manage.py”,第11行,在
从命令行(sys.argv)执行命令
文件“/home/ubuntu/webapps/djangenv/local/lib/python2.7/site-packages/django/core/management/_-init____;.py”,第385行,从命令行执行
utility.execute()
...
文件“/home/ubuntu/webapps/djangoenv/local/lib/python2.7/site packages/whoosh/filedb/filestore.py”,第54行,在open_索引中
返回文件索引(存储,schema=schema,indexname=indexname)
文件“/home/ubuntu/webapps/djangoenv/local/lib/python2.7/site packages/whoosh/filedb/fileindex.py”,第220行,在__
TOC.read(self.storage,self.indexname,schema=self.\u schema)
文件“/home/ubuntu/webapps/djangoenv/local/lib/python2.7/site packages/whoosh/filedb/fileindex.py”,第113行,已读
raise IndexVersionError(“无法读取格式%s”%version,version)
whoosh.index.IndexVersionError:无法读取格式-111

文件夹whoosh_索引存在。

删除了索引文件夹,再次运行索引修复了该错误