dw.system
Class SearchStatus
Object
dw.system.SearchStatus
A SearchStatus is used for communicating a Search API status back to a client. A status consists of status code and description. More information about search API call can be fetched by using SearchStatus class method getStatusCode and getDescription, which can be used by clients to perform different operations.
Constants
EMPTY_QUERY  :  Number = 6
EMPTY_QUERY search result status code 6, this indicates that search has been made with empty query.
ERROR  :  Number = 9
ERROR search result status code 9, this indicates that internal server error has been occurred.
LIMITED  :  Number = 2
LIMITED search result status code 2, this indicates that limitations on search result have been applied and full search result is not returned.
NO_CATALOG  :  Number = 4
NO_CATALOG search result status code 4, this indicates that there is no catalog associated for search query.
NO_CATEGORY  :  Number = 5
NO_CATEGORY search result status code 5, this indicates that there is no category associated for search query.
NO_INDEX  :  Number = 8
NO_INDEX search result status code 8, this indicates that there is no active search index available.
NOT_EXECUTED  :  Number = 0
NOT_EXECUTED search result status code 0, this indicates that search API call has not been made on SearchModel.
OFFLINE_CATEGORY  :  Number = 7
OFFLINE_CATEGORY search result status code 7, this indicates that the category associated with search query is offline.
ROOT_SEARCH  :  Number = 3
ROOT_SEARCH search result status code 3, this indicates that search result is returned for ROOT search.
SUCCESSFUL  :  Number = 1
SUCCESSFUL search result status code 1, this indicates that search API call is executed without any issue.
Properties
description  :  String  (Read Only)
Returns status code description of search result, it provides more details about search API call status.
statusCode  :  Number  (Read Only)
Returns status code of search result, by default it will return 0 which means that search has not been executed on SearchModel.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getDescription() : String
Returns status code description of search result, it provides more details about search API call status.
getStatusCode() : Number
Returns status code of search result, by default it will return 0 which means that search has not been executed on SearchModel.
toString() : String
Returns string values of status code and description.
Salesforce Commerce Cloud Courses
Salesforce B2C Commerce Developer - Certification Tests
Why risk failing the SFCC exam? Get 180 real questions, killer content, and everything you need to crush the Salesforce B2C Commerce Developer certification.

Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβ€”passing the certification exam isn't easy. That's where we come in.
Salesforce Javascript Developer I - Certification Tests
Not just another prep courseβ€”this is your shortcut to passing. Master JavaScript for Salesforce and go from 'hoping to pass' to knowing you will. Ready to start?

This isn't just another prep courseβ€”it's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
Salesforce B2C Commerce Architect - Certification Tests
Think the Developer exam was hard? Welcome to the next level.

The Salesforce B2C Commerce Architect certification is a whole different gameβ€”complex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
Method Detail
getDescription
getDescription() : String
Returns status code description of search result, it provides more details about search API call status.
Returns:
search status description

getStatusCode
getStatusCode() : Number
Returns status code of search result, by default it will return 0 which means that search has not been executed on SearchModel.
Returns:
search status code

toString
toString() : String
Returns string values of status code and description.
Returns:
search status string

β™₯
Notifications pending to read