Class SourceScoreOrderFragmentsBuilder

java.lang.Object
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, String[] preTags, String[] 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, String fieldName)
     
    protected String
    makeFragment(StringBuilder buffer, int[] index, org.apache.lucene.document.Field[] values, org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo fragInfo, String[] preTags, String[] 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.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SourceScoreOrderFragmentsBuilder

      public SourceScoreOrderFragmentsBuilder(MappedFieldType fieldType, boolean fixBrokenAnalysis, SourceLookup sourceLookup, String[] preTags, String[] 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, String fieldName) throws IOException
      Overrides:
      getFields in class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
      Throws:
      IOException
    • makeFragment

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