Class 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.

ConstantDescription
EMPTY_QUERY: Number = 6EMPTY_QUERY search result status code 6, this indicates that search has been made with empty query.
ERROR: Number = 9ERROR search result status code 9, this indicates that internal server error has been occurred.
LIMITED: Number = 2LIMITED search result status code 2, this indicates that limitations on search result have been applied and full search result is not returned.
NOT_EXECUTED: Number = 0NOT_EXECUTED search result status code 0, this indicates that search API call has not been made on SearchModel.
NO_CATALOG: Number = 4NO_CATALOG search result status code 4, this indicates that there is no catalog associated for search query.
NO_CATEGORY: Number = 5NO_CATEGORY search result status code 5, this indicates that there is no category associated for search query.
NO_INDEX: Number = 8NO_INDEX search result status code 8, this indicates that there is no active search index available.
OFFLINE_CATEGORY: Number = 7OFFLINE_CATEGORY search result status code 7, this indicates that the category associated with search query is offline.
ROOT_SEARCH: Number = 3ROOT_SEARCH search result status code 3, this indicates that search result is returned for ROOT search.
SUCCESSFUL: Number = 1SUCCESSFUL search result status code 1, this indicates that search API call is executed without any issue.
PropertyDescription
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.

This class does not have a constructor, so you cannot create it directly.

MethodDescription
getDescription()Returns status code description of search result, it provides more details about search API call status.
getStatusCode()Returns status code of search result, by default it will return 0 which means that search has not been executed on SearchModel.
toString()Returns string values of status code and description.

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

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.


NOT_EXECUTED: Number = 0

NOT_EXECUTED search result status code 0, this indicates that search API call has not been made on SearchModel.


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.


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.


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.


getDescription(): String

Returns status code description of search result, it provides more details about search API call status.

Returns:

  • search status description

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(): String

Returns string values of status code and description.

Returns:

  • search status string