Class Snippet



  • public class Snippet
    extends Object
    Represents a scored highlighted snippet. It's our own arbitrary object that we get back from the postings highlighter when highlighting a document. Every snippet contains its formatted text and its score. The score is needed since we highlight every single value separately and we might want to return snippets sorted by score.
    • Constructor Detail

      • Snippet

        public Snippet(String text,
                       float score,
                       boolean isHighlighted)
    • Method Detail

      • getText

        public String getText()
      • getScore

        public float getScore()
      • isHighlighted

        public boolean isHighlighted()