Matt Chaput  committed 7036238

Fix bug where I didn't update Facets.from_field() to new API. Fixes issue #54.

  • Participants
  • Parent commits a494b8f

Comments (0)

Files changed (1)

File src/whoosh/

         :param fieldname: the name of the field to use to create the facets.
-        fs = cls()
+        fs = cls(searcher)
         fs.queries = [(token, query.Term(fieldname, token))
                         for token in searcher.lexicon(fieldname)]
-        fs._study(searcher)
+        fs._study()
         return fs
     def facets(self):