public class SearchQuery
extends java.lang.Object
| Constructor and Description |
|---|
SearchQuery()
Instantiates a new search query.
|
SearchQuery(IRestriction restriction)
Instantiates a new search query.
|
SearchQuery(IRestriction restriction)
Instantiates a new search query.
|
SearchQuery(java.lang.String query)
Instantiates a new search query.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableFql(boolean enableFql)
Enable fql.
|
void |
enableInterleaving(boolean enableInterleaving)
Enable interleaving.
|
void |
enableNicknames(boolean enableNicknames)
Enable nicknames.
|
void |
enableOrderingHitHighlightedProperty(boolean enableOrderingHitHighlightedProperty)
Enable ordering hit highlighted property.
|
void |
enablePhonetic(boolean enablePhonetic)
Enable phonetic.
|
void |
enableQueryRules(boolean enableQueryRules)
Enable query rules.
|
void |
enableSorting(boolean enableSorting)
Enable sorting.
|
void |
enableStemming(boolean enableStemming)
Enable stemming.
|
QueryLogClientType |
getClientType()
Gets the client type.
|
java.lang.String |
getCollapseSpecification()
Gets the collapse specification.
|
Locale |
getCulture()
Gets the culture.
|
int |
getDesiredSnippetLength()
Gets the desired snippet length.
|
java.lang.String |
getHiddenConstraints()
Gets the hidden constraints.
|
int |
getHitHighlightedMultivaluePropertyLimit()
Gets the hit highlighted multivalue property limit.
|
java.util.List<java.lang.String> |
getHitHighlightedProperties()
Gets the hit highlighted properties.
|
int |
getMaxSnippetLength()
Gets the max snippet length.
|
java.lang.String |
getPersonalizationData()
Gets the personalization data.
|
java.util.List<SearchQueryProperty> |
getProperties()
Gets the properties.
|
java.lang.String |
getQuery()
Gets the query.
|
java.lang.String |
getQueryTemplatePropertiesUrl()
Gets the query template properties url.
|
java.lang.String |
getRankingModelId()
Gets the ranking model id.
|
java.util.List<java.lang.String> |
getRefinementFilters()
Gets the refinement filters.
|
java.util.List<java.lang.String> |
getRefiners()
Gets the refiners.
|
java.util.List<ReorderingRule> |
getReorderingRules()
Gets the reordering rules.
|
java.lang.String |
getResultsUrl()
Gets the results url.
|
int |
getRowLimit()
Gets the row limit.
|
int |
getRowsPerPage()
Gets the rows per page.
|
java.util.List<java.lang.String> |
getSelectProperties()
Gets the select properties.
|
java.util.List<Sort> |
getSortList()
Gets the sort list.
|
java.lang.String |
getSourceId()
Gets the source id.
|
int |
getStartRow()
Gets the start row.
|
int |
getSummaryLength()
Gets the summary length.
|
java.util.List<java.lang.String> |
getTags()
Gets the tags.
|
java.lang.String |
getTemplate()
Gets the template.
|
int |
getTimeout()
Gets the timeout.
|
Locale |
getUILanguage()
Gets the UI language.
|
boolean |
hasNicknamesEnabled()
Checks for nicknames enabled.
|
boolean |
hasQueryRulesEnabled()
Checks for query rules enabled.
|
boolean |
isBypassResultTypes()
Checks if is bypass result types.
|
boolean |
isFqlEnabled()
Checks if is fql enabled.
|
boolean |
isGenerateBlockRankLog()
Checks if is generate block rank log.
|
boolean |
isInterleavingEnabled()
Checks if is interleaving enabled.
|
boolean |
isOrderingHitHighlightedPropertyEnabled()
Checks if is ordering hit highlighted property enabled.
|
boolean |
isPhoneticEnabled()
Checks if is phonetic enabled.
|
boolean |
isProcessBestBets()
Checks if is process best bets.
|
boolean |
isProcessPersonalFavorites()
Checks if is process personal favorites.
|
boolean |
isSortingEnabled()
Checks if is sorting enabled.
|
boolean |
isStemmingEnabled()
Checks if is stemming enabled.
|
boolean |
isTrimDuplicates()
Checks if is trim duplicates.
|
void |
setBypassResultTypes(boolean bypassResultTypes)
Sets the bypass result types.
|
void |
setClientType(QueryLogClientType clientType)
Sets the client type.
|
void |
setCollapseSpecification(java.lang.String collapseSpecification)
Sets the collapse specification.
|
void |
setCulture(Locale culture)
Sets the culture.
|
void |
setDesiredSnippetLength(int desiredSnippetLength)
Sets the desired snippet length.
|
void |
setGenerateBlockRankLog(boolean generateBlockRankLog)
Sets the generate block rank log.
|
void |
setHiddenConstraints(java.lang.String hiddenConstraints)
Sets the hidden constraints.
|
void |
setHitHighlightedMultivaluePropertyLimit(int hitHighlightedMultivaluePropertyLimit)
Sets the hit highlighted multivalue property limit.
|
void |
setMaxSnippetLength(int maxSnippetLength)
Sets the max snippet length.
|
void |
setPersonalizationData(java.lang.String personalizationData)
Sets the personalization data.
|
void |
setProcessBestBets(boolean processBestBets)
Sets the process best bets.
|
void |
setProcessPersonalFavorites(boolean processPersonalFavorites)
Sets the process personal favorites.
|
void |
setQuery(java.lang.String query)
Sets the query.
|
void |
setQueryTemplatePropertiesUrl(java.lang.String queryTemplatePropertiesUrl)
Sets the query template properties url.
|
void |
setRankingModelId(java.lang.String rankingModelId)
Sets the ranking model id.
|
void |
setResultsUrl(java.lang.String resultsUrl)
Sets the results url.
|
void |
setRowLimit(int rowLimit)
Sets the row limit.
|
void |
setRowsPerPage(int rowsPerPage)
Sets the rows per page.
|
void |
setSourceId(java.lang.String sourceId)
Sets the source id.
|
void |
setStartRow(int startRow)
Sets the start row.
|
void |
setSummaryLength(int summaryLength)
Sets the summary length.
|
void |
setTemplate(java.lang.String template)
Sets the template.
|
void |
setTimeout(int timeout)
Sets the timeout.
|
void |
setTrimDuplicates(boolean trimDuplicates)
Sets the trim duplicates.
|
void |
setUILanguage(Locale uiLanguage)
Sets the UI language.
|
java.lang.String |
toString() |
public SearchQuery()
public SearchQuery(IRestriction restriction)
restriction - the restrictionpublic SearchQuery(IRestriction restriction)
restriction - the restrictionpublic SearchQuery(java.lang.String query)
query - the querypublic void enableFql(boolean enableFql)
enableFql - the enable fqlpublic void enableInterleaving(boolean enableInterleaving)
enableInterleaving - the enable interleavingpublic void enableNicknames(boolean enableNicknames)
enableNicknames - the enable nicknamespublic void enableOrderingHitHighlightedProperty(boolean enableOrderingHitHighlightedProperty)
enableOrderingHitHighlightedProperty - the enable ordering hit highlighted propertypublic void enablePhonetic(boolean enablePhonetic)
enablePhonetic - the enable phoneticpublic void enableQueryRules(boolean enableQueryRules)
enableQueryRules - the enable query rulespublic void enableSorting(boolean enableSorting)
enableSorting - the enable sortingpublic void enableStemming(boolean enableStemming)
enableStemming - the enable stemmingpublic QueryLogClientType getClientType()
public java.lang.String getCollapseSpecification()
public Locale getCulture()
public int getDesiredSnippetLength()
public java.lang.String getHiddenConstraints()
public int getHitHighlightedMultivaluePropertyLimit()
public java.util.List<java.lang.String> getHitHighlightedProperties()
public int getMaxSnippetLength()
public java.lang.String getPersonalizationData()
public java.util.List<SearchQueryProperty> getProperties()
public java.lang.String getQuery()
public java.lang.String getQueryTemplatePropertiesUrl()
public java.lang.String getRankingModelId()
public java.util.List<java.lang.String> getRefinementFilters()
public java.util.List<java.lang.String> getRefiners()
public java.util.List<ReorderingRule> getReorderingRules()
public java.lang.String getResultsUrl()
public int getRowLimit()
public int getRowsPerPage()
public java.util.List<java.lang.String> getSelectProperties()
public java.util.List<Sort> getSortList()
public java.lang.String getSourceId()
public int getStartRow()
public int getSummaryLength()
public java.util.List<java.lang.String> getTags()
public java.lang.String getTemplate()
public int getTimeout()
public Locale getUILanguage()
public boolean hasNicknamesEnabled()
public boolean hasQueryRulesEnabled()
public boolean isBypassResultTypes()
public boolean isFqlEnabled()
public boolean isGenerateBlockRankLog()
public boolean isInterleavingEnabled()
public boolean isOrderingHitHighlightedPropertyEnabled()
public boolean isPhoneticEnabled()
public boolean isProcessBestBets()
public boolean isProcessPersonalFavorites()
public boolean isSortingEnabled()
public boolean isStemmingEnabled()
public boolean isTrimDuplicates()
public void setBypassResultTypes(boolean bypassResultTypes)
bypassResultTypes - the new bypass result typespublic void setClientType(QueryLogClientType clientType)
clientType - the new client typepublic void setCollapseSpecification(java.lang.String collapseSpecification)
collapseSpecification - the new collapse specificationpublic void setCulture(Locale culture)
culture - the new culturepublic void setDesiredSnippetLength(int desiredSnippetLength)
desiredSnippetLength - the new desired snippet lengthpublic void setGenerateBlockRankLog(boolean generateBlockRankLog)
generateBlockRankLog - the new generate block rank logpublic void setHiddenConstraints(java.lang.String hiddenConstraints)
hiddenConstraints - the new hidden constraintspublic void setHitHighlightedMultivaluePropertyLimit(int hitHighlightedMultivaluePropertyLimit)
hitHighlightedMultivaluePropertyLimit - the new hit highlighted multivalue property limitpublic void setMaxSnippetLength(int maxSnippetLength)
maxSnippetLength - the new max snippet lengthpublic void setPersonalizationData(java.lang.String personalizationData)
personalizationData - the new personalization datapublic void setProcessBestBets(boolean processBestBets)
processBestBets - the new process best betspublic void setProcessPersonalFavorites(boolean processPersonalFavorites)
processPersonalFavorites - the new process personal favoritespublic void setQuery(java.lang.String query)
query - the new querypublic void setQueryTemplatePropertiesUrl(java.lang.String queryTemplatePropertiesUrl)
queryTemplatePropertiesUrl - the new query template properties urlpublic void setRankingModelId(java.lang.String rankingModelId)
rankingModelId - the new ranking model idpublic void setResultsUrl(java.lang.String resultsUrl)
resultsUrl - the new results urlpublic void setRowLimit(int rowLimit)
rowLimit - the new row limitpublic void setRowsPerPage(int rowsPerPage)
rowsPerPage - the new rows per pagepublic void setSourceId(java.lang.String sourceId)
sourceId - the new source idpublic void setStartRow(int startRow)
startRow - the new start rowpublic void setSummaryLength(int summaryLength)
summaryLength - the new summary lengthpublic void setTemplate(java.lang.String template)
template - the new templatepublic void setTimeout(int timeout)
timeout - the new timeoutpublic void setTrimDuplicates(boolean trimDuplicates)
trimDuplicates - the new trim duplicatespublic void setUILanguage(Locale uiLanguage)
uiLanguage - the new UI languagepublic java.lang.String toString()
toString in class java.lang.Object