--- title: 'Liquid objects: search' description: Information about a storefront search query. api_name: liquid source_url: html: 'https://shopify.dev/docs/api/liquid/objects/search' md: 'https://shopify.dev/docs/api/liquid/objects/search.md' --- # search Information about a storefront search query. To learn about storefront search and how to include it in your theme, refer to [Storefront search](https://shopify.dev/themes/navigation-search/search). ## Properties * * **default\_sort\_by** [string](https://shopify.dev/docs/api/liquid/basics#string) * The default sort order of the search results, which is `relevance`. * **filters** array of [filter](https://shopify.dev/docs/api/liquid/objects/filter) * The filters that have been set up on the search page. Only filters that are relevant to the current search results are returned. If the search results contain more than 1000 products, then the array will be empty. **Tip:** To learn about how to set up filters in the admin, visit the \Shopify Help Center\. * **performed** [boolean](https://shopify.dev/docs/api/liquid/basics#boolean) * Returns `true` if a search was successfully performed. Returns `false` if not. * **results** * The search result items. An item can be an [`article`](https://shopify.dev/docs/api/liquid/objects/article), a [`page`](https://shopify.dev/docs/api/liquid/objects/page), or a [`product`](https://shopify.dev/docs/api/liquid/objects/product). **Tip:** Use the \paginate\ tag to choose how many results to show per page, up to a limit of 50. ExampleSearch result `object_type` Search results have an additional `object_type` property that returns the object type of the result. ##### Code ```liquid {% for item in search.results %}
highlight\ filter\ to highlight the search terms in search result content.
* **types**
array of [string](https://shopify.dev/docs/api/liquid/basics#string)
* The object types that the search was performed on.
A search can be performed on the following object types:
* [`article`](https://shopify.dev/docs/api/liquid/objects/article)
* [`page`](https://shopify.dev/docs/api/liquid/objects/page)
* [`product`](https://shopify.dev/docs/api/liquid/objects/product)
**Note:** The types are determined by the \\type\ query parameter\.
##### Example
```json
{
"default_sort_by": "relevance",
"filters": {},
"performed": true,
"results": [],
"results_count": 16,
"sort_by": "relevance",
"sort_options": [],
"terms": "potion",
"types": [
"article",
"page",
"product"
]
}
```
## Templates using search
[Theme architecture](https://shopify.dev/themes/architecture/templates/search)
[search template](https://shopify.dev/themes/architecture/templates/search)