changeset 817:0842d11e0f01

fix combination of negated terms in AndExpression
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Sat, 10 Jun 2006 09:11:14 +0200
parents 6c9fa6bc2ed5
children 7250d2be26d6
files MoinMoin/search.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search.py	Sat Jun 10 00:26:41 2006 +0200
+++ b/MoinMoin/search.py	Sat Jun 10 09:11:14 2006 +0200
@@ -199,7 +199,7 @@
         if len(not_terms) == 1:
             t2 = xapian.Query(not_terms[0])
         else:
-            t2 = xapian.Query(xapian.Query.OP_AND, not_terms)
+            t2 = xapian.Query(xapian.Query.OP_OR, not_terms)
 
         return xapian.Query(xapian.Query.OP_AND_NOT, t1, t2)