(self, formatter)
return formatter.format_fragment(fragment, replace=True)
Highlights the corrected words in the original query string using the
        given :class:`~whoosh.highlight.Formatter`.

        :param formatter: A :class:`whoosh.highlight.Formatter` instance.
        :return: the output of the formatter (usually a string).
Highlights the corrected words in the original query string using the
        given :class:`~whoosh.highlight.Formatter`.
Highlights the corrected words in the original query string using the given : class : ~whoosh . highlight . Formatter .
def format_string(self, formatter):
        """
        Highlights the corrected words in the original query string using the
        given :class:`~whoosh.highlight.Formatter`.

        :param formatter: A :class:`whoosh.highlight.Formatter` instance.
        :return: the output of the formatter (usually a string).
        """

        if not self.original_string:
            return ''
        if isinstance(formatter, type):
            formatter = formatter()

        fragment = highlight.Fragment(self.original_string, self.tokens)
        return formatter.format_fragment(fragment, replace=True)
def format_string ( self , formatter ) : if not self . original_string : return '' if isinstance ( formatter , type ) : formatter = formatter ( ) fragment = highlight . Fragment ( self . original_string , self . tokens ) return formatter . format_fragment ( fragment , replace = True )