aboutsummaryrefslogtreecommitdiff
path: root/lib/query.cc
diff options
context:
space:
mode:
authormartin f. krafft <madduck@debian.org>2010-01-21 13:58:55 +1300
committermartin f. krafft <madduck@debian.org>2010-01-21 13:58:55 +1300
commit0ea5f3fc0e0336921ba670a28201b59d2c977cfb (patch)
tree86f91b3512899130341aabea68686c4aea113a6a /lib/query.cc
parent994e46845d57c4cf912b674d45b4ae13b478d6ee (diff)
parentc340c1bd1140c0a1b7e0f24ef3ebac806f5fc3e6 (diff)
Merge branch 'upstream'
Diffstat (limited to 'lib/query.cc')
-rw-r--r--lib/query.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/query.cc b/lib/query.cc
index 9106b92d..2c8d1672 100644
--- a/lib/query.cc
+++ b/lib/query.cc
@@ -134,6 +134,8 @@ notmuch_query_search_messages (notmuch_query_t *query)
mail_query, string_query);
}
+ enquire.set_weighting_scheme (Xapian::BoolWeight());
+
switch (query->sort) {
case NOTMUCH_SORT_OLDEST_FIRST:
enquire.set_sort_by_value (NOTMUCH_VALUE_TIMESTAMP, FALSE);