Uses of Class
org.apache.lucene.search.highlight.TextFragment
-
Uses of TextFragment in org.apache.lucene.search.highlight
Modifier and TypeMethodDescriptionfinal TextFragment[]
Highlighter.getBestTextFragments
(TokenStream tokenStream, String text, boolean mergeContiguousFragments, int maxNumFragments) Low level api to get the most relevant (formatted) sections of the document.Modifier and TypeMethodDescriptionboolean
TextFragment.follows
(TextFragment fragment) void
TextFragment.merge
(TextFragment frag2) void
QueryScorer.startFragment
(TextFragment newFragment) void
QueryTermScorer.startFragment
(TextFragment newFragment) void
Scorer.startFragment
(TextFragment newFragment) Called when a new fragment is started for consideration.