(self, searcher)
Returns an iterator of docnums matching this query.

        >>> with my_index.searcher() as searcher:
        ...     list(my_query.docs(searcher))
        [10, 34, 78, 103]

        :param searcher: A :class:`whoosh.searching.Searcher` object.
Returns an iterator of docnums matching this query.
Returns an iterator of docnums matching this query .
def docs(self, searcher):
        """Returns an iterator of docnums matching this query.

        >>> with my_index.searcher() as searcher:
        ...     list(my_query.docs(searcher))
        [10, 34, 78, 103]

        :param searcher: A :class:`whoosh.searching.Searcher` object.
        """

        try:
            context = searcher.boolean_context()
            return self.matcher(searcher, context).all_ids()
        except TermNotFound:
            return iter([])
def docs ( self , searcher ) : try : context = searcher . boolean_context ( ) return self . matcher ( searcher , context ) . all_ids ( ) except TermNotFound : return iter ( [ ] )