---
title: "Use in relation editor"
slug: "use-in-relation-editor"
abstract: "How to use a Search component as a filter in another component."
---
# Use in relation editor

By default, pages render **Search** components as search filters. However, you can use a **Search** component as a filter in another [component](https://doc.sitecore.com/ch/en/users/content-hub/page-components.html "Page components"). In this case, you do not need to render the **Search** component because you only use its filtering properties.

> [!important]
> Enabling the **Use in relation editor** feature flags the search component as *NESTED*, letting you use it inside another component.

> [!note]
> **Before you begin**
> -   [Add a **Search** component](https://doc.sitecore.com/ch/en/users/content-hub/add,-modify,-or-delete-page-components.html "Add, modify, or delete page components") to the page.

## Configure the use in relation editor

1. On the **Layout** tab, click the page component to open its details page.
2. On the **Functionality** tab, turn on the **Use in relation editor** switch.
3. Define the [facets](https://doc.sitecore.com/ch/en/users/content-hub/facets.html "Facets") and [queries](https://doc.sitecore.com/ch/en/users/content-hub/query-builder.html "Query builder") you need. Refer to the [nested search component example](https://doc.sitecore.com/ch/en/users/content-hub/example---use-in-relation-editor.html "Example - Use in relation editor") to see how you can do this.
4. Click **Save**.