Hello, I found this bug many times. When I call the delete_document() and pass the term parameter to delete some matched documents from the exists Xapian Database, It caught the some error, the following is the orignal error message on the screen:
terminate called after throwing an instance of 'std::bad_alloc'
Abort trap: 6 (core dumped)
But once delete_document() call matched fewer documents, It have not errors. So I guess that when delete many documents(about 10,000 or more) by a term, the Xapian will be terminated. :(
Is there a code bug? How can I solve this problem? thanks