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.Object
public int getLimit()
SuggestedSearchOptionsIf
getLimit
in interface SuggestedSearchOptionsIf
public void setLimit(int limit)
SuggestedSearchOptionsIf
setLimit
in interface SuggestedSearchOptionsIf
limit
- the limit to setpublic java.lang.String getStartTag()
SuggestedSearchOptionsIf
getStartTag
in interface SuggestedSearchOptionsIf
public void setStartTag(java.lang.String startTag)
SuggestedSearchOptionsIf
setStartTag
in interface SuggestedSearchOptionsIf
startTag
- the startTag to setpublic java.lang.String getEndTag()
SuggestedSearchOptionsIf
getEndTag
in interface SuggestedSearchOptionsIf
public void setEndTag(java.lang.String endTag)
SuggestedSearchOptionsIf
setEndTag
in interface SuggestedSearchOptionsIf
endTag
- the endTag to setpublic int getLanguageId()
SuggestedSearchOptionsIf
getLanguageId
in interface SuggestedSearchOptionsIf
public void setLanguageId(int languageId)
SuggestedSearchOptionsIf
setLanguageId
in interface SuggestedSearchOptionsIf
languageId
- the languageId to setpublic java.lang.String getLanguageCode()
SuggestedSearchOptionsIf
getLanguageCode
in interface SuggestedSearchOptionsIf
public void setLanguageCode(java.lang.String languageCode)
SuggestedSearchOptionsIf
setLanguageCode
in interface SuggestedSearchOptionsIf
languageCode
- the languageCode to setpublic java.lang.String getSearchText()
SuggestedSearchOptionsIf
getSearchText
in interface SuggestedSearchOptionsIf
public void setSearchText(java.lang.String searchText)
SuggestedSearchOptionsIf
setSearchText
in interface SuggestedSearchOptionsIf
searchText
- the searchText to setpublic boolean isReturnRichText()
SuggestedSearchOptionsIf
isReturnRichText
in interface SuggestedSearchOptionsIf
public void setReturnRichText(boolean returnRichText)
SuggestedSearchOptionsIf
setReturnRichText
in interface SuggestedSearchOptionsIf
returnRichText
- the returnRichText to setpublic boolean isReturnRawText()
SuggestedSearchOptionsIf
isReturnRawText
in interface SuggestedSearchOptionsIf
public void setReturnRawText(boolean returnRawText)
SuggestedSearchOptionsIf
setReturnRawText
in interface SuggestedSearchOptionsIf
returnRawText
- the returnRawText to setpublic java.lang.String getCatalogId()
SuggestedSearchOptionsIf
getCatalogId
in interface SuggestedSearchOptionsIf
public void setCatalogId(java.lang.String catalogId)
SuggestedSearchOptionsIf
setCatalogId
in interface SuggestedSearchOptionsIf
catalogId
- the catalogId to setpublic int getTopLevelCategoryId()
SuggestedSearchOptionsIf
getTopLevelCategoryId
in interface SuggestedSearchOptionsIf
public void setTopLevelCategoryId(int topLevelCategoryId)
SuggestedSearchOptionsIf
setTopLevelCategoryId
in interface SuggestedSearchOptionsIf
topLevelCategoryId
- the topLevelCategoryId to setCopyright © 2018 DS Data Systems UK Ltd.