1. Matt Chaput
  2. whoosh

Commits

Matt Chaput  committed f332002

Fixed logic in set_caching_policy() method.

  • Participants
  • Parent commits bfb6805
  • Branches default

Comments (0)

Files changed (1)

File src/whoosh/filedb/filereading.py

View file
  • Ignore whitespace
         if not cp:
             if save and storage is None:
                 storage = self.storage
-            else:
+            elif not save:
                 storage = None
             cp = DefaultFieldCachingPolicy(self.segment.name, storage=storage)