Index: scriptindex.cc
===================================================================
RCS file: /usr/data/cvs/xapian/xapian-applications/omega/scriptindex.cc,v
retrieving revision 1.24
diff -p -u -r1.24 scriptindex.cc
--- scriptindex.cc	15 Aug 2004 00:51:42 -0000	1.24
+++ scriptindex.cc	20 Aug 2004 19:26:39 -0000
@@ -389,6 +389,7 @@ index_file(istream &stream, Xapian::Writ
 			// to get the unique term.
 			string t = i->get_string_arg();
 			t += value;
+			cout << "UNIQUE on term `" << t << "'" << endl;
 again:
 			try {
 			    Xapian::PostingIterator p = database.postlist_begin(t);
@@ -401,8 +402,9 @@ again:
 			    cout << "E: " << e.get_msg() << endl;
 			    database.flush();
 			    database.reopen();
-			    goto again;
+			    goto again; 
 			}
+			cout << "UNIQUE got docid " << docid << endl;
 			break;
 		    }
 		    case Action::VALUE:
@@ -459,9 +461,12 @@ again:
 		}
 	    }
 	    if (this_field_is_content) seen_content = true;
+	    cout << "this_field_is_content = " << this_field_is_content << endl;
+	    cout << "seen_content = " << seen_content << endl;
 	    if (line.empty() || line == "\r") break;
 	}
 
+	cout << "about to add/del/replace, seen_content = " << seen_content << endl;
 	// If we haven't seen any fields (other than unique identifiers)
 	// the document is to be deleted.
 	if (!seen_content) {
