contains

fun contains(field: String, value: String, ignoreCase: Boolean = false): Condition

Creates a contains condition for string fields. Matches documents where the specified field contains the given substring.

Return

A new contains condition.

Parameters

field

The field name to check.

value

The substring to search for.

ignoreCase

Whether to perform case-insensitive matching. Defaults to false.