Package org.codelibs.fess.query.parser
Class QueryParser
java.lang.Object
org.codelibs.fess.query.parser.QueryParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected org.apache.lucene.analysis.Analyzerprotected Stringprotected org.apache.lucene.queryparser.classic.QueryParser.Operatorprotected QueryParser.FilterChainprotected List<QueryParser.Filter> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilter(QueryParser.Filter filter) protected QueryParser.FilterChainappendFilterChain(QueryParser.Filter filter, QueryParser.FilterChain chain) protected QueryParser.FilterChainprotected voidprotected org.apache.lucene.queryparser.classic.QueryParservoidinit()org.apache.lucene.search.QueryvoidsetAllowLeadingWildcard(boolean allowLeadingWildcard) voidsetAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) voidsetDefaultField(String defaultField) voidsetDefaultOperator(org.apache.lucene.queryparser.classic.QueryParser.Operator defaultOperator)
-
Field Details
-
defaultField
-
analyzer
protected org.apache.lucene.analysis.Analyzer analyzer -
allowLeadingWildcard
protected boolean allowLeadingWildcard -
defaultOperator
protected org.apache.lucene.queryparser.classic.QueryParser.Operator defaultOperator -
filterList
-
filterChain
-
-
Constructor Details
-
QueryParser
public QueryParser()
-
-
Method Details
-
init
@PostConstruct public void init() -
parse
-
createQueryParser
protected org.apache.lucene.queryparser.classic.QueryParser createQueryParser() -
setDefaultField
-
setAnalyzer
public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) -
setAllowLeadingWildcard
public void setAllowLeadingWildcard(boolean allowLeadingWildcard) -
setDefaultOperator
public void setDefaultOperator(org.apache.lucene.queryparser.classic.QueryParser.Operator defaultOperator) -
addFilter
-
createFilterChain
protected void createFilterChain() -
appendFilterChain
protected QueryParser.FilterChain appendFilterChain(QueryParser.Filter filter, QueryParser.FilterChain chain) -
createDefaultFilterChain
-