menu

SiteGenesis / Server-side JS / Class: SearchModel

models/SearchModel~ SearchModel

new SearchModel()

Search helper class providing enhanced search functionality.

Source:

Methods

(static) initializeContentSearchModel(httpParameterMap) → {dw.content.ContentSearchModel}

Creates and initializes a {dw.content.ContentSearchModel} based on the given HTTP parameters.

Parameters:
Name Type Description
httpParameterMap dw.web.HttpParameterMap

HttpParameterMap to read content search parameters from.

Source:
Returns:

Created and initialized product serach model.

Type
dw.content.ContentSearchModel

(static) initializeProductSearchModel(httpParameterMap) → {dw.catalog.ProductSearchModel}

Creates and initializes a {dw.catalog.ProductSearchModel} based on the given HTTP parameters.

Parameters:
Name Type Description
httpParameterMap dw.web.HttpParameterMap

HttpParameterMap to read product search parameters from.

Source:
Returns:

Created and initialized product serach model.

Type
dw.catalog.ProductSearchModel

(static) initializeSearchModel(searchModel, httpParameterMap) → {dw.catalog.SearchModel}

Initializes the given search model using the HttpParameterMap.

Parameters:
Name Type Description
searchModel dw.catalog.SearchModel

SearchModel to initialize.

httpParameterMap dw.web.HttpParameterMap

HttpParameterMap to read common search parameters from.

Source:
Returns:

Search model.

Type
dw.catalog.SearchModel

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.