|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.search.lucene.LuceneHelperImpl
public class LuceneHelperImpl
Method Summary | |
---|---|
void |
addDocument(long companyId,
org.apache.lucene.document.Document document)
|
void |
addExactTerm(org.apache.lucene.search.BooleanQuery booleanQuery,
String field,
String value)
|
void |
addNumericRangeTerm(org.apache.lucene.search.BooleanQuery booleanQuery,
String field,
Integer startValue,
Integer endValue)
|
void |
addNumericRangeTerm(org.apache.lucene.search.BooleanQuery booleanQuery,
String field,
Long startValue,
Long endValue)
|
void |
addNumericRangeTerm(org.apache.lucene.search.BooleanQuery booleanQuery,
String field,
String startValue,
String endValue)
Deprecated. As of 6.2.0, replaced by addNumericRangeTerm(BooleanQuery, String, Long, Long) |
void |
addRangeTerm(org.apache.lucene.search.BooleanQuery booleanQuery,
String field,
String startValue,
String endValue)
|
void |
addRequiredTerm(org.apache.lucene.search.BooleanQuery booleanQuery,
String field,
String[] values,
boolean like)
|
void |
addRequiredTerm(org.apache.lucene.search.BooleanQuery booleanQuery,
String field,
String value,
boolean like)
|
void |
addTerm(org.apache.lucene.search.BooleanQuery booleanQuery,
String field,
String[] values,
boolean like)
|
void |
addTerm(org.apache.lucene.search.BooleanQuery booleanQuery,
String field,
String value,
boolean like)
|
void |
addTerm(org.apache.lucene.search.BooleanQuery booleanQuery,
String field,
String value,
boolean like,
BooleanClauseOccur booleanClauseOccur)
|
void |
cleanUp(org.apache.lucene.search.IndexSearcher indexSearcher)
Deprecated. As of 7.0.0, replaced by releaseIndexSearcher(long,
IndexSearcher) |
int |
countScoredFieldNames(org.apache.lucene.search.Query query,
String[] filedNames)
|
void |
delete(long companyId)
|
void |
deleteDocuments(long companyId,
org.apache.lucene.index.Term term)
|
void |
dumpIndex(long companyId,
OutputStream outputStream)
|
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
|
IndexAccessor |
getIndexAccessor(long companyId)
|
org.apache.lucene.search.IndexSearcher |
getIndexSearcher(long companyId)
|
long |
getLastGeneration(long companyId)
|
InputStream |
getLoadIndexesInputStreamFromCluster(long companyId,
Address bootupAddress)
|
Set<String> |
getQueryTerms(org.apache.lucene.search.Query query)
|
org.apache.lucene.search.IndexSearcher |
getSearcher(long companyId,
boolean readOnly)
Deprecated. As of 7.0.0, replaced by getIndexSearcher(long) |
String |
getSnippet(org.apache.lucene.search.Query query,
String field,
String s,
int maxNumFragments,
int fragmentLength,
String fragmentSuffix,
org.apache.lucene.search.highlight.Formatter formatter)
|
org.apache.lucene.util.Version |
getVersion()
|
boolean |
isLoadIndexFromClusterEnabled()
|
void |
loadIndex(long companyId,
InputStream inputStream)
|
void |
loadIndexesFromCluster(long companyId)
|
void |
releaseIndexSearcher(long companyId,
org.apache.lucene.search.IndexSearcher indexSearcher)
|
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
|
void |
setVersion(org.apache.lucene.util.Version version)
|
void |
shutdown()
|
void |
shutdown(long companyId)
|
void |
startup(long companyId)
|
void |
updateDocument(long companyId,
org.apache.lucene.index.Term term,
org.apache.lucene.document.Document document)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void addDocument(long companyId, org.apache.lucene.document.Document document) throws IOException
addDocument
in interface LuceneHelper
IOException
public void addExactTerm(org.apache.lucene.search.BooleanQuery booleanQuery, String field, String value)
addExactTerm
in interface LuceneHelper
public void addNumericRangeTerm(org.apache.lucene.search.BooleanQuery booleanQuery, String field, Integer startValue, Integer endValue)
addNumericRangeTerm
in interface LuceneHelper
public void addNumericRangeTerm(org.apache.lucene.search.BooleanQuery booleanQuery, String field, Long startValue, Long endValue)
addNumericRangeTerm
in interface LuceneHelper
public void addNumericRangeTerm(org.apache.lucene.search.BooleanQuery booleanQuery, String field, String startValue, String endValue)
addNumericRangeTerm(BooleanQuery, String, Long, Long)
addNumericRangeTerm
in interface LuceneHelper
public void addRangeTerm(org.apache.lucene.search.BooleanQuery booleanQuery, String field, String startValue, String endValue)
addRangeTerm
in interface LuceneHelper
public void addRequiredTerm(org.apache.lucene.search.BooleanQuery booleanQuery, String field, String value, boolean like)
addRequiredTerm
in interface LuceneHelper
public void addRequiredTerm(org.apache.lucene.search.BooleanQuery booleanQuery, String field, String[] values, boolean like)
addRequiredTerm
in interface LuceneHelper
public void addTerm(org.apache.lucene.search.BooleanQuery booleanQuery, String field, String value, boolean like)
addTerm
in interface LuceneHelper
public void addTerm(org.apache.lucene.search.BooleanQuery booleanQuery, String field, String value, boolean like, BooleanClauseOccur booleanClauseOccur)
addTerm
in interface LuceneHelper
public void addTerm(org.apache.lucene.search.BooleanQuery booleanQuery, String field, String[] values, boolean like)
addTerm
in interface LuceneHelper
@Deprecated public void cleanUp(org.apache.lucene.search.IndexSearcher indexSearcher)
releaseIndexSearcher(long,
IndexSearcher)
cleanUp
in interface LuceneHelper
public int countScoredFieldNames(org.apache.lucene.search.Query query, String[] filedNames)
countScoredFieldNames
in interface LuceneHelper
public void delete(long companyId)
delete
in interface LuceneHelper
public void deleteDocuments(long companyId, org.apache.lucene.index.Term term) throws IOException
deleteDocuments
in interface LuceneHelper
IOException
public void dumpIndex(long companyId, OutputStream outputStream) throws IOException
dumpIndex
in interface LuceneHelper
IOException
public org.apache.lucene.analysis.Analyzer getAnalyzer()
getAnalyzer
in interface LuceneHelper
public IndexAccessor getIndexAccessor(long companyId)
getIndexAccessor
in interface LuceneHelper
public org.apache.lucene.search.IndexSearcher getIndexSearcher(long companyId) throws IOException
getIndexSearcher
in interface LuceneHelper
IOException
public long getLastGeneration(long companyId)
getLastGeneration
in interface LuceneHelper
public InputStream getLoadIndexesInputStreamFromCluster(long companyId, Address bootupAddress) throws SystemException
getLoadIndexesInputStreamFromCluster
in interface LuceneHelper
SystemException
public Set<String> getQueryTerms(org.apache.lucene.search.Query query)
getQueryTerms
in interface LuceneHelper
@Deprecated public org.apache.lucene.search.IndexSearcher getSearcher(long companyId, boolean readOnly) throws IOException
getIndexSearcher(long)
getSearcher
in interface LuceneHelper
IOException
public String getSnippet(org.apache.lucene.search.Query query, String field, String s, int maxNumFragments, int fragmentLength, String fragmentSuffix, org.apache.lucene.search.highlight.Formatter formatter) throws IOException
getSnippet
in interface LuceneHelper
IOException
public org.apache.lucene.util.Version getVersion()
getVersion
in interface LuceneHelper
public boolean isLoadIndexFromClusterEnabled()
isLoadIndexFromClusterEnabled
in interface LuceneHelper
public void loadIndex(long companyId, InputStream inputStream) throws IOException
loadIndex
in interface LuceneHelper
IOException
public void loadIndexesFromCluster(long companyId) throws SystemException
loadIndexesFromCluster
in interface LuceneHelper
SystemException
public void releaseIndexSearcher(long companyId, org.apache.lucene.search.IndexSearcher indexSearcher) throws IOException
releaseIndexSearcher
in interface LuceneHelper
IOException
public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
public void setVersion(org.apache.lucene.util.Version version)
public void shutdown()
shutdown
in interface LuceneHelper
public void shutdown(long companyId)
shutdown
in interface LuceneHelper
public void startup(long companyId)
startup
in interface LuceneHelper
public void updateDocument(long companyId, org.apache.lucene.index.Term term, org.apache.lucene.document.Document document) throws IOException
updateDocument
in interface LuceneHelper
IOException
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |