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(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 Details
-
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
-