Class SourceScoreOrderFragmentsBuilder
java.lang.Object
org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder
org.elasticsearch.search.fetch.subphase.highlight.SourceScoreOrderFragmentsBuilder
- All Implemented Interfaces:
org.apache.lucene.search.vectorhighlight.FragmentsBuilder
public class SourceScoreOrderFragmentsBuilder
extends org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder
org.apache.lucene.search.vectorhighlight.ScoreOrderFragmentsBuilder.ScoreComparator
-
Field Summary
Fields inherited from class org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder
COLORED_POST_TAGS, COLORED_PRE_TAGS, postTags, preTags
-
Constructor Summary
ConstructorDescriptionSourceScoreOrderFragmentsBuilder(MappedFieldType fieldType, boolean fixBrokenAnalysis, SourceLookup sourceLookup, String[] preTags, String[] postTags, org.apache.lucene.search.vectorhighlight.BoundaryScanner boundaryScanner)
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.document.Field[]
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.ScoreOrderFragmentsBuilder
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 Details
-
SourceScoreOrderFragmentsBuilder
public SourceScoreOrderFragmentsBuilder(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
-
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
-