Changed test for term boost to use AND_MAYBE instead of OR

This commit is contained in:
David Sauve 2010-01-15 09:16:55 -05:00
parent 9ba7d0f8d5
commit 8f1f906d40

View file

@ -103,7 +103,7 @@ class XapianSearchQueryTestCase(TestCase):
def test_build_query_boost(self):
self.sq.add_filter(SQ(content='hello'))
self.sq.add_boost('world', 5)
self.assertEqual(self.sq.build_query().get_description(), u'Xapian::Query((Zhello OR hello OR 5 * world))')
self.assertEqual(self.sq.build_query().get_description(), u'Xapian::Query(((Zhello OR hello) AND_MAYBE 5 * world))')
def test_build_query_in_filter_single_words(self):
self.sq.add_filter(SQ(content='why'))