function

Contains

Match a string containing the supplied text.

Example

go
query.Contains("title", "ridu")

Arguments

ArgumentTypeDescription
pathPThe field, as a dot-separated name such as "seo.title" or a Path.
valuestringThe text to find, ignoring case.

Returns

The declared result.

Expression

Full signature

Related types

  • FieldPath

    A field name in a filter or sort: a string such as "seo.title", or a Path.

  • Expression

    A sealed immutable predicate consumed atomically by stores.