Commits

Matt Chaput  committed 6c1b67f

Fixed missing parameter to estimate_size(). Fixes issue #163.

  • Participants
  • Parent commits 6176b0a

Comments (0)

Files changed (1)

File src/whoosh/query.py

             if len(nots) == 1:
                 notm = nots[0].matcher(searcher)
             else:
-                notms = [(q.estimate_size(), q.matcher(searcher))
+                r = searcher.reader()
+                notms = [(q.estimate_size(r), q.matcher(searcher))
                          for q in nots]
                 notm = make_weighted_tree(UnionMatcher, notms)