[Xapian-discuss] problem with multi-database search, xapian 0.9.10

Vasiliy Sergeev vasiliy.sergeev at sibers.com
Tue Feb 12 13:38:24 GMT 2008


Hi everyone!
I use xapian 0.9.10 with php-binding.
My DBs are divided for months. So when search goes through 2 month at 
the same time I use multi-database search.
But I faced a problem when search goes via 2 DBs:
27365280
28956512

Fatal error: Uncaught exception 'Exception' with message 
'DocNotFoundError: Document 2089165965 not found.' in 
/usr/local/newsserver/classes/Xapian/MSetIterator.php:35
Stack trace:
#0 /usr/local/newsserver/classes/Xapian/MSetIterator.php(35): 
msetiterator_get_document(Resource id #28)
#1 /usr/local/newsserver/classes/DocTest.php(42): 
Xapian_MSetIterator->get_document()
#2 /usr/local/newsserver/classes/DocTest.php(61): DocTest->__construct()
#3 {main}
  thrown in /usr/local/newsserver/classes/Xapian/MSetIterator.php on line 35

First goes a row with document ids, after that exception appears with 
absent document which id is about 10 times larger. The same search with 
this DBs separately goes fine. But multi-DB search makes error. As I 
know this problem means that something wrong is with mixed document ids, 
right?
I suspect 32bit overflowing. The same search in single DB results with 
document ids like 4236476938 which is strangely close to the MAX of 
32bit integer.
I plan to migrate to xapian 1.0.5 but I want to know why this problem 
appears to be sure it won't happen with latest xapian version.
Please, advise.

Thanks,
Vaso.




More information about the Xapian-discuss mailing list