daevaorn / djapian

High level Xapian integration for Django
Other
6 stars 3 forks source link

Exception Type: KeyError #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After updating the index we have problems when searching for some keywords:

Exception Type:     KeyError
Exception Location:  
/usr/local/lib/python2.6/dist-packages/Djapian-2.3-py2.6.egg/djapian/resultset.p
y
in _do_prefetch, line 151

Can anybody help?

When deleting and rebuilding the index everything works fine...

Thx Hans

Original issue reported on code.google.com by braxmeie...@gmail.com on 13 Nov 2009 at 12:18

GoogleCodeExporter commented 9 years ago
Please provide full traceback, source code snippet and indexer definition. It 
will
help to solve problem.

Original comment by daevaorn on 13 Nov 2009 at 5:32

GoogleCodeExporter commented 9 years ago
Hi daevaorn,

Thanks for your reply.

I think I found the explanation for our key error: We changed our model, but 
did not
update the djapian_change table. 

So if anyone get's an KeyError or can't execute the command ./manage.py index 
then

first delete the djapian_change table, execute the command ./manage.py syncdb 
and 
at last rebuild the index with the command ./manage.py index --rebuild

Regards, Hans

Original comment by braxmeie...@gmail.com on 13 Nov 2009 at 8:55

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 14 Nov 2009 at 4:21