> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.omni.co/feedback

```json
{
  "path": "/modeling/filters/operators/contains",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# contains

> Filters string fields for values that contain a specified substring.

Filters string fields for values that contain a specified substring. Returns rows where the field value includes the specified substring.

Can be used with [`case_insensitive`](/modeling/filters/operators/case-insensitive) to perform case-insensitive matching.

## Syntax

```yaml theme={null}
<string_field>:
  contains: <substring>
```

## Properties

<ParamField path="string_field" type="string" required>
  The string field to filter on, specified in the format `view_name.field_name`.
</ParamField>

<ParamField path="contains" type="string" required>
  The substring to search for. Returns rows where the field value includes this substring.
</ParamField>

<ParamField path="case_insensitive" type="boolean" default="false">
  When set to `true`, performs case-insensitive matching. Defaults to `false` (case-sensitive) if omitted.
</ParamField>

## Examples

```yaml title="Matches: Blob premium, For premium blobs, etc." theme={null}
products.description:
  contains: premium
```

```yaml title="Matches: Blobby Blobbington, The Great Blobby, etc." theme={null}
users.name:
  contains: Blobby
```

```yaml title="Matches: error, ERROR, Error, etc." theme={null}
messages.content:
  contains: error
  case_insensitive: true
```
