public class HTMLExcerpt
extends org.apache.jackrabbit.core.query.lucene.AbstractExcerpt
HTMLExcerpt creates a HTML excerpt with the following
format:
<div>
<span><strong class="searchHighlightedText">Jackrabbit</strong> implements both the mandatory XPath and optional SQL <strong class="searchHighlightedText">query</strong> syntax.</span>
<span>Before parsing the XPath <strong class="searchHighlightedText">query</strong> in <strong class="searchHighlightedText">Jackrabbit</strong>, the statement is surrounded</span>
</div>
| Modifier and Type | Field and Description |
|---|---|
static org.apache.lucene.document.FieldSelector |
FULLTEXT |
| Constructor and Description |
|---|
HTMLExcerpt() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createExcerpt(org.apache.lucene.index.TermPositionVector tpv,
String text,
int maxFragments,
int maxFragmentSize) |
String |
getExcerpt(org.apache.jackrabbit.core.id.NodeId id,
int maxFragments,
int maxFragmentSize) |
protected String createExcerpt(org.apache.lucene.index.TermPositionVector tpv, String text, int maxFragments, int maxFragmentSize) throws IOException
createExcerpt in class org.apache.jackrabbit.core.query.lucene.AbstractExcerptIOExceptionpublic String getExcerpt(org.apache.jackrabbit.core.id.NodeId id, int maxFragments, int maxFragmentSize) throws IOException
getExcerpt in interface org.apache.jackrabbit.core.query.lucene.ExcerptProvidergetExcerpt in class org.apache.jackrabbit.core.query.lucene.AbstractExcerptIOExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.