Home > @poq/sdk-sfcc > SearchRefinementsConverter > toSearchFilters
Converts sfcc product search refinements into search filters.
Signature:
static toSearchFilters(refinements?: ProductSearchRefinement[], options?: SearchFilterOptions): SearchResponseFilter[];
Parameter | Type | Description |
---|---|---|
refinements | ProductSearchRefinement[] | (Optional) |
options | SearchFilterOptions | (Optional) Options to control encoding for id value of filter. |
Returns:
List of search filters.