---
schema_version: "1"
id: da2289b6f68fc02f386d8cc988c3291c4a992232e46d9aa4db3de3db8fb7c3c3
title: Search for Pages Using Attribute Values
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/b2c_20_7_w7635902_page_des_search_la.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.b2c_20_7_w7635902_page_des_search_la.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2de0d71f2876f8a6dbb3513ef2e09a1bfa2cd3eee68b27624aedd030bbd588a3
description: Developers can specify that component or page attributes are indexed and searchable. When attributes are searchable, users can find pages by searching for the attribute value. For example, users can search for the text configured for a rich text attribute.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Search for Pages Using Attribute Values

Developers can specify that component or page attributes are indexed and searchable. When attributes are searchable, users can find pages by searching for the attribute value. For example, users can search for the text configured for a rich text attribute.

How: Add the `searching` object to the definition of the attribute you want indexed, as in the following example:

```javascript
{
"id": "heading",
"name": "Banner Heading",
"required": true,
"type": "text",
"searching": {
     "searchable": true,
     "refinable": true
}
},
```

Attributes of following types can be designated as `searchable`. If the `searchable` value is not specified, the default is false.

- string
- text
- markup
- product
- category
- cms\_record
- custom
- enum-of-string

The `refinable` value indicates whether a user can further refine search results based on the content of this attribute. All `searchable` attribute types can be designated as `refinable` except cms\_record and custom.

For attributes of type custom, all elements of the attribute are considered as text for purposes of indexing. For attributes of type cms\_record, only attributes of the cms\_record that are supported as `searchable` are added to the index. For example, if the cms\_record includes an attribute of type image, the image is not indexed.

#### See Also

- [Configure Search Settings for Page Designer Pages](https://documentation.b2c.commercecloud.salesforce.com/DOC3/topic/com.demandware.dochelp/content/b2c_commerce/topics/page_designer/b2c_configure_search.html)