Uses of Class
org.apache.lucene.search.highlight.TextFragment
-
Packages that use TextFragment Package Description org.apache.lucene.search.highlight Highlighting search terms. -
-
Uses of TextFragment in org.apache.lucene.search.highlight
Fields in org.apache.lucene.search.highlight declared as TextFragment Modifier and Type Field Description (package private) TextFragmentQueryTermScorer. currentTextFragmentMethods in org.apache.lucene.search.highlight that return TextFragment Modifier and Type Method Description TextFragment[]Highlighter. getBestTextFragments(TokenStream tokenStream, java.lang.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 TextFragment Modifier and Type Method Description booleanTextFragment. follows(TextFragment fragment)booleanHighlighter.FragmentQueue. lessThan(TextFragment fragA, TextFragment fragB)voidTextFragment. merge(TextFragment frag2)private voidHighlighter. 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.voidQueryScorer. startFragment(TextFragment newFragment)voidQueryTermScorer. startFragment(TextFragment newFragment)voidScorer. startFragment(TextFragment newFragment)Called when a new fragment is started for consideration.
-