Per xapian documentation, switching deprecated flush() call for commit() call