new SearchModel()
Search helper class providing enhanced search functionality.
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. |
Returns:
Created and initialized product serach model.
(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. |
Returns:
Created and initialized product serach model.
(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. |
Returns:
Search model.