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