Class FragmentBuilderHelper

java.lang.Object
org.elasticsearch.search.fetch.subphase.highlight.FragmentBuilderHelper

public final class FragmentBuilderHelper extends Object
Simple helper class for FastVectorHighlighter FragmentsBuilder implementations.
  • 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 to StringIndexOutOfBoundsException in the FastVectorHighlighter