1. Matt Chaput
  2. whoosh
  3. Issues
Issue #168 resolved

Frequesy problem

Anonymous created an issue

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


cannot import name Frequency }}}



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.


  2. Log in to comment