如何添加多个德鲁伊过滤器

how to add multiple Druid filters

例如我有以下 Druid 查询:

"filter": {
    "type": "and",
    "fields": [
      {
        "type": "selector",
        "dimension": "city",
        "value": "landon"
      },
      {
        "type": "selector",
        "dimension": "name",
        "value": "Tom"
      }
    ]
  }

现在我想添加一个NOT字段,我应该把它插入哪里? 映射 SQL 如: select * 来自用户 where city='landon' and name="Tom" and title<>"teacher".

我得到的答案如下:

"filter": {
    "type": "and",
    "fields": [
      {
        "type": "selector",
        "dimension": "city",
        "value": "landon"
      },
      {
        "type": "selector",
        "dimension": "name",
        "value": "Tom"
      },
      {
        "field": {
          "type": "selector",
          "dimension": "title",
          "value": "teacher"
        },
        "type": "not"
      }
    ]
  }