public class LuceneUtil
extends java.lang.Object
| Constructor and Description |
|---|
LuceneUtil(JasperReportsContext jasperReportsContext,
boolean isCaseSensitive,
boolean isWholeWordsOnly,
boolean removeAccents) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addContentField(int pageNo,
JRPrintText element) |
protected SpanNearQuery |
buildQuery(java.util.List<java.lang.String> queryTerms) |
protected Directory |
createLuceneDirectory(JasperPrint jasperPrint) |
protected void |
displayTokens(java.lang.String text,
java.lang.String elementId) |
protected Analyzer |
getConfiguredAnalyzer() |
protected void |
getHitTerms(Query query,
IndexSearcher searcher,
int docId,
java.util.Map<java.lang.Integer,java.util.List<Term>> hitTerms) |
protected java.util.List<java.lang.String> |
getQueryTerms(java.lang.String queryString) |
SpansInfo |
getSpansInfo(JasperPrint jasperPrint,
java.lang.String queryString) |
protected JRStyledText |
getStyledText(JRPrintText textElement) |
protected void |
indexElements(int pageNo,
java.util.List<JRPrintElement> elements) |
protected void |
indexPage(JRPrintPage page,
int pageNo) |
public LuceneUtil(JasperReportsContext jasperReportsContext, boolean isCaseSensitive, boolean isWholeWordsOnly, boolean removeAccents)
public SpansInfo getSpansInfo(JasperPrint jasperPrint, java.lang.String queryString) throws java.io.IOException, ParseException, JRException
java.io.IOExceptionParseExceptionJRExceptionprotected Directory createLuceneDirectory(JasperPrint jasperPrint) throws java.io.IOException, JRException
java.io.IOExceptionJRExceptionprotected void indexPage(JRPrintPage page, int pageNo) throws java.io.IOException
java.io.IOExceptionprotected void indexElements(int pageNo,
java.util.List<JRPrintElement> elements)
throws java.io.IOException
java.io.IOExceptionprotected void addContentField(int pageNo,
JRPrintText element)
throws java.io.IOException
java.io.IOExceptionprotected Analyzer getConfiguredAnalyzer()
protected JRStyledText getStyledText(JRPrintText textElement)
protected SpanNearQuery buildQuery(java.util.List<java.lang.String> queryTerms)
protected java.util.List<java.lang.String> getQueryTerms(java.lang.String queryString)
throws java.io.IOException
java.io.IOExceptionprotected void displayTokens(java.lang.String text,
java.lang.String elementId)
throws java.io.IOException
java.io.IOExceptionprotected void getHitTerms(Query query,
IndexSearcher searcher,
int docId,
java.util.Map<java.lang.Integer,java.util.List<Term>> hitTerms)
throws java.io.IOException
java.io.IOException© 2001-2014 TIBCO Software Inc. www.jaspersoft.com