Poq.SDK.Node

Home > @poq/sdk-sfcc > SearchRefinementsConverter > toSearchFilters

SearchRefinementsConverter.toSearchFilters() method

Converts sfcc product search refinements into search filters.

Signature:

static toSearchFilters(refinements?: ProductSearchRefinement[], options?: SearchFilterOptions): SearchResponseFilter[];

Parameters

Parameter Type Description
refinements ProductSearchRefinement[] (Optional)
options SearchFilterOptions (Optional) Options to control encoding for id value of filter.

Returns:

SearchResponseFilter[]

List of search filters.