public class SuggestedSearchOptions extends java.lang.Object implements SuggestedSearchOptionsIf
| Constructor and Description |
|---|
SuggestedSearchOptions()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCatalogId()
If the catalog id is set to a valid value and Solr is configured to create a suggested search
list for each catalog, then it is used to look up from a list of suggested search items that
are available for that catalog.
|
java.lang.String |
getEndTag()
HTML end tag for search string.
|
java.lang.String |
getLanguageCode()
If the language code is set to a valid value, this is used rather than the languageId which
improves performance since the language doesn't have to be looked up.
|
int |
getLanguageId()
Id of the language object to be used.
|
int |
getLimit()
Maximum number of results to return.
|
java.lang.String |
getSearchText()
Search Text
|
java.lang.String |
getStartTag()
HTML start tag for search string.
|
int |
getTopLevelCategoryId()
When set to a number greater than 0, it limits results to products within the category tree
where the top level category is defined by this id.
|
boolean |
isReturnRawText()
When set to true, the raw text attribute of the suggested search item contains a value,
otherwise it is null.
|
boolean |
isReturnRichText()
When set to true, the results are returned with formatting to highlight the search string
within the results.
|
void |
setCatalogId(java.lang.String catalogId)
If the catalog id is set to a valid value and Solr is configured to create a suggested search
list for each catalog, then it is used to look up from a list of suggested search items that
are available for that catalog.
|
void |
setEndTag(java.lang.String endTag)
HTML end tag for search string.
|
void |
setLanguageCode(java.lang.String languageCode)
If the language code is set to a valid value, this is used rather than the languageId which
improves performance since the language doesn't have to be looked up.
|
void |
setLanguageId(int languageId)
Id of the language object to be used.
|
void |
setLimit(int limit)
Maximum number of results to return.
|
void |
setReturnRawText(boolean returnRawText)
When set to true, the raw text attribute of the suggested search item contains a value,
otherwise it is null.
|
void |
setReturnRichText(boolean returnRichText)
When set to true, the results are returned with formatting to highlight the search string
within the results.
|
void |
setSearchText(java.lang.String searchText)
Search Text
|
void |
setStartTag(java.lang.String startTag)
HTML start tag for search string.
|
void |
setTopLevelCategoryId(int topLevelCategoryId)
When set to a number greater than 0, it limits results to products within the category tree
where the top level category is defined by this id.
|
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic int getLimit()
SuggestedSearchOptionsIfgetLimit in interface SuggestedSearchOptionsIfpublic void setLimit(int limit)
SuggestedSearchOptionsIfsetLimit in interface SuggestedSearchOptionsIflimit - the limit to setpublic java.lang.String getStartTag()
SuggestedSearchOptionsIfgetStartTag in interface SuggestedSearchOptionsIfpublic void setStartTag(java.lang.String startTag)
SuggestedSearchOptionsIfsetStartTag in interface SuggestedSearchOptionsIfstartTag - the startTag to setpublic java.lang.String getEndTag()
SuggestedSearchOptionsIfgetEndTag in interface SuggestedSearchOptionsIfpublic void setEndTag(java.lang.String endTag)
SuggestedSearchOptionsIfsetEndTag in interface SuggestedSearchOptionsIfendTag - the endTag to setpublic int getLanguageId()
SuggestedSearchOptionsIfgetLanguageId in interface SuggestedSearchOptionsIfpublic void setLanguageId(int languageId)
SuggestedSearchOptionsIfsetLanguageId in interface SuggestedSearchOptionsIflanguageId - the languageId to setpublic java.lang.String getLanguageCode()
SuggestedSearchOptionsIfgetLanguageCode in interface SuggestedSearchOptionsIfpublic void setLanguageCode(java.lang.String languageCode)
SuggestedSearchOptionsIfsetLanguageCode in interface SuggestedSearchOptionsIflanguageCode - the languageCode to setpublic java.lang.String getSearchText()
SuggestedSearchOptionsIfgetSearchText in interface SuggestedSearchOptionsIfpublic void setSearchText(java.lang.String searchText)
SuggestedSearchOptionsIfsetSearchText in interface SuggestedSearchOptionsIfsearchText - the searchText to setpublic boolean isReturnRichText()
SuggestedSearchOptionsIfisReturnRichText in interface SuggestedSearchOptionsIfpublic void setReturnRichText(boolean returnRichText)
SuggestedSearchOptionsIfsetReturnRichText in interface SuggestedSearchOptionsIfreturnRichText - the returnRichText to setpublic boolean isReturnRawText()
SuggestedSearchOptionsIfisReturnRawText in interface SuggestedSearchOptionsIfpublic void setReturnRawText(boolean returnRawText)
SuggestedSearchOptionsIfsetReturnRawText in interface SuggestedSearchOptionsIfreturnRawText - the returnRawText to setpublic java.lang.String getCatalogId()
SuggestedSearchOptionsIfgetCatalogId in interface SuggestedSearchOptionsIfpublic void setCatalogId(java.lang.String catalogId)
SuggestedSearchOptionsIfsetCatalogId in interface SuggestedSearchOptionsIfcatalogId - the catalogId to setpublic int getTopLevelCategoryId()
SuggestedSearchOptionsIfgetTopLevelCategoryId in interface SuggestedSearchOptionsIfpublic void setTopLevelCategoryId(int topLevelCategoryId)
SuggestedSearchOptionsIfsetTopLevelCategoryId in interface SuggestedSearchOptionsIftopLevelCategoryId - the topLevelCategoryId to setCopyright © 2018 DS Data Systems UK Ltd.