Supported Data Types for Search and Sorting Rules

You can use product attributes for searching, giving you considerable flexibility in how products are identified.

There are three ways you use product attributes for searching:

Allowed Data Types for Searchable and Sorting Attributes

While most attributes can be included in both searchable and sorting attributes, sometimes the data types are treated differently. Dynamic attributes that are used in sorting rules support fewer data types than other attributes used in sorting rules. Because the value of a dynamic attribute is calculated from the values of two or more underlying attributes, the data types must be boolean or numeric.

Data Type Allowed as Dynamic Attributes Allowed In Sorting Rules Allowed In Searchable Attributes Sort and Search Treated Differently?
String N Y Y  
Enum of String N Y Y  
Date + Time N Y N  
Image N N N  
Boolean N Y N Y
Quantity N N N  
Text N N Y Y
Integer Y Y Y  
Number Y Y Y  
Date N Y N Y
email N N N  
Password N N N  
Set of String N N Y Y
Set of Integer N N Y Y
Set of Number N N Y Y
Enum of Integer N Y N Y
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.