1. Matt Chaput
  2. whoosh
Issue #230 resolved

Phrase.normalize() does not propagate startchar endchar with single Term()

argonaut
created an issue

When the Phrase() has a single word, then Phrase.normalize() does not propagate the startchar, endchar.

The code segment

    if len(self.words) == 1:
        return Term(self.fieldname, self.words[0])

should be something like if len(self.words) == 1: term = Term(self.fieldname, self.words[0]) if self.char_ranges: term.startchar, term.endchar = self.char_ranges[0] return term

Comments (2)

  1. Log in to comment