diff -r c9188930a16f -r 38269b62d856 cos-dbupdate.cxx --- a/cos-dbupdate.cxx Sat Feb 12 13:48:14 2011 +0300 +++ b/cos-dbupdate.cxx Sat Feb 12 15:10:08 2011 +0300 @@ -47,7 +47,7 @@ break; Xapian::Document newdocument; newdocument.set_data(fname); - newdocument.add_posting("FILENAME="+fname, 0); + newdocument.add_posting("FILENAME:"+fname, 0); int i=1; while (1) { string term; @@ -57,7 +57,7 @@ cout << "TERM <" << term << ">" << endl; newdocument.add_posting(term, i++); } - database.replace_document("FILENAME="+fname,newdocument); + database.replace_document("FILENAME:"+fname,newdocument); cout << "EOFILE <" << fname << ">" << endl; } } catch(const Xapian::Error &error) {