Class FragmentBuilderHelper
java.lang.Object
org.elasticsearch.search.fetch.subphase.highlight.FragmentBuilderHelper
public final class FragmentBuilderHelper
extends java.lang.Object
Simple helper class for
FastVectorHighlighter
FragmentsBuilder
implementations.-
Method Summary
Modifier and Type Method Description static org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo
fixWeightedFragInfo(org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo fragInfo)
Fixes problems with broken analysis chains if positions and offsets are messed up that can lead toStringIndexOutOfBoundsException
in theFastVectorHighlighter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
fixWeightedFragInfo
public static org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo fixWeightedFragInfo(org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo fragInfo)Fixes problems with broken analysis chains if positions and offsets are messed up that can lead toStringIndexOutOfBoundsException
in theFastVectorHighlighter
-