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 inherited from class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
COLORED_POST_TAGS, COLORED_PRE_TAGS, postTags, preTags
-
Constructor Summary
ConstructorDescriptionSimpleFragmentsBuilder(MappedFieldType fieldType, boolean fixBrokenAnalysis, String[] preTags, String[] postTags, org.apache.lucene.search.vectorhighlight.BoundaryScanner boundaryScanner)
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Field Details
-
fieldType
-
-
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 classorg.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
-