Class SimpleFragmentsBuilder

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

public class SimpleFragmentsBuilder extends org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder
Direct Subclass of Lucene's org.apache.lucene.search.vectorhighlight.SimpleFragmentsBuilder that corrects offsets for broken analysis chains.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected MappedFieldType
     

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

    COLORED_POST_TAGS, COLORED_PRE_TAGS, postTags, preTags
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    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.SimpleFragmentsBuilder

    getWeightedFragInfoList

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

    createFragment, createFragment, createFragments, createFragments, discreteMultiValueHighlighting, getFields, 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

  • Constructor Details

    • SimpleFragmentsBuilder

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

    • 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