|
||||||||||
| 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()
|
|
| Method Summary | |
|---|---|
NamedList<Object> |
doHighlighting(DocList docs,
org.apache.lucene.search.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 org.apache.lucene.search.highlight.Formatter |
getFormatter(String fieldName,
SolrParams params)
Return a formatter appropriate for this field. |
protected org.apache.lucene.search.highlight.Fragmenter |
getFragmenter(String fieldName,
SolrParams params)
Return a fragmenter appropriate for this field. |
protected org.apache.lucene.search.highlight.Highlighter |
getHighlighter(org.apache.lucene.search.Query query,
String fieldName,
SolrQueryRequest request)
Return a Highlighter appropriate for this field. |
protected int |
getMaxSnippets(String fieldName,
SolrParams params)
Return the max number of snippets for this field. |
protected org.apache.lucene.search.highlight.Highlighter |
getPhraseHighlighter(org.apache.lucene.search.Query query,
String fieldName,
SolrQueryRequest request,
org.apache.lucene.analysis.CachingTokenFilter tokenStream)
Return a phrase Highlighter appropriate for this field. |
protected org.apache.lucene.search.highlight.QueryScorer |
getQueryScorer(org.apache.lucene.search.Query query,
String fieldName,
SolrQueryRequest request)
Return a QueryScorer suitable for this Query and field. |
void |
initalize(Config config)
|
protected boolean |
isMergeContiguousFragments(String fieldName,
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()
| Method Detail |
|---|
public void initalize(Config config)
initalize in class SolrHighlighter
protected org.apache.lucene.search.highlight.Highlighter getPhraseHighlighter(org.apache.lucene.search.Query query,
String fieldName,
SolrQueryRequest request,
org.apache.lucene.analysis.CachingTokenFilter tokenStream)
throws IOException
query - The current QueryfieldName - The name of the fieldrequest - The current SolrQueryRequesttokenStream - document text CachingTokenStream
IOException
protected org.apache.lucene.search.highlight.Highlighter getHighlighter(org.apache.lucene.search.Query query,
String fieldName,
SolrQueryRequest request)
query - The current QueryfieldName - The name of the fieldrequest - The current SolrQueryRequest
protected org.apache.lucene.search.highlight.QueryScorer getQueryScorer(org.apache.lucene.search.Query query,
String fieldName,
SolrQueryRequest request)
query - The current queryfieldName - The name of the fieldrequest - The SolrQueryRequest
protected int getMaxSnippets(String fieldName,
SolrParams params)
fieldName - The name of the fieldparams - The params controlling Highlighting
protected boolean isMergeContiguousFragments(String fieldName,
SolrParams params)
fieldName - The name of the fieldparams - The params controlling Highlighting
protected org.apache.lucene.search.highlight.Formatter getFormatter(String fieldName,
SolrParams params)
fieldName - The name of the fieldparams - The params controlling Highlighting
protected org.apache.lucene.search.highlight.Fragmenter getFragmenter(String fieldName,
SolrParams params)
fieldName - The name of the fieldparams - The params controlling Highlighting
public NamedList<Object> doHighlighting(DocList docs,
org.apache.lucene.search.Query query,
SolrQueryRequest req,
String[] defaultFields)
throws IOException
doHighlighting in class SolrHighlighterdocs - 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 | |||||||||