Class FragmentBuilderHelper
- java.lang.Object
-
- org.elasticsearch.search.fetch.subphase.highlight.FragmentBuilderHelper
-
public final class FragmentBuilderHelper extends java.lang.Object
Simple helper class forFastVectorHighlighter
FragmentsBuilder
implementations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo
fixWeightedFragInfo(MappedFieldType fieldType, org.apache.lucene.document.Field[] values, 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
-
-
-
Method Detail
-
fixWeightedFragInfo
public static org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo fixWeightedFragInfo(MappedFieldType fieldType, org.apache.lucene.document.Field[] values, 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
-
-