Commits

Matt Chaput committed 6061731

Don't use cached docID as evidence a UnionMatcher is active. Fixes issue #240.
Don't understand why this was an issue but this change should be correct regardless.

  • Participants
  • Parent commits 710fc7a

Comments (0)

Files changed (1)

src/whoosh/matching/binary.py

             return self
 
     def is_active(self):
-        if self._id is not None:
-            return True
         return self.a.is_active() or self.b.is_active()
 
     def skip_to(self, id):
+        self._id = None
         ra = rb = False
 
         if self.a.is_active():
         if self.b.is_active():
             rb = self.b.skip_to(id)
 
-        self._id = None
         return ra or rb
 
     def id(self):