cbess/text-sherlock — Issue #5: DocNotFoundError during index update
Author: cbess
Created: 2012-01-16 15:07:00+00:00
State: open

During `main.py --index update` got error:

```
Cleaning index
Traceback (most recent call last):
File "main.py", line 118, in
run()
File "main.py", line 108, in run
indexer.index_path(path)
File "/opt/text-sherlock/core/sherlock/indexer.py", line 39, in index_path
idxr.clean_index()
File "/opt/text-sherlock/core/sherlock/indexer.py", line 99, in clean_index
self._index.clean_index()
File "/opt/text-sherlock/core/sherlock/backends/xapian_backend.py", line 104, in clean_index
self.index.delete_document(record.id)
xapian.DocNotFoundError: Can't delete non-existent document #242
```