|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.highlight.SolrHighlighter
org.apache.solr.highlight.DefaultSolrHighlighter
public class DefaultSolrHighlighter
Field Summary |
---|
Fields inherited from class org.apache.solr.highlight.SolrHighlighter |
---|
formatters, fragmenters, log |
Constructor Summary | |
---|---|
DefaultSolrHighlighter()
|
|
DefaultSolrHighlighter(SolrCore solrCore)
|
Method Summary | |
---|---|
org.apache.solr.common.util.NamedList<Object> |
doHighlighting(DocList docs,
Query query,
SolrQueryRequest req,
String[] defaultFields)
Generates a list of Highlighted query fragments for each item in a list of documents, or returns null if highlighting is disabled. |
protected Formatter |
getFormatter(String fieldName,
org.apache.solr.common.params.SolrParams params)
Return a formatter appropriate for this field. |
protected Fragmenter |
getFragmenter(String fieldName,
org.apache.solr.common.params.SolrParams params)
Return a fragmenter appropriate for this field. |
protected Highlighter |
getHighlighter(Query query,
String fieldName,
SolrQueryRequest request)
Return a Highlighter appropriate for this field. |
protected int |
getMaxSnippets(String fieldName,
org.apache.solr.common.params.SolrParams params)
Return the max number of snippets for this field. |
protected Highlighter |
getPhraseHighlighter(Query query,
String fieldName,
SolrQueryRequest request,
CachingTokenFilter tokenStream)
Return a phrase Highlighter appropriate for this field. |
void |
init(PluginInfo info)
|
void |
initalize(SolrConfig config)
Deprecated. |
protected boolean |
isMergeContiguousFragments(String fieldName,
org.apache.solr.common.params.SolrParams params)
Return whether adjacent fragments should be merged. |
Methods inherited from class org.apache.solr.highlight.SolrHighlighter |
---|
emptyArray, getHighlightFields, isHighlightingEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSolrHighlighter()
public DefaultSolrHighlighter(SolrCore solrCore)
Method Detail |
---|
public void init(PluginInfo info)
init
in interface PluginInfoInitialized
@Deprecated public void initalize(SolrConfig config)
initalize
in class SolrHighlighter
protected Highlighter getPhraseHighlighter(Query query, String fieldName, SolrQueryRequest request, CachingTokenFilter tokenStream) throws IOException
query
- The current QueryfieldName
- The name of the fieldrequest
- The current SolrQueryRequesttokenStream
- document text CachingTokenStream
IOException
protected Highlighter getHighlighter(Query query, String fieldName, SolrQueryRequest request)
query
- The current QueryfieldName
- The name of the fieldrequest
- The current SolrQueryRequestprotected int getMaxSnippets(String fieldName, org.apache.solr.common.params.SolrParams params)
fieldName
- The name of the fieldparams
- The params controlling Highlightingprotected boolean isMergeContiguousFragments(String fieldName, org.apache.solr.common.params.SolrParams params)
fieldName
- The name of the fieldparams
- The params controlling Highlightingprotected Formatter getFormatter(String fieldName, org.apache.solr.common.params.SolrParams params)
fieldName
- The name of the fieldparams
- The params controlling Highlighting
protected Fragmenter getFragmenter(String fieldName, org.apache.solr.common.params.SolrParams params)
fieldName
- The name of the fieldparams
- The params controlling Highlighting
public org.apache.solr.common.util.NamedList<Object> doHighlighting(DocList docs, Query query, SolrQueryRequest req, String[] defaultFields) throws IOException
doHighlighting
in class SolrHighlighter
docs
- query resultsquery
- the queryreq
- the current requestdefaultFields
- default list of fields to summarize
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |