# 🔎 Search

> **Info:**
This feature is only available with the Premium Plan.

## Search

`/pshop search` opens a menu listing every item across the shops the player can open. Typing terms narrows the list by name, and the results can be sorted. Clicking a result opens its category, on the page that holds it. When nothing matches, a barrier in the middle of the results says so.

<figure><img src="../.gitbook/assets/search/search.png" alt="" width="563"><figcaption><p>Search</p></figcaption></figure>

| Command | Permission | Description |
| --- | --- | --- |
| `/pshop search [terms]` | phoenixshop.search | Searches every shop by name. Without terms, lists everything. |
| `/pshop search hand` | phoenixshop.search | Searches every shop for the item in the main hand. |

Both are given to everyone by default. Bedrock players using forms get the results as a form.

## Search by Item

Instead of a name, a search can look for one item. Vanilla items match by material, and also by the shop item's [selling rule](../main-features/items/edit-item.md#selling-rule). Items from other plugins, such as ItemsAdder, Nexo or MMOItems, match by their namespaced id.

<figure><img src="../.gitbook/assets/search/search-by-item.png" alt="" width="563"><figcaption><p>Search (Search By Item)</p></figcaption></figure>

There are two ways to set the item:

* `/pshop search hand`, holding the item.
* The **Search By Item** button of the search menu. Click it with an item on the cursor to search for that item, or with an empty cursor to clear the filter. The item stays on the cursor.

When a name and an item are both set, a result has to match both.

## Excluded Shops

Shops left out of the search results, by identifier. Case does not matter. It is set in config.yml, and has no editor option.

```yaml
search:
  excluded-shops: []
```

The layout of the menu is covered on [Customize Menus](../configurations/customize-menus.md#search-menu).

Source: https://www.phoenixplugins.com/docs/phoenix-shop/features/search