search
Information about a storefront search query.
To learn about storefront search and how to include it in your theme, refer to Storefront search.
| Properties | Type | Description | 
|---|---|---|
| performed | boolean | Returns trueif a search was successfully performed. Returnsfalseif not. | 
| results | The search result items. It contains a product list and product count. | |
| results_count | number | The number of results. | 
| terms | string | The entered search terms. | 
| types | an array of string | The object types that the search was performed on. | 
{
  "performed": true,
  "types": [
    "product"
  ],
  "terms": "1",
  "results_count": 76,
  "results": {
    "products": [],
    "products_count": 76
  }
}
Updated over 2 years ago
