Class SourceSimpleFragmentsBuilder

java.lang.Object
org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder
org.elasticsearch.search.fetch.subphase.highlight.SimpleFragmentsBuilder
org.elasticsearch.search.fetch.subphase.highlight.SourceSimpleFragmentsBuilder
All Implemented Interfaces:
org.apache.lucene.search.vectorhighlight.FragmentsBuilder

public class SourceSimpleFragmentsBuilder extends SimpleFragmentsBuilder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.apache.lucene.document.Field[]
     

    Fields inherited from class org.elasticsearch.search.fetch.subphase.highlight.SimpleFragmentsBuilder

    fieldType

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

    COLORED_POST_TAGS, COLORED_PRE_TAGS, postTags, preTags
  • Constructor Summary

    Constructors
    Constructor
    Description
    SourceSimpleFragmentsBuilder(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)
     

    Methods inherited from class org.elasticsearch.search.fetch.subphase.highlight.SimpleFragmentsBuilder

    makeFragment

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

    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
  • Field Details

    • EMPTY_FIELDS

      public static final org.apache.lucene.document.Field[] EMPTY_FIELDS
  • Constructor Details

    • SourceSimpleFragmentsBuilder

      public SourceSimpleFragmentsBuilder(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