(self, fieldname, text, weighting=None, qf=1)
Returns a :class:`whoosh.matching.Matcher` for the postings of the
        given term. Unlike the :func:`whoosh.reading.IndexReader.postings`
        method, this method automatically sets the scoring functions on the
        matcher from the searcher's weighting object.
Returns a :class:`whoosh.matching.Matcher` for the postings of the
        given term. Unlike the :func:`whoosh.reading.IndexReader.postings`
        method, this method automatically sets the scoring functions on the
        matcher from the searcher's weighting object.
Returns a : class : whoosh . matching . Matcher for the postings of the given term . Unlike the : func : whoosh . reading . IndexReader . postings method this method automatically sets the scoring functions on the matcher from the searcher s weighting object .
def postings(self, fieldname, text, weighting=None, qf=1):
        """Returns a :class:`whoosh.matching.Matcher` for the postings of the
        given term. Unlike the :func:`whoosh.reading.IndexReader.postings`
        method, this method automatically sets the scoring functions on the
        matcher from the searcher's weighting object.
        """

        weighting = weighting or self.weighting
        globalscorer = weighting.scorer(self, fieldname, text, qf=qf)

        if self.is_atomic():
            return self.ixreader.postings(fieldname, text, scorer=globalscorer)
        else:
            from whoosh.matching import MultiMatcher

            matchers = []
            docoffsets = []
            term = (fieldname, text)
            for subsearcher, offset in self.subsearchers:
                r = subsearcher.reader()
                if term in r:
                    # Make a segment-specific scorer; the scorer should call
                    # searcher.parent() to get global stats
                    scorer = weighting.scorer(subsearcher, fieldname, text, qf=qf)
                    m = r.postings(fieldname, text, scorer=scorer)
                    matchers.append(m)
                    docoffsets.append(offset)

            if not matchers:
                raise TermNotFound(fieldname, text)

            return MultiMatcher(matchers, docoffsets, globalscorer)
def postings ( self , fieldname , text , weighting = None , qf = 1 ) : weighting = weighting or self . weighting globalscorer = weighting . scorer ( self , fieldname , text , qf = qf ) if self . is_atomic ( ) : return self . ixreader . postings ( fieldname , text , scorer = globalscorer ) else : from whoosh . matching import MultiMatcher matchers = [ ] docoffsets = [ ] term = ( fieldname , text ) for subsearcher , offset in self . subsearchers : r = subsearcher . reader ( ) if term in r : # Make a segment-specific scorer; the scorer should call # searcher.parent() to get global stats scorer = weighting . scorer ( subsearcher , fieldname , text , qf = qf ) m = r . postings ( fieldname , text , scorer = scorer ) matchers . append ( m ) docoffsets . append ( offset ) if not matchers : raise TermNotFound ( fieldname , text ) return MultiMatcher ( matchers , docoffsets , globalscorer )