> For the complete documentation index, see [llms.txt](https://docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verifone.com/support-us/verifone-hq/vhq-device-search/search-by-hierarchy-group-or-additional-attributes/search-by-hierarchy.md).

# Search by hierarchy

This section discusses the hierarchy search attribute available in the Device Search feature.

{% hint style="info" %}
**Use this when** you want to narrow Device Search results to a specific hierarchy level or levels.
{% endhint %}

You can perform a more specific search according to the hierarchy level, using either List View or Tree View.

## Narrow a search by hierarchy

{% tabs %}
{% tab title="List view" %}
{% stepper %}
{% step %}

### Select the hierarchy level

In list view, select the hierarchy level you want to search within.
{% endstep %}

{% step %}

### Add the hierarchy to your search

Click **Add Hierarchy**. You can drill down by clicking on the selected hierarchy to view the child hierarchy. The *Search Criteria* section is displayed with the hierarchy added.
{% endstep %}
{% endstepper %}

<figure><img src="https://600591075-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHUGEtJbVPg5OkUtYCm8j%2Fuploads%2FDz12oatZBef4xuBz51jw%2Fimage.png?alt=media&#x26;token=df59bea0-4530-454b-b236-8a6ccd5b49dd" alt="Add Hierarchy in list view"><figcaption></figcaption></figure>

{% hint style="info" %}
You can also add multiple hierarchies.
{% endhint %}
{% endtab %}

{% tab title="Tree view" %}
The tree view contains the hierarchies in leaf nodes and container nodes. The root node, which is the top node, can be expanded and collapsed to view the container nodes. You can view and interact with a hierarchically arranged collection using either single or multiple selection.

{% stepper %}
{% step %}

### Expand or collapse the hierarchy

Click the **<** button to expand and the **∨** button to collapse the nodes.
{% endstep %}

{% step %}

### Add the hierarchy to your search

Select the hierarchy, then click **Add to Criteria**. The *Search Criteria* section is displayed with the added hierarchy level.
{% endstep %}
{% endstepper %}

<figure><img src="https://600591075-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHUGEtJbVPg5OkUtYCm8j%2Fuploads%2FmKzCtuV2BYPuRJQUqou9%2Fimage.png?alt=media&#x26;token=b6889a92-d1c5-4074-9746-6b7953be8be8" alt="Add to Criteria in tree view"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

<details>

<summary>Keywords</summary>

Also called: hierarchy search, list view search, tree view search. Search terms: add hierarchy, add to criteria, hierarchy level.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.verifone.com/support-us/verifone-hq/vhq-device-search/search-by-hierarchy-group-or-additional-attributes/search-by-hierarchy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
