Class 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[] EMPTY_FIELDS  
      • 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, SearchContext searchContext, java.lang.String[] preTags, java.lang.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, java.lang.String fieldName)  
      • 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 Detail

      • EMPTY_FIELDS

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

      • SourceSimpleFragmentsBuilder

        public SourceSimpleFragmentsBuilder​(MappedFieldType fieldType,
                                            SearchContext searchContext,
                                            java.lang.String[] preTags,
                                            java.lang.String[] postTags,
                                            org.apache.lucene.search.vectorhighlight.BoundaryScanner boundaryScanner)
    • Method Detail

      • getFields

        protected org.apache.lucene.document.Field[] getFields​(org.apache.lucene.index.IndexReader reader,
                                                               int docId,
                                                               java.lang.String fieldName)
                                                        throws java.io.IOException
        Overrides:
        getFields in class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
        Throws:
        java.io.IOException