public class QueryParserSettings extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ALLOW_LEADING_WILDCARD
|
static boolean |
DEFAULT_ANALYZE_WILDCARD
|
static float |
DEFAULT_BOOST
|
| Constructor and Description |
|---|
QueryParserSettings()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowLeadingWildcard()
|
void |
allowLeadingWildcard(boolean allowLeadingWildcard)
|
boolean |
analyzeWildcard()
|
void |
analyzeWildcard(boolean analyzeWildcard)
|
boolean |
autoGeneratePhraseQueries()
|
void |
autoGeneratePhraseQueries(boolean autoGeneratePhraseQueries)
|
float |
boost()
|
void |
boost(float boost)
|
<any> |
boosts()
|
void |
boosts(<any> boosts)
|
org |
defaultAnalyzer()
|
void |
defaultAnalyzer(org
|
String |
defaultField()
|
void |
defaultField(String
|
org |
defaultOperator()
|
void |
defaultOperator(org
|
org |
defaultQuoteAnalyzer()
|
void |
defaultQuoteAnalyzer(org
|
boolean |
enablePositionIncrements()
|
void |
enablePositionIncrements(boolean enablePositionIncrements)
|
boolean |
equals(Object
|
boolean |
escape()
|
void |
escape(boolean escape)
|
List |
fields()
|
void |
fields(List
|
org |
forcedAnalyzer()
|
void |
forcedAnalyzer(org
|
org |
forcedQuoteAnalyzer()
|
void |
forcedQuoteAnalyzer(org
|
int |
fuzzyMaxExpansions()
|
void |
fuzzyMaxExpansions(int fuzzyMaxExpansions)
|
float |
fuzzyMinSim()
|
void |
fuzzyMinSim(float fuzzyMinSim)
|
int |
fuzzyPrefixLength()
|
void |
fuzzyPrefixLength(int fuzzyPrefixLength)
|
org |
fuzzyRewriteMethod()
|
void |
fuzzyRewriteMethod(org
|
int |
hashCode()
|
boolean |
isCacheable()
|
boolean |
lenient()
|
void |
lenient(boolean lenient)
|
Locale |
locale()
|
void |
locale(Locale
|
boolean |
lowercaseExpandedTerms()
|
void |
lowercaseExpandedTerms(boolean lowercaseExpandedTerms)
|
int |
maxDeterminizedStates()
|
void |
maxDeterminizedStates(int maxDeterminizedStates)
|
String |
minimumShouldMatch()
|
void |
minimumShouldMatch(String
|
int |
phraseSlop()
|
void |
phraseSlop(int phraseSlop)
|
String |
queryString()
|
void |
queryString(String
|
Collection |
queryTypes()
|
void |
queryTypes(Collection
|
String |
quoteFieldSuffix()
|
void |
quoteFieldSuffix(String
|
org |
rewriteMethod()
|
void |
rewriteMethod(org
|
float |
tieBreaker()
|
void |
tieBreaker(float tieBreaker)
|
DateTimeZone |
timeZone()
|
void |
timeZone(DateTimeZone timeZone)
|
boolean |
useDisMax()
|
void |
useDisMax(boolean useDisMax)
|
public static final boolean DEFAULT_ALLOW_LEADING_WILDCARD
public static final boolean DEFAULT_ANALYZE_WILDCARD
public static final float DEFAULT_BOOST
public boolean isCacheable()
public StringqueryString()
public void queryString(StringqueryString)
public StringdefaultField()
public void defaultField(StringdefaultField)
public float boost()
public void boost(float boost)
public org.apache .lucene .queryparser .classic .QueryParser .Operator defaultOperator()
public void defaultOperator(org.apache .lucene .queryparser .classic .QueryParser .Operator defaultOperator)
public boolean autoGeneratePhraseQueries()
public void autoGeneratePhraseQueries(boolean autoGeneratePhraseQueries)
public int maxDeterminizedStates()
public void maxDeterminizedStates(int maxDeterminizedStates)
public boolean allowLeadingWildcard()
public void allowLeadingWildcard(boolean allowLeadingWildcard)
public boolean lowercaseExpandedTerms()
public void lowercaseExpandedTerms(boolean lowercaseExpandedTerms)
public boolean enablePositionIncrements()
public void enablePositionIncrements(boolean enablePositionIncrements)
public int phraseSlop()
public void phraseSlop(int phraseSlop)
public float fuzzyMinSim()
public void fuzzyMinSim(float fuzzyMinSim)
public int fuzzyPrefixLength()
public void fuzzyPrefixLength(int fuzzyPrefixLength)
public int fuzzyMaxExpansions()
public void fuzzyMaxExpansions(int fuzzyMaxExpansions)
public org.apache .lucene .search .MultiTermQuery .RewriteMethod fuzzyRewriteMethod()
public void fuzzyRewriteMethod(org.apache .lucene .search .MultiTermQuery .RewriteMethod fuzzyRewriteMethod)
public boolean escape()
public void escape(boolean escape)
public org.apache .lucene .analysis .Analyzer defaultAnalyzer()
public void defaultAnalyzer(org.apache .lucene .analysis .Analyzer defaultAnalyzer)
public org.apache .lucene .analysis .Analyzer defaultQuoteAnalyzer()
public void defaultQuoteAnalyzer(org.apache .lucene .analysis .Analyzer defaultAnalyzer)
public org.apache .lucene .analysis .Analyzer forcedAnalyzer()
public void forcedAnalyzer(org.apache .lucene .analysis .Analyzer forcedAnalyzer)
public org.apache .lucene .analysis .Analyzer forcedQuoteAnalyzer()
public void forcedQuoteAnalyzer(org.apache .lucene .analysis .Analyzer forcedAnalyzer)
public boolean analyzeWildcard()
public void analyzeWildcard(boolean analyzeWildcard)
public org.apache .lucene .search .MultiTermQuery .RewriteMethod rewriteMethod()
public void rewriteMethod(org.apache .lucene .search .MultiTermQuery .RewriteMethod rewriteMethod)
public StringminimumShouldMatch()
public void minimumShouldMatch(StringminimumShouldMatch)
public void quoteFieldSuffix(StringquoteFieldSuffix)
public StringquoteFieldSuffix()
public void lenient(boolean lenient)
public boolean lenient()
public Collection<String > queryTypes()
public void queryTypes(Collection<String > queryTypes)
public <any> boosts()
public void boosts(<any> boosts)
public float tieBreaker()
public void tieBreaker(float tieBreaker)
public boolean useDisMax()
public void useDisMax(boolean useDisMax)
public void locale(Localelocale)
public Localelocale()
public void timeZone(DateTimeZone timeZone)
public DateTimeZone timeZone()
public boolean equals(Objecto)
public int hashCode()