Uses of Class
org.apache.lucene.search.uhighlight.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
Modifier and TypeMethodDescriptionstatic LengthGoalBreakIterator
LengthGoalBreakIterator.createClosestToLength
(BreakIterator baseIter, int targetLength, float fragmentAlignment) Breaks will be on averagetargetLength
apart; the closest break to this target (before or after) is chosen.static LengthGoalBreakIterator
LengthGoalBreakIterator.createMinLength
(BreakIterator baseIter, int minLength, float fragmentAlignment) Breaks will be at leastminLength
apart (to the extent possible), while trying to position the match inside the fragment according tofragmentAlignment
.