Uses of Class
org.apache.lucene.search.uhighlight.LengthGoalBreakIterator
Packages that use LengthGoalBreakIterator
Package
Description
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term
vectors, or analysis.
-
Uses of LengthGoalBreakIterator in org.apache.lucene.search.uhighlight
Methods in org.apache.lucene.search.uhighlight that return LengthGoalBreakIteratorModifier and TypeMethodDescriptionstatic LengthGoalBreakIteratorLengthGoalBreakIterator.createClosestToLength(BreakIterator baseIter, int targetLength, float fragmentAlignment) Breaks will be on averagetargetLengthapart; the closest break to this target (before or after) is chosen.static LengthGoalBreakIteratorLengthGoalBreakIterator.createMinLength(BreakIterator baseIter, int minLength, float fragmentAlignment) Breaks will be at leastminLengthapart (to the extent possible), while trying to position the match inside the fragment according tofragmentAlignment.