{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "term",
  "description" : "Performs a Term query on the specified field. Returns true if the provided term matches the row.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "field",
          "type" : "keyword",
          "optional" : false,
          "description" : "Field that the query will target."
        },
        {
          "name" : "query",
          "type" : "keyword",
          "optional" : false,
          "description" : "Term you wish to find in the provided field."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "keyword",
          "optional" : false,
          "description" : "Field that the query will target."
        },
        {
          "name" : "query",
          "type" : "text",
          "optional" : false,
          "description" : "Term you wish to find in the provided field."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "text",
          "optional" : false,
          "description" : "Field that the query will target."
        },
        {
          "name" : "query",
          "type" : "keyword",
          "optional" : false,
          "description" : "Term you wish to find in the provided field."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "text",
          "optional" : false,
          "description" : "Field that the query will target."
        },
        {
          "name" : "query",
          "type" : "text",
          "optional" : false,
          "description" : "Term you wish to find in the provided field."
        }
      ],
      "variadic" : false,
      "returnType" : "boolean"
    }
  ],
  "examples" : [
    "FROM books\n| WHERE TERM(author, \"gabriel\")"
  ],
  "preview" : true,
  "snapshot_only" : true
}
