Package org.apache.solr.highlight
Class SolrFragmentsBuilder
java.lang.Object
org.apache.solr.highlight.HighlightingPluginBase
org.apache.solr.highlight.SolrFragmentsBuilder
- All Implemented Interfaces:
AutoCloseable,SolrInfoBean,SolrMetricProducer,NamedListInitializedPlugin
- Direct Known Subclasses:
ScoreOrderFragmentsBuilder,SimpleFragmentsBuilder
public abstract class SolrFragmentsBuilder
extends HighlightingPluginBase
implements SolrInfoBean, NamedListInitializedPlugin
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group -
Field Summary
FieldsFields inherited from class org.apache.solr.highlight.HighlightingPluginBase
defaults, metricNames, numRequests, solrMetricsContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.apache.lucene.search.vectorhighlight.FragmentsBuildergetFragmentsBuilder(org.apache.solr.common.params.SolrParams params, String[] preTags, String[] postTags, org.apache.lucene.search.vectorhighlight.BoundaryScanner bs) org.apache.lucene.search.vectorhighlight.FragmentsBuildergetFragmentsBuilder(org.apache.solr.common.params.SolrParams params, org.apache.lucene.search.vectorhighlight.BoundaryScanner bs) Return aFragmentsBuilderappropriate for this field.protected chargetMultiValuedSeparatorChar(org.apache.solr.common.params.SolrParams params) String[]getPostTags(org.apache.solr.common.params.SolrParams params, String fieldName) String[]getPreTags(org.apache.solr.common.params.SolrParams params, String fieldName) Methods inherited from class org.apache.solr.highlight.HighlightingPluginBase
getCategory, getDescription, getName, getSolrMetricsContext, init, initializeMetricsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
initMethods inherited from interface org.apache.solr.core.SolrInfoBean
getCategory, getDescription, getNameMethods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close, getSolrMetricsContext, initializeMetrics
-
Field Details
-
DEFAULT_PRE_TAGS
- See Also:
-
DEFAULT_POST_TAGS
- See Also:
-
-
Constructor Details
-
SolrFragmentsBuilder
public SolrFragmentsBuilder()
-
-
Method Details
-
getFragmentsBuilder
public org.apache.lucene.search.vectorhighlight.FragmentsBuilder getFragmentsBuilder(org.apache.solr.common.params.SolrParams params, org.apache.lucene.search.vectorhighlight.BoundaryScanner bs) Return aFragmentsBuilderappropriate for this field.- Parameters:
params- The params controlling Highlighting- Returns:
- An appropriate
FragmentsBuilder.
-
getPreTags
-
getPostTags
-
getFragmentsBuilder
-
getMultiValuedSeparatorChar
protected char getMultiValuedSeparatorChar(org.apache.solr.common.params.SolrParams params)
-