# Block Search using UI

## 1. Step By Step Process

## 1. Search Example

Blocks of similar configuration can be searched by clicking on search icon with respect to the block as shown below:

<figure><img src="/files/n3YY88jt4f5rsSIP0NSk" alt=""><figcaption></figcaption></figure>

## 2. Search Result

Search result displays all the policies and its blocks, which have same flow with respect to the base block search.

<figure><img src="/files/W81r3gg9Q6zzoqREPq49" alt=""><figcaption></figcaption></figure>

### 2.1 Context

The search finds and displays the ranked list (most similar on top) of longest continuous matching sequences of blocks surrounding the target block (highlighted). The search considers all dimensions - next/previous, parent/child - to be of equal weight and thus ranks results by the number of blocks in the found ‘similar’ sequence.

<figure><img src="/files/BsSOiEdtf5jdCzgSwV7t" alt=""><figcaption></figcaption></figure>

Additionally, the system compares the configuration of the blocks individually, and displays the %% of similarity to the right of each block in comparison with the corresponding blocks in the base policy.

### 2.2 Block Configuration

Right panel of the UI displays the configuration details of the currently selected block as shown below.

Clicking “Apply” button will transfer (or apply) the configuration of the found block to the corresponding base policy block.

{% hint style="info" %}
**Note:** Original settings of the base policy block will be lost if ‘Apply’ action is executed.
{% endhint %}

<figure><img src="/files/Tpp9Zz1X6sNucOl5LELB" alt=""><figcaption></figcaption></figure>

### 2.3 Search Results Layout Display

Search results are displayed as folded groups by Policy (policy name is displayed in the group heading).

<figure><img src="/files/3ajP3fbUxSDtU29fKpIj" alt=""><figcaption></figcaption></figure>

The results are sorted by (in the correct order):

1\.     The number of the similar blocks in the matching sequence

2\.     Cumulative similarity score (%%) of the blocks

<figure><img src="/files/M16NnWLKE3ll0sqgnRMu" alt=""><figcaption></figcaption></figure>

## 2. Demo Video

[Youtube](https://youtu.be/qvmSPYIZx8k?si=1zSNjIFzzB0iVWCX\&t=108)


---

# Agent Instructions: 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:

```
GET https://docs.guardianservice.io/technical-information/users/standard-registry-users-schemas-and-policies/policies/block-policy-search/block-search-using-ui.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
