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
-
Field Summary
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
ConstructorDescriptionSourceSimpleFragmentsBuilder(MappedFieldType fieldType, boolean fixBrokenAnalysis, SourceLookup sourceLookup, String[] preTags, String[] postTags, org.apache.lucene.search.vectorhighlight.BoundaryScanner boundaryScanner)
-
Method Summary
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
-
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 classorg.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
- Throws:
IOException
-