Commits

Matt Chaput committed 7036238

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

Comments (0)

Files changed (1)

src/whoosh/searching.py

         :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):