Fixed code error (tests were not passing).

This commit is contained in:
Jorge C. Leitão 2014-05-18 16:38:54 +02:00
parent bb74dae2c0
commit 107e81be2d

View file

@ -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(