Uses of Class
org.apache.lucene.search.highlight.TextFragment
Packages that use TextFragment
-
Uses of TextFragment in org.apache.lucene.search.highlight
Fields in org.apache.lucene.search.highlight declared as TextFragmentModifier and TypeFieldDescription(package private) TextFragment
QueryTermScorer.currentTextFragment
Methods in org.apache.lucene.search.highlight that return TextFragmentModifier 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.Methods in org.apache.lucene.search.highlight with parameters of type TextFragmentModifier and TypeMethodDescriptionboolean
TextFragment.follows
(TextFragment fragment) final boolean
Highlighter.FragmentQueue.lessThan
(TextFragment fragA, TextFragment fragB) void
TextFragment.merge
(TextFragment frag2) private void
Highlighter.mergeContiguousFragments
(TextFragment[] frag) Improves readability of a score-sorted list of TextFragments by merging any fragments that were contiguous in the original text into one larger fragment with the correct order.void
QueryScorer.startFragment
(TextFragment newFragment) void
QueryTermScorer.startFragment
(TextFragment newFragment) void
Scorer.startFragment
(TextFragment newFragment) Called when a new fragment is started for consideration.