--- a/src/rcldb/rcldb_p.h
+++ b/src/rcldb/rcldb_p.h
@@ -65,6 +65,8 @@
size_t txtlen;
};
#endif // IDX_THREADS
+
+class TextSplitDb;
// A class for data and methods that would have to expose
// Xapian-specific stuff if they were in Rcl::Db. There could actually be
@@ -141,6 +143,16 @@
/** Check if doc is indexed by term */
bool hasTerm(const string& udi, int idxi, const string& term);
+ /** Update existing Xapian document for pure extended attrs change */
+ bool docToXdocXattrOnly(TextSplitDb *splitter, const string &udi,
+ Doc &doc, Xapian::Document& xdoc);
+ /** Remove all terms currently indexed for field defined by idx prefix */
+ bool clearField(Xapian::Document& xdoc, const string& pfx,
+ Xapian::termcount wdfdec);
+
+ /** Check if term wdf is 0 and remove term if so */
+ bool clearDocTermIfWdf0(Xapian::Document& xdoc, const string& term);
+
/** Compute list of subdocuments for a given udi. We look for documents
* indexed by a parent term matching the udi, the posting list for the
* parentterm(udi) (As suggested by James Aylett)