|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.search.lucene.LuceneSearchQueryFilterParser
public class LuceneSearchQueryFilterParser
Parses ISearchQueryFilter
to Lucene query language.
Constructor Summary | |
---|---|
LuceneSearchQueryFilterParser()
|
Method Summary | |
---|---|
protected String |
escapeClauseTerm(String term)
Escapes the clause term. |
String |
parse(ISearchQueryFilter queryFilter)
A parser to ISearchQueryFilter . |
protected String |
parseClause(SearchClause searchClause)
A parser to SearchClause for Lucene. |
protected String |
parseFilterGroup(SearchFilterGroup searchFilterGroup)
A parser to SearchFilterGroup for Lucene. |
protected String |
parseGroupOperator(String operator)
A parser to SearchFilterGroup.getOperator() . |
protected void |
verifyClauseOperator(String operator)
A parser to SearchClause.getOperator() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LuceneSearchQueryFilterParser()
Method Detail |
---|
public String parse(ISearchQueryFilter queryFilter)
ISearchQueryFilter
.
queryFilter
- to be parsed.
protected String parseGroupOperator(String operator)
SearchFilterGroup.getOperator()
.
If the operator is not supported a IllegalArgumentException
is given.
operator
- to be parsed.
protected void verifyClauseOperator(String operator)
SearchClause.getOperator()
.
If the operator is not supported a IllegalArgumentException
is given.
operator
- protected String parseFilterGroup(SearchFilterGroup searchFilterGroup)
SearchFilterGroup
for Lucene.
searchFilterGroup
- to be parsed.
protected String parseClause(SearchClause searchClause)
SearchClause
for Lucene. Usually return a string clause like
scope:("term1" "term2" ...)
searchClause
- to be parsed.
protected String escapeClauseTerm(String term)
the
- term to be escaped.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |