---
url: https://gudhub.com/docs/core-api/filter/search/
title: "Search\n                #"
description: "This type is a smart searching. It can find and filter fields even by invalid search values. Namely, by: the word without any letter one matching letter two mat"
lang: uk
updated: 2026-09-11T14:13:29.056Z
---

# Search [#](https://gudhub.com/docs/core-api/filter/search/#search)

This type is a smart searching. It can find and filter fields even by invalid search values. Namely, by:

-   the word without any letter
-   one matching letter
-   two matching letters without space
-   any part of field value
-   a random jumble of letters in which at least two letters are in the correct order

> Note two main rules for right searching:
> 
> -   right order of letters
> -   a random word with more than three letters must have at least two letters in the correct order

Despite this, it has a simple structure:

Copy

```json
{
    "data_type": "text",
    "field_id": 625327,
    "search_type": "search",
    "selected_search_option_variable": "Value",
    "valuesArray": []
}
```

The following [examples](#example) clearly demonstrate the filtering results shown above.

Search values and results of using them in table:

| F\\S | John | Edvard Dow | Dow John | John D | johana | Jhn | E d | n |
| :-- | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :-: |
| John Dow | + | + | + | + | + | + | + | + |
| Johana | + | \- | \- | + | + | \- | \- | + |
| Edvard Dow | \- | + | \- | \- | \- | \- | + | + |
| \[ \] | \- | \- | \- | \- | \- | \- | \- | \- |

> S - search values
> 
> F - column of field values
> 
> "+" - matched by filter
> 
> "-" - not matched by filter

## Example [#](https://gudhub.com/docs/core-api/filter/search/#example)

This is the table that will be filtered:

Copy

```json
[{
    "item_id": 2979065,
    "fields": [{
        "field_id": 629160,
        "field_value": "John Dow"
    }]
    },
    {
    "item_id": 2979066,
    "fields": [{
        "field_id": 629160,
        "field_value": "Johana"
    }]
    },
    {
    "item_id": 2979067,
    "fields": [{
        "field_id": 629160,
        "field_value": "Edvard Dow"
    }]
    },
    {
    "item_id": 2979068,
    "fields": [{
        "field_id": 629160,
        "field_value": ""
    }]
}]
```

Result of filtering:

-   Search value: _John_

Copy

```json
[{
    "item_id": 2979065,
    "fields": [{
        "field_id": 629160,
        "field_value": "John Dow"
    }]
    },
    {
    "item_id": 2979066,
    "fields": [{
        "field_id": 629160,
        "field_value": "Johana"
    }]
}]
```

-   Search value: _Edvard Dow_

Copy

```json
[{
    "item_id": 2979065,
    "fields": [{
        "field_id": 629160,
        "field_value": "John Dow"
    }]
    },
    {
    "item_id": 2979067,
    "fields": [{
        "field_id": 629160,
        "field_value": "Edvard Dow"
    }]
}]
```

-   Search value: _Dow John_

Copy

```json
[{
    "item_id": 2979065,
    "fields": [{
        "field_id": 629160,
        "field_value": "John Dow"
    }]
}]
```

-   Search value: _John D_

Copy

```json
[{
    "item_id": 2979065,
    "fields": [{
        "field_id": 629160,
        "field_value": "John Dow"
    }]
    },
    {
    "item_id": 2979066,
    "fields": [{
        "field_id": 629160,
        "field_value": "Johana"
    }]
}]
```

-   Search value: _Jhn_

Copy

```json
[{
    "item_id": 2979065,
    "fields": [{
        "field_id": 629160,
        "field_value": "John Dow"
    }]
}]
```

-   Search value: _E d_

Copy

```json
[{
    "item_id": 2979065,
    "fields": [{
        "field_id": 629160,
        "field_value": "John Dow"
    }]
    },
    {
    "item_id": 2979067,
    "fields": [{
        "field_id": 629160,
        "field_value": "Edvard Dow"
    }]
}]
```

-   Search value: _n_

Copy

```json
[{
    "item_id": 2979065,
    "fields": [{
        "field_id": 629160,
        "field_value": "John Dow"
    }]
    },
    {
    "item_id": 2979066,
    "fields": [{
        "field_id": 629160,
        "field_value": "Johana"
    }]
}]
```
