Class WeightedFieldFragList

java.lang.Object
org.apache.lucene.search.vectorhighlight.FieldFragList
org.apache.lucene.search.vectorhighlight.WeightedFieldFragList

public class WeightedFieldFragList extends FieldFragList
A weighted implementation of FieldFragList.
  • Constructor Details

    • WeightedFieldFragList

      public WeightedFieldFragList(int fragCharSize)
      a constructor.
      Parameters:
      fragCharSize - the length (number of chars) of a fragment
  • Method Details

    • add

      public void add(int startOffset, int endOffset, List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
      Description copied from class: FieldFragList
      convert the list of WeightedPhraseInfo to WeightedFragInfo, then add it to the fragInfos
      Specified by:
      add in class FieldFragList
      Parameters:
      startOffset - start offset of the fragment
      endOffset - end offset of the fragment
      phraseInfoList - list of WeightedPhraseInfo objects