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[]
EMPTY_FIELDS
-
Fields inherited from class org.elasticsearch.search.fetch.subphase.highlight.SimpleFragmentsBuilder
fieldType
-
-
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.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
-
-
-
-
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 classorg.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
- Throws:
java.io.IOException
-
-