---
title: "Create a default and a persistent search query"
slug: "create-a-default-and-a-persistent-search-query"
abstract: "Specify a default search that Sitecore runs when users open a new search tab."
---
# Create a default and a persistent search query

You can specify a default search that Sitecore runs when users open a new search tab. You can also prevent users from being able to remove parts of a query by making the search query persistent.

> [!note]
> You can define both default and persistent queries for an item.

This topic outlines how to:

- [Define a default search](https://doc.sitecore.com/xp/en/developers/92/platform-administration-and-architecture/create-a-default-and-a-persistent-search-query.html#UUID-2dc80a41-8835-f349-fc2d-253a676cc5b7_id__Define_a_default "Define a default search")
- [Make a search query persistent](https://doc.sitecore.com/xp/en/developers/92/platform-administration-and-architecture/create-a-default-and-a-persistent-search-query.html#UUID-2dc80a41-8835-f349-fc2d-253a676cc5b7_id__Make_a_search "Make a search query persistent")

<details>
<summary><h2>Define a default search</h2></summary>

To define a default search:

1. In the content tree, navigate to the item you want to create a default search for.
2. On the **Content** tab, in the **Item Buckets** section, in the **Default bucket query** field, enter a query. For example:

    ![48181EF50C19452FB3A31A463D95FECC.png](https://doc.sitecore.com/api/markdown-image/xp/en/developers/92/platform-administration-and-architecture/images/48181EF50C19452FB3A31A463D95FECC.png)

    You can enter a query manually, paste in a query, or you can build a query in the **Build Search Query** dialog:

    ![4BF9E8E9C33F400C92FC49C8F85C3E75.png](https://doc.sitecore.com/api/markdown-image/xp/en/developers/92/platform-administration-and-architecture/images/4BF9E8E9C33F400C92FC49C8F85C3E75.png)

    When users open a new search tab, it looks, for example, like this:

    ![AA479C59CE4846A09DD72FD181FC2AA3.png](https://doc.sitecore.com/api/markdown-image/xp/en/developers/92/platform-administration-and-architecture/images/AA479C59CE4846A09DD72FD181FC2AA3.png)

</details>

<details>
<summary><h2>Make a search query persistent</h2></summary>

When users open a new search tab, they can delete the filters in the query by clicking X. If you do not want users to be able to remove parts of the query, you can make the search query persistent.

To make a search query persistent:

1. In the content tree, navigate to the item you want to define a persistent query for.
2. On the **Content** tab, in the **Item Buckets** section, in the **Persistent bucket filter** field, enter a query.

Sitecore supports these filters:

- tag
- template
- location
- sort
- custom
- tag
- start
- end

You can add multiple filters with a semicolon between the filters.

> [!note]
> Every filter is case sensitive.
>
> For example, to search for the keyword `pineapple` between a start date of `03/03/2012` and an end date of `04/04/2012`, the filter string is:
>
> `text:pineapple;start=03/03/2012;end=04/04/2012`

</details>