Matcher
The whoosh.reading.IndexReader.postings() method returns a
whoosh.matching.Matcher object. You will probably need to implement
a custom Matcher class for reading from your posting lists.
- Subclass whoosh.matching.Matcher.
- Implement the following methods at minimum.
- whoosh.matching.Matcher.is_active()
- whoosh.matching.Matcher.copy()
- whoosh.matching.Matcher.id()
- whoosh.matching.Matcher.next()
- whoosh.matching.Matcher.value()
- whoosh.matching.Matcher.value_as()
- whoosh.matching.Matcher.score()
- Depending on the implementation, you may implement the following methods
more efficiently.
- whoosh.matching.Matcher.skip_to()
- whoosh.matching.Matcher.weight()
- If the implementation supports quality, you should implement the following
methods.
- whoosh.matching.Matcher.supports_quality()
- whoosh.matching.Matcher.quality()
- whoosh.matching.Matcher.block_quality()
- whoosh.matching.Matcher.skip_to_quality()