cos-dbupdate.cxx
changeset 3 38269b62d856
parent 0 56281d90869c
child 4 64b70fc4f30e
--- 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) {