Class WholeTextFormatter

java.lang.Object
org.apache.lucene.search.uhighlight.PassageFormatter
com.apple.foundationdb.record.lucene.highlight.WholeTextFormatter

@API(INTERNAL) public class WholeTextFormatter extends org.apache.lucene.search.uhighlight.PassageFormatter
A PassageFormatter which creates Highlighted terms that contain the whole context of the field as the summarized text (i.e. no summarization or shortening occurs).

If you want to summarize the content, use SnippetFormatter instead.

  • Constructor Details

    • WholeTextFormatter

      public WholeTextFormatter(String fieldName)
  • Method Details

    • format

      public Object format(org.apache.lucene.search.uhighlight.Passage[] passages, String content)
      Specified by:
      format in class org.apache.lucene.search.uhighlight.PassageFormatter