public interface I_CmsTermHighlighter
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getExcerpt(org.apache.lucene.document.Document doc,
CmsSearchIndex index,
CmsSearchParameters params,
org.apache.lucene.search.Query query,
org.apache.lucene.analysis.Analyzer analyzer)
Returns an excerpt of the given document related based on the given index and query.
|
java.lang.String getExcerpt(org.apache.lucene.document.Document doc,
CmsSearchIndex index,
CmsSearchParameters params,
org.apache.lucene.search.Query query,
org.apache.lucene.analysis.Analyzer analyzer)
throws java.io.IOException,
org.apache.lucene.search.highlight.InvalidTokenOffsetsException
doc - the content Lucene document to generate the excerpt forindex - the index that has been searchedparams - the current search parametersquery - the search queryanalyzer - the analyzer usedjava.io.IOException - if something goes wrongorg.apache.lucene.search.highlight.InvalidTokenOffsetsException - in case of problems with the Lucene tokenizer