{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "contains",
  "description" : "Returns a boolean that indicates whether a keyword substring is within another string.\nReturns `null` if either parameter is null.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "string",
          "type" : "keyword",
          "optional" : false,
          "description" : "String expression: input string to check against. If `null`, the function returns `null`."
        },
        {
          "name" : "substring",
          "type" : "keyword",
          "optional" : false,
          "description" : "String expression: A substring to find in the input string. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    },
    {
      "params" : [
        {
          "name" : "string",
          "type" : "keyword",
          "optional" : false,
          "description" : "String expression: input string to check against. If `null`, the function returns `null`."
        },
        {
          "name" : "substring",
          "type" : "text",
          "optional" : false,
          "description" : "String expression: A substring to find in the input string. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    },
    {
      "params" : [
        {
          "name" : "string",
          "type" : "text",
          "optional" : false,
          "description" : "String expression: input string to check against. If `null`, the function returns `null`."
        },
        {
          "name" : "substring",
          "type" : "keyword",
          "optional" : false,
          "description" : "String expression: A substring to find in the input string. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    },
    {
      "params" : [
        {
          "name" : "string",
          "type" : "text",
          "optional" : false,
          "description" : "String expression: input string to check against. If `null`, the function returns `null`."
        },
        {
          "name" : "substring",
          "type" : "text",
          "optional" : false,
          "description" : "String expression: A substring to find in the input string. If `null`, the function returns `null`."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    }
  ],
  "examples" : [
    "ROW a = \"hello\"\n| EVAL has_ll = CONTAINS(a, \"ll\")"
  ],
  "preview" : false,
  "snapshot_only" : false
}
