Class 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 to StringIndexOutOfBoundsException in the FastVectorHighlighter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 to StringIndexOutOfBoundsException in the FastVectorHighlighter