Issue #54 resolved

Field based facets won't work

Anonymous created an issue

The Facet.from_fields method doesn't work.

{{{

!python

fs = cls() fs.queries = [(token, query.Term(fieldname, token)) for token in searcher.lexicon(fieldname)] fs._study(searcher) return fs }}}

...has to be...

{{{

!python

fs = cls(searcher) fs.queries = [(token, query.Term(fieldname, token)) for token in searcher.lexicon(fieldname)] fs._study() return fs }}}

Comments (1)

  1. Log in to comment