Frequesy problem

Issue #168 resolved
Anonymous created an issue

Every time I try to use the spellings get such a problem: {{{

!python

cannot import name Frequency }}}

{{{

!python

whoosh/spelling.py in _schema line 385 from whoosh.fields import Schema, FieldType, Frequency, ID, STORED }}}

But file fields.py hasn't class Frequency

Comments (2)

  1. Matt Chaput repo owner
    • changed status to open

    Oops, sorry about that. I should have kept the unit tests for the old spelling system :( If you want to modify your copy of the Whoosh source, the fix is to change that line to:

    from whoosh.fields import Schema, FieldType, ID, STORED
    from whoosh.formats import Frequency
    

    Otherwise I'll make a new release soon that will have this fix.

    Thanks!

  2. Log in to comment