aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/directory.cc4
-rw-r--r--lib/message.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/directory.cc b/lib/directory.cc
index 461c0cc3..bb6314ad 100644
--- a/lib/directory.cc
+++ b/lib/directory.cc
@@ -213,7 +213,7 @@ _notmuch_directory_create (notmuch_database_t *notmuch,
Xapian::docid parent_id;
char *term = talloc_asprintf (local, "%s%s",
_find_prefix ("directory"), db_path);
- directory->doc.add_term (term);
+ directory->doc.add_term (term, 0);
directory->doc.set_data (path);
@@ -225,7 +225,7 @@ _notmuch_directory_create (notmuch_database_t *notmuch,
term = talloc_asprintf (local, "%s%u:%s",
_find_prefix ("directory-direntry"),
parent_id, basename);
- directory->doc.add_term (term);
+ directory->doc.add_term (term, 0);
}
directory->doc.add_value (NOTMUCH_VALUE_TIMESTAMP,
diff --git a/lib/message.cc b/lib/message.cc
index 1cda55a1..f0e905b7 100644
--- a/lib/message.cc
+++ b/lib/message.cc
@@ -192,7 +192,7 @@ _notmuch_message_create_for_message_id (notmuch_database_t *notmuch,
db = static_cast<Xapian::WritableDatabase *> (notmuch->xapian_db);
try {
- doc.add_term (term);
+ doc.add_term (term, 0);
talloc_free (term);
doc.add_value (NOTMUCH_VALUE_MESSAGE_ID, message_id);
@@ -646,7 +646,7 @@ _notmuch_message_add_term (notmuch_message_t *message,
if (strlen (term) > NOTMUCH_TERM_MAX)
return NOTMUCH_PRIVATE_STATUS_TERM_TOO_LONG;
- message->doc.add_term (term);
+ message->doc.add_term (term, 0);
talloc_free (term);