dsl语句

  糊糊匹配和精切匹配 查询会报错

{
  "query": {
    "match" : {
      "caseId" : 22311575
    }
    ,
    "bool": {
      "must": [
        {
          "match_all": {}
        }
      ],
      "must_not": [],
      "should": [],
      "filter": []
    }
  },
  "from": 0,
  "size": 10,
  "sort": []
}

直接模糊匹配就可以了

{
  "query": {
    "match" : {
      "caseId" : 22311575
    }
  },
  "from": 0,
  "size": 10,
  "sort": []
}
{
  "took": 2,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 5,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": 1,
    "max_score": 1,
    "hits": [
      {
        "_index": "csc-case",
        "_type": "case-info",
        "_id": "22311575",
        "_score": 1,
        "_source": {
          "orderId": "[\"45721812\",\"4414567049\"]",
          "dataObject_168": "45721812",
          "latest_dataobject_168_scn": 9836440143286,
          "_case_dtc_168_binlog_uptime": 1529660079000,
          "_case_dtc_168_database_uptime": 1529660079000,
          "_case_dtc_168_uptime": 1529660079513,
          "caseId": "22311575",
          "dataObject_166": "4414567049",
          "latest_dataobject_166_scn": 9836440143286,
          "_case_dtc_166_database_uptime": 1529660079000,
          "_case_dtc_166_uptime": 1529660079569,
          "_case_dtc_166_binlog_uptime": 1529660079000,
          "_case_dtc_2_binlog_uptime": 1529660079000,
          "_case_dtc_2_database_uptime": 1529660079000,
          "dataObject_2": "1711775149",
          "_case_dtc_2_uptime": 1529660079644,
          "latest_dataobject_2_scn": 9836440143286,
          "_case_dtc_65_uptime": 1529660079689,
          "latest_dataobject_65_scn": 9836440143286,
          "_case_dtc_65_database_uptime": 1529660079000,
          "_case_dtc_65_binlog_uptime": 1529660079000,
          "dataObject_65": "1711775149",
          "caseTypeId": "258",
          "questionId": "5258",
          "addTime": 1529660079000,
          "subSource": "-1",
          "creatorId": "5851",
          "businessId": "2",
          "businessName": null,
          "fifthCategoryId": null,
          "orderTypeId": "118",
          "memo": null,
          "fourthCategoryId": null,
          "source": "2",
          "ownerId": "5851",
          "questionTypeId": "836",
          "content": null,
          "priorityId": "5",
          "feedbackTime": null,
          "customerType": "1001",
          "questionReasonId": "3150",
          "updaterId": "5851",
          "closerId": "5851",
          "closeTime": 1529660080000,
          "contactNumber": "[\"\",\"17354650131\"]",
          "customerId": "1711775149",
          "bizId": null,
          "startTime": 1529660079000,
          "nameSpace": null,
          "deadline": 1529746479000,
          "flowId": "301",
          "latest_main_es_update_time": 1529660080437,
          "updateTime": 1529660080000,
          "latest_main_scn": 9836440417392,
          "statusId": "2",
          "nodeId": "31871",
          "lifeCycle": "1",
          "caseStatistics_reopenCount": 0,
          "caseStatistics_callOutCount": 0,
          "caseStatistics_lastAttachmentTime": null,
          "latest_statistics_update_time": 1529660080728,
          "latest_statistics_db_update_time": 1529660081000,
          "caseStatistics_refundSuccessCount": 0,
          "lastest_statistics_scn": 9836440528174,
          "caseStatistics_attachmentCount": 0,
          "caseStatistics_latestAttachmentStaffId": null,
          "caseStatistics_urgeCount": 0,
          "caseStatistics_lastCommentTime": null,
          "caseStatistics_smsCount": 0,
          "caseStatistics_latestReopenStaffId": null,
          "caseStatistics_commentCount": 0,
          "caseStatistics_chatCount": 1,
          "caseStatistics_refundInvokeCount": 0,
          "caseStatistics_callInCount": 0,
          "caseStatistics_pushCount": 0,
          "caseStatistics_refundAmountCount": 0,
          "caseStatistics_latestReopenTime": null,
          "caseStatistics_lastCommentStaffId": null,
          "caseStatistics_elephantCount": 0,
          "caseStatistics_emailCount": 0,
          "caseStatistics_refundSubmitCount": 0
        }
      }
    ]
  }
}

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值