org.apache.lucene.search.highlight

Interface Formatter

    • Method Detail

      • highlightTerm

        String highlightTerm(String originalText,
                             TokenGroup tokenGroup)
        Parameters:
        originalText - The section of text being considered for markup
        tokenGroup - contains one or several overlapping Tokens along with their scores and positions.