public class SearchQuerySuggestion
extends java.lang.Object
| Constructor and Description |
|---|
SearchQuerySuggestion()
Instantiates a new search query suggestion.
|
SearchQuerySuggestion(java.lang.String query)
Instantiates a new search query suggestion.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableQueryRules(boolean enableQueryRules)
Enable query rules.
|
void |
enableStemming(boolean enableStemming)
Enable stemming.
|
Locale |
getCulture()
Gets the culture.
|
int |
getNumberOfQuerySuggestions()
Gets the number of query suggestions.
|
int |
getNumberOfResultSuggestions()
Gets the number of result suggestions.
|
java.lang.String |
getQuery()
Gets the query.
|
boolean |
isCapitalizeFirstLetters()
Checks if is capitalize first letters.
|
boolean |
isHitHighlighting()
Checks if is hit highlighting.
|
boolean |
isPrefixMatchAllTerms()
Checks if is prefix match all terms.
|
boolean |
isPreQuerySuggestions()
Checks if is pre query suggestions.
|
boolean |
isQueryRulesEnabled()
Checks if is query rules enabled.
|
boolean |
isStemmingEnabled()
Checks if is stemming enabled.
|
void |
setCapitalizeFirstLetters(boolean capitalizeFirstLetters)
Sets the capitalize first letters.
|
void |
setCulture(Locale culture)
Sets the culture.
|
void |
setHitHighlighting(boolean hitHighlighting)
Sets the hit highlighting.
|
void |
setNumberOfQuerySuggestions(int numberOfQuerySuggestions)
Sets the number of query suggestions.
|
void |
setNumberOfResultSuggestions(int numberOfResultSuggestions)
Sets the number of result suggestions.
|
void |
setPrefixMatchAllTerms(boolean prefixMatchAllTerms)
Sets the prefix match all terms.
|
void |
setPreQuerySuggestions(boolean preQuerySuggestions)
Sets the pre query suggestions.
|
void |
setQuery(java.lang.String query)
Sets the query.
|
void |
setShowPeopleNameSuggestions(boolean showPeopleNameSuggestions)
Sets the show people name suggestions.
|
boolean |
showPeopleNameSuggestions()
Show people name suggestions.
|
java.lang.String |
toString() |
public SearchQuerySuggestion()
public SearchQuerySuggestion(java.lang.String query)
query - the querypublic void enableQueryRules(boolean enableQueryRules)
enableQueryRules - the enable query rulespublic void enableStemming(boolean enableStemming)
enableStemming - the enable stemmingpublic Locale getCulture()
public int getNumberOfQuerySuggestions()
public int getNumberOfResultSuggestions()
public java.lang.String getQuery()
public boolean isCapitalizeFirstLetters()
public boolean isHitHighlighting()
public boolean isPrefixMatchAllTerms()
public boolean isPreQuerySuggestions()
public boolean isQueryRulesEnabled()
public boolean isStemmingEnabled()
public void setCapitalizeFirstLetters(boolean capitalizeFirstLetters)
capitalizeFirstLetters - the new capitalize first letterspublic void setCulture(Locale culture)
culture - the new culturepublic void setHitHighlighting(boolean hitHighlighting)
hitHighlighting - the new hit highlightingpublic void setNumberOfQuerySuggestions(int numberOfQuerySuggestions)
numberOfQuerySuggestions - the new number of query suggestionspublic void setNumberOfResultSuggestions(int numberOfResultSuggestions)
numberOfResultSuggestions - the new number of result suggestionspublic void setPrefixMatchAllTerms(boolean prefixMatchAllTerms)
prefixMatchAllTerms - the new prefix match all termspublic void setPreQuerySuggestions(boolean preQuerySuggestions)
preQuerySuggestions - the new pre query suggestionspublic void setQuery(java.lang.String query)
query - the new querypublic void setShowPeopleNameSuggestions(boolean showPeopleNameSuggestions)
showPeopleNameSuggestions - the new show people name suggestionspublic boolean showPeopleNameSuggestions()
public java.lang.String toString()
toString in class java.lang.Object