kibana dev tools 搜索示例

GET staging_ticket_sale/ticket_sale_item/TicketOrderItem-2100043067534631232


GET staging_ticket_sale/_search
{
  "query": {"match": {
    "_id": "TicketOrderItem-2100043067534631232"
  }}
}

GET staging_ticket_sale/_search
{
  "query": {"match": {
    "ticketSaleOrderId": "TicketOrder-240681584853185"
  }}
}

GET staging_ticket_sale/_search
{
  "query": {
    "match": {
      "saleCodeId": "25"
    }
  }
}

与
GET staging_ticket_sale/_search
{
  "query": {
    "bool":{
      "must":[
        {
          "match": {
            "humanTypeId": "1"
          }
        },
        {
          "match": {
            "accountId": "40"
          }
        },
        {
          "match": {
            "saleCodeId": "25"
          }
        }
      ]
    }
  }
}

或
GET staging_ticket_sale/_search
{
  "query": {
    "bool":{
      "should":[
        {
          "match": {
            "humanTypeId": "1"
          }
        },
        {
          "match": {
            "accountId": "40"
          }
        },
        {
          "match": {
            "saleCodeId": "25"
          }
        }
      ]
    }
  }
}

  

posted @ 2019-07-01 14:50  南侠书生  阅读(1120)  评论(0编辑  收藏  举报