com.liferay.portal.repository.search
Class RepositorySearchQueryBuilderImpl
java.lang.Object
com.liferay.portal.repository.search.RepositorySearchQueryBuilderImpl
- All Implemented Interfaces:
- RepositorySearchQueryBuilder
public class RepositorySearchQueryBuilderImpl
- extends Object
- implements RepositorySearchQueryBuilder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositorySearchQueryBuilderImpl
public RepositorySearchQueryBuilderImpl()
getFullQuery
public BooleanQuery getFullQuery(SearchContext searchContext)
throws SearchException
- Specified by:
getFullQuery
in interface RepositorySearchQueryBuilder
- Throws:
SearchException
setAnalyzer
public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
addContext
protected void addContext(BooleanQuery contextQuery,
SearchContext searchContext)
throws Exception
- Throws:
Exception
addSearchKeywords
protected void addSearchKeywords(BooleanQuery searchQuery,
SearchContext searchContext)
throws Exception
- Throws:
Exception
addTerm
protected void addTerm(BooleanQuery booleanQuery,
SearchContext searchContext,
String field,
String value)
contains
protected boolean contains(Query query1,
Query query2)
getBooleanClauseOccur
protected org.apache.lucene.search.BooleanClause.Occur getBooleanClauseOccur(BooleanClauseOccur occur)
getBooleanClauseOccur
protected BooleanClauseOccur getBooleanClauseOccur(org.apache.lucene.search.BooleanClause.Occur occur)
translateQuery
protected void translateQuery(BooleanQuery booleanQuery,
SearchContext searchContext,
org.apache.lucene.search.Query query,
org.apache.lucene.search.BooleanClause.Occur occur)
throws Exception
- Throws:
Exception