mirror of
https://github.com/Hopiu/xapian-haystack.git
synced 2026-04-27 18:14:50 +00:00
Changed test for term boost to use AND_MAYBE instead of OR
This commit is contained in:
parent
9ba7d0f8d5
commit
8f1f906d40
1 changed files with 1 additions and 1 deletions
|
|
@ -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'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue