*
* The directory document is indexed with a single prefixed term:
*
- * directory: The directory path (an absolute path)
+ * directory: The directory path (relative to the database path)
*
* and has a single value:
*
{ "type", "T" },
{ "reference", "XREFERENCE" },
{ "replyto", "XREPLYTO" },
- /* XXX: Need a flag day to rename XTIMESTAMP. */
- { "directory", "XTIMESTAMP" },
+ { "directory", "XDIRECTORY" },
};
prefix_t BOOLEAN_PREFIX_EXTERNAL[] = {
return NOTMUCH_STATUS_READONLY_DATABASE;
}
+ path = _notmuch_database_relative_path (notmuch, path);
+
db = static_cast <Xapian::WritableDatabase *> (notmuch->xapian_db);
db_path = directory_db_path (path);