From 107e81be2d6aaa312b986b13505fcb9b38f82d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20C=2E=20Leit=C3=A3o?= Date: Sun, 18 May 2014 16:38:54 +0200 Subject: [PATCH] Fixed code error (tests were not passing). --- xapian_backend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xapian_backend.py b/xapian_backend.py index e825005..d6e6c83 100755 --- a/xapian_backend.py +++ b/xapian_backend.py @@ -1062,7 +1062,8 @@ class XapianSearchQuery(BaseSearchQuery): if self.boost: subqueries = [ xapian.Query( - xapian.Query.OP_SCALE_WEIGHT, self._content_field(term, False), value + xapian.Query.OP_SCALE_WEIGHT, + self._term_query(term, None, None), value ) for term, value in self.boost.iteritems() ] query = xapian.Query(