Issue #375 new

Error while rebuilding the index

Anonymous created an issue

ERROR 2013-11-13 20:32:26,525 whoosh_backend 15922 140735167304064

Exception while preparing object for update
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/haystack/backends/", line 191, in update
  File "/Library/Python/2.7/site-packages/whoosh/", line 1024, in update_document
    self._record("update_document", args, kwargs)
  File "/Library/Python/2.7/site-packages/whoosh/", line 1001, in _record
    getattr(self.writer, method)(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/whoosh/", line 477, in update_document
  File "/Library/Python/2.7/site-packages/whoosh/", line 729, in add_document
  File "/Library/Python/2.7/site-packages/whoosh/codec/", line 201, in start_doc
    raise Exception("Called start_doc when already in a doc")
Exception: Called start_doc when already in a doc

Comments (5)

  1. Matt Chaput repo owner
    • edited description

    Sorry, It's not possible to tell from the traceback what could cause this. Can you reduce this to a test case you can share?

  2. rogaha

    Hi Matt,

    I'm trying to rebuild_index. I have imported the data table from another DB and I'm trying to rebuild it after that. The command rebuild_index worked before I import that table data.

  3. yonzhang

    the issue reproduced in my side, the issue happened when I modify the file dict.txt. there is no issue if I use the original dict.txt file.

  4. Log in to comment