From e854265d2a8bfc9b9b9ebf300fcb7331069ca182 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Thu, 12 Jul 2018 16:15:34 +1200 Subject: [PATCH] Fix wqf of MatchAll replacements This should be 1 for a consistent query description. --- xapian-core/api/queryinternal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xapian-core/api/queryinternal.h b/xapian-core/api/queryinternal.h index 85af74050..632a4b37d 100644 --- a/xapian-core/api/queryinternal.h +++ b/xapian-core/api/queryinternal.h @@ -43,7 +43,7 @@ class QueryTerm : public Query::Internal { public: // Construct a "MatchAll" QueryTerm. - QueryTerm() : term(), wqf(0), pos(0) { } + QueryTerm() : term(), wqf(1), pos(0) { } QueryTerm(const std::string & term_, Xapian::termcount wqf_, -- 2.11.4.GIT