Class SourceScoreOrderFragmentsBuilder

org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder
org.elasticsearch.search.fetch.subphase.highlight.SourceScoreOrderFragmentsBuilder
All Implemented Interfaces:
org.apache.lucene.search.vectorhighlight.FragmentsBuilder

public class SourceScoreOrderFragmentsBuilder extends org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder

    org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder.ScoreComparator
  • Field Summary

    Fields inherited from class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder

    COLORED_POST_TAGS, COLORED_PRE_TAGS, postTags, preTags
  • Constructor Summary

    Constructors
    Constructor
    Description
    SourceScoreOrderFragmentsBuilder​(MappedFieldType fieldType, boolean fixBrokenAnalysis, SourceLookup sourceLookup, [] preTags, [] postTags, org.apache.lucene.search.vectorhighlight.BoundaryScanner boundaryScanner)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.lucene.document.Field[]
    getFields​(org.apache.lucene.index.IndexReader reader, int docId,  fieldName)
     
    protected
     buffer, int[] index, org.apache.lucene.document.Field[] values, org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo fragInfo, [] preTags, [] postTags, org.apache.lucene.search.highlight.Encoder encoder)
     

    Methods inherited from class org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder

    getWeightedFragInfoList

    Methods inherited from class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder

    createFragment, createFragment, createFragments, createFragments, discreteMultiValueHighlighting, getFragmentSource, getFragmentSourceMSO, getMultiValuedSeparator, getPostTag, getPostTag, getPreTag, getPreTag, isDiscreteMultiValueHighlighting, setDiscreteMultiValueHighlighting, setMultiValuedSeparator

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • SourceScoreOrderFragmentsBuilder

      public SourceScoreOrderFragmentsBuilder(MappedFieldType fieldType, boolean fixBrokenAnalysis, SourceLookup sourceLookup, [] preTags, [] postTags, org.apache.lucene.search.vectorhighlight.BoundaryScanner boundaryScanner)
  • Method Details

    • getFields

      protected org.apache.lucene.document.Field[] getFields(org.apache.lucene.index.IndexReader reader, int docId,  fieldName) throws
      Overrides:
      getFields in class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
      Throws:
    • makeFragment

      protected  makeFragment( buffer, int[] index, org.apache.lucene.document.Field[] values, org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo fragInfo, [] preTags, [] postTags, org.apache.lucene.search.highlight.Encoder encoder)
      Overrides:
      makeFragment in class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder