{"id":40816,"date":"2023-03-23T11:06:00","date_gmt":"2023-09-17T19:47:32","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/"},"modified":"2024-04-29T20:11:35","modified_gmt":"2024-04-29T12:11:35","slug":"%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/","title":{"rendered":"\u3010Elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60Elasticsearch\u641c\u7d22\u67e5\u8be2Bool\u67e5\u8be2\u90e8\u5206"},"content":{"rendered":"<h1>\u76ee\u6807<\/h1>\n<p>\u672c\u6587\u4e2d\u4ecb\u7ecd\u4e86Elasticsearch\u7684\u57fa\u672c\u64cd\u4f5c\u4e4b\u4e00\uff0c\u5373Search query\u7684\u57fa\u672c\u67e5\u8be2(match_phrase, multi_match)\u3002\u7531\u4e8e\u5f00\u5934\u90e8\u5206\u662f\u5173\u4e8eElasticsearch\u7684\u8bf4\u660e\u548c\u6570\u636e\u51c6\u5907\u90e8\u5206\uff0c\u4e0e\u3010Elasticsearch\u5165\u95e8\u3011\u901f\u5b66Elasticsearch Search query \u57fa\u672c\u67e5\u8be2(match, match_all)\u7bc7\u91cd\u590d\u5185\u5bb9\uff0c\u56e0\u6b64\u53ef\u4ee5\u8df3\u8fc7\u9605\u8bfb\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">CRUD<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Search<\/ul>\n<\/li>\n<\/ul>\n<p>query<\/p>\n<p>\u57fa\u672c\u30af\u30a8\u30ea<br \/>\nTerm\u30af\u30a8\u30ea<br \/>\nBool\u30af\u30a8\u30ea<\/p>\n<p>must<br \/>\nshould<br \/>\nmust_not<br \/>\nfilter<\/p>\n<p>aggregation<\/p>\n<h1>Elasticsearch \u662f\u4e00\u79cd\u641c\u7d22\u5f15\u64ce\u3002<\/h1>\n<p>Elasticsearch \u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\uff0c\u4f7f\u7528 Java \u7f16\u5199\uff0c\u5efa\u7acb\u5728 Apache Lucene \u7684\u57fa\u7840\u4e0a\uff0c\u7531 Elastic \u516c\u53f8\u8fdb\u884c\u5f00\u53d1\u3002<br \/>\n\u60a8\u53ef\u4ee5\u901a\u8fc7\u6ce8\u518c\u7684\u6587\u6863\u5feb\u901f\u641c\u7d22\u5305\u542b\u76ee\u6807\u5355\u8bcd\u7684\u6587\u6863\u3002<br \/>\n\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 Elasticsearch \u7684 Restful API \u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<h1>\u7248\u672c\u7b49<\/h1>\n<p>Elasticsearch\u7248\u672c\uff1a7.6.2<br \/>\nKibana\u7248\u672c\uff1a7.6.2<br \/>\n\u203b \u4e3a\u4e86\u65b9\u4fbf\u8fdb\u884c\u641c\u7d22\u67e5\u8be2\u64cd\u4f5c\uff0c\u6211\u4eec\u5c06\u4f7f\u7528Kibana\u7684DevTools\u5de5\u5177\u3002<\/p>\n<h1>\u51c6\u5907\u73af\u5883<\/h1>\n<p>\u5173\u4e8e\u73af\u5883\u51c6\u5907\uff0c\u5982\u4e0b\u5e16\u5b50\u6240\u8ff0\u8fdb\u884c\u4e86\u51c6\u5907\u3002<br \/>\n\u3010Elasticsearch\u5165\u95e8\u3011\u73af\u5883\u6784\u5efa<br \/>\n\u3010Elasticsearch\u5165\u95e8\u3011\u73af\u5883\u6784\u5efa Windows\u7248<\/p>\n<h1>\u51c6\u5907<\/h1>\n<p>\u6211\u5011\u5c07\u6e96\u5099\u6a23\u672c\u6578\u64da\u3002<\/p>\n<h2>\u7535\u5b50\u5546\u52a1\u6570\u636e<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d434337434c4406c9bb2d\/12-1.png\" alt=\"image.png\" \/><\/div>\n<pre class=\"post-pre\"><code>GET kibana_sample_data_ecommerce\/_search\r\n<\/code><\/pre>\n<p>\u6211\u8ba4\u4e3a\u901a\u8fc7\u56de\u5e94\u53ef\u4ee5\u786e\u8ba4\u6570\u636e\u7684\u5b58\u5728\u3002<\/p>\n<h2>\u81ea\u5df1\u5236\u4f5c\u7684\u6570\u636e de<\/h2>\n<p>\u8bf7\u5728Kibana\u4e2d\u5207\u6362\u5230Dev Tools\uff0c\u6267\u884c\u4ee5\u4e0b\u67e5\u8be2\u4ee5\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u4e94\u4e2a\u6587\u6863\u7684\u7d22\u5f15\u3002<br \/>\n\uff08\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0c\u8fd9\u4e9b\u5185\u5bb9\u662f\u5728Elasticsearch\u5b98\u65b9\u6587\u6863\u4e2d\u63d0\u5230\u7684\u3002\u5982\u679c\u6709\u65f6\u95f4\uff0c\u8bf7\u9605\u8bfb\u4e00\u4e0b\uff0c\u4f1a\u6709\u6240\u6536\u83b7\u7684\u3002\uff09<\/p>\n<pre class=\"post-pre\"><code>PUT my_index\/_doc\/1\r\n{\r\n  \"title\": \"Elasticsearch\",\r\n  \"content\": \"Elasticsearch is the distributed search and analytics engine at the heart of the Elastic Stack. Logstash and Beats facilitate collecting, aggregating, and enriching your data and storing it in Elasticsearch. Kibana enables you to interactively explore, visualize, and share insights into your data and manage and monitor the stack. Elasticsearch is where the indexing, search, and analysis magic happens.\"\r\n}\r\n\r\nPUT my_index\/_doc\/2\r\n{\r\n  \"title\": \"Kibana\",\r\n  \"content\": \"Elasticsearch is the distributed search and analytics engine at the heart of the Elastic Stack. Logstash and Beats facilitate collecting, aggregating, and enriching your data and storing it in Elasticsearch. Kibana enables you to interactively explore, visualize, and share insights into your data and manage and monitor the stack. Elasticsearch is where the indexing, search, and analysis magic happens.\"\r\n}\r\n\r\nPUT my_index\/_doc\/3\r\n{\r\n  \"title\": \"Elasticsearch\",\r\n  \"content\": \"While not every problem is a search problem, Elasticsearch offers speed and flexibility to handle data in a wide variety of use cases:\"\r\n}\r\n\r\nPUT my_index\/_doc\/4\r\n{\r\n  \"title\": \"Kibana\",\r\n  \"content\": \"While not every problem is a search problem, Elasticsearch offers speed and flexibility to handle data in a wide variety of use cases:\"\r\n}\r\n\r\nPUT my_index\/_doc\/5\r\n{\r\n  \"title\": \"Elastic Stack\",\r\n  \"content\": \"While not every problem is a search problem, Elasticsearch offers speed and flexibility to handle data in a wide variety of use cases:\"\r\n}\r\n\r\n<\/code><\/pre>\n<p>\u8bf7\u786e\u8ba4\u60a8\u5df2\u7ecf\u6210\u529f\u521b\u5efa\u4e86\u4ee5\u4e0b\u67e5\u8be2\u7684\u7d22\u5f15\u3002<\/p>\n<pre class=\"post-pre\"><code>GET my_index\/_search\r\n<\/code><\/pre>\n<p>\u5f53\u6211\u4eec\u786e\u8ba4\u540e\uff0c\u8ba9\u6211\u4eec\u5c1d\u8bd5\u4f7f\u7528Bool\u67e5\u8be2\u3002<\/p>\n<h1>\u4ecb\u7ecd\u67e5\u8be2<\/h1>\n<h2>\u5e03\u5c14\u67e5\u8be2<\/h2>\n<p>\u5e03\u5c14\u67e5\u8be2\u662f\u5c06\u57fa\u672c\u67e5\u8be2\u7ec4\u5408\u8d77\u6765\u5f62\u6210\u590d\u5408\u67e5\u8be2\u7684\u67e5\u8be2\u7c7b\u578b\u3002<\/p>\n<h3>\u57fa\u672c\u8bed\u6cd5<\/h3>\n<pre class=\"post-pre\"><code>GET my_index\/_search\r\n{\r\n  \"query\": {\r\n    \"bool\": {\r\n      \"must\": [ &lt;\u57fa\u672c\u30af\u30a8\u30ea&gt;, &lt;\u57fa\u672c\u30af\u30a8\u30ea&gt;,,, ],\r\n      \"should\": [ &lt;\u57fa\u672c\u30af\u30a8\u30ea&gt;, &lt;\u57fa\u672c\u30af\u30a8\u30ea&gt;,,, ],\r\n      \"must_not\": [ &lt;\u57fa\u672c\u30af\u30a8\u30ea&gt;, &lt;\u57fa\u672c\u30af\u30a8\u30ea&gt;,,, ],\r\n      \"filter\": [ &lt;\u57fa\u672c\u30af\u30a8\u30ea&gt;, &lt;\u57fa\u672c\u30af\u30a8\u30ea&gt;,,, ]\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u60a8\u53ef\u4ee5\u5728\u5e03\u5c14\u53e5\u4e2d\u81ea\u7531\u7ec4\u5408\u4f7f\u7528must\u3001should\u3001must_not\u548cfilter\u8fd9\u56db\u79cd\u53e5\u5b50\uff0c\u5982\u4e0a\u6240\u8ff0\u3002<\/p>\n<h3>\u5fc5\u987b<\/h3>\n<p>\u5728\u201cmust\u201d\u8bed\u53e5\u4e2d\u6307\u5b9a\u4e86\u5fc5\u987b\u5305\u542b\u7684\u6761\u4ef6\u3002<br \/>\n\u5982\u679c\u6307\u5b9a\u4e86\u591a\u4e2a\u57fa\u672c\u67e5\u8be2\uff0c\u5219\u5fc5\u987b\u6ee1\u8db3\u6240\u6709\u6761\u4ef6\u3002<\/p>\n<p>\u4f8b\u5b50<\/p>\n<pre class=\"post-pre\"><code>GET my_index\/_search\r\n{\r\n  \"query\": {\r\n    \"bool\": {\r\n      \"must\": [\r\n        {\"match\": {\"title\": \"Elasticsearch\"}},\r\n        {\"match\": {\"content\": \"problem\"}}\r\n      ]\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u56de\u5e94<\/p>\n<pre class=\"post-pre\"><code>{\r\n  \"took\" : 6,\r\n  \"timed_out\" : false,\r\n  \"_shards\" : {\r\n    \"total\" : 1,\r\n    \"successful\" : 1,\r\n    \"skipped\" : 0,\r\n    \"failed\" : 0\r\n  },\r\n  \"hits\" : {\r\n    \"total\" : {\r\n      \"value\" : 1,\r\n      \"relation\" : \"eq\"\r\n    },\r\n    \"max_score\" : 1.7706487,\r\n    \"hits\" : [\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"3\",\r\n        \"_score\" : 1.7706487,\r\n        \"_source\" : {\r\n          \"title\" : \"Elasticsearch\",\r\n          \"content\" : \"While not every problem is a search problem, Elasticsearch offers speed and flexibility to handle data in a wide variety of use cases:\"\r\n        }\r\n      }\r\n    ]\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u901a\u8fc7\u89c2\u5bdf\u54cd\u5e94\uff0c\u60a8\u53ef\u4ee5\u770b\u51fa\u6807\u9898\u4e2d\u7684Elasticsearch\u548c\u5185\u5bb9\u4e2d\u7684\u95ee\u9898\u76f8\u5339\u914d\u3002<\/p>\n<h3>\u5e94\u8be5<\/h3>\n<p>\u5982\u679c\u5728should\u5b50\u53e5\u4e2d\u6307\u5b9a\u4e86\u591a\u4e2a\u57fa\u672c\u67e5\u8be2\u6761\u4ef6\uff0c\u90a3\u4e48\u53ea\u8981\u6ee1\u8db3\u5176\u4e2d\u4efb\u4f55\u4e00\u4e2a\u6761\u4ef6\uff0c\u5c31\u4f1a\u5339\u914d\u5230\u6587\u6863\u3002<br \/>\n\u6362\u53e5\u8bdd\u8bf4\uff0c\u4e0eOR\u641c\u7d22\u5177\u6709\u76f8\u540c\u7684\u610f\u4e49\u3002<\/p>\n<p>\u8bf7\u6c42\u7684\u793a\u4f8b\u3002<\/p>\n<pre class=\"post-pre\"><code>GET my_index\/_search\r\n{\r\n  \"query\": {\r\n    \"bool\": {\r\n      \"should\": [\r\n        {\"match\": {\"title\": \"elasticsearch\"}},\r\n        {\"match\": {\"content\": \"problem\"}}\r\n      ]\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u53cd\u5e94<\/p>\n<pre class=\"post-pre\"><code>{\r\n  \"took\" : 4,\r\n  \"timed_out\" : false,\r\n  \"_shards\" : {\r\n    \"total\" : 1,\r\n    \"successful\" : 1,\r\n    \"skipped\" : 0,\r\n    \"failed\" : 0\r\n  },\r\n  \"hits\" : {\r\n    \"total\" : {\r\n      \"value\" : 4,\r\n      \"relation\" : \"eq\"\r\n    },\r\n    \"max_score\" : 1.7706487,\r\n    \"hits\" : [\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"3\",\r\n        \"_score\" : 1.7706487,\r\n        \"_source\" : {\r\n          \"title\" : \"Elasticsearch\",\r\n          \"content\" : \"While not every problem is a search problem, Elasticsearch offers speed and flexibility to handle data in a wide variety of use cases:\"\r\n        }\r\n      },\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"1\",\r\n        \"_score\" : 0.9395274,\r\n        \"_source\" : {\r\n          \"title\" : \"Elasticsearch\",\r\n          \"content\" : \"Elasticsearch is the distributed search and analytics engine at the heart of the Elastic Stack. Logstash and Beats facilitate collecting, aggregating, and enriching your data and storing it in Elasticsearch. Kibana enables you to interactively explore, visualize, and share insights into your data and manage and monitor the stack. Elasticsearch is where the indexing, search, and analysis magic happens.\"\r\n        }\r\n      },\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"4\",\r\n        \"_score\" : 0.8311213,\r\n        \"_source\" : {\r\n          \"title\" : \"Kibana\",\r\n          \"content\" : \"While not every problem is a search problem, Elasticsearch offers speed and flexibility to handle data in a wide variety of use cases:\"\r\n        }\r\n      },\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"5\",\r\n        \"_score\" : 0.8311213,\r\n        \"_source\" : {\r\n          \"title\" : \"Elastic Stack\",\r\n          \"content\" : \"While not every problem is a search problem, Elasticsearch offers speed and flexibility to handle data in a wide variety of use cases:\"\r\n        }\r\n      }\r\n    ]\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u6839\u636e\u54cd\u5e94\u7ed3\u679c\u6765\u770b\uff0c\u5728\u6807\u9898\u4e2d\u5339\u914d Elasticsearch \u6216\u5728\u5185\u5bb9\u4e2d\u5339\u914d\u95ee\u9898\u4e4b\u4e00\u7684\u5185\u5bb9\u88ab\u68c0\u7d22\u5230\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u5728Elasticsearch\u7684\u3010\u5165\u95e8\u3011\u6307\u5357\u548cElasticsearch\u641c\u7d22\u67e5\u8be2\u7684\u57fa\u7840\u67e5\u8be2(match, match_all)\u90e8\u5206\u4e2d\uff0c\u6211\u4eec\u8fd8\u4ecb\u7ecd\u4e86minimum_should_match\uff0c\u60a8\u53ef\u4ee5\u5728\u8fd9\u91cc\u4f7f\u7528\u5b83\u3002<br \/>\n\u5728\u8fd9\u91cc\uff0c\u60a8\u53ef\u4ee5\u5728\u5e94\u8be5\u5b50\u53e5\u4e2d\u4f7f\u7528&#8221;\u6307\u5b9a\u7684\u591a\u4e2a\u6761\u4ef6\u4e2d\u81f3\u5c11\u6ee1\u8db3N\u4e2a\u6761\u4ef6&#8221;\u7684\u7528\u6cd5\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u79cd\u53ef\u80fd\u7684\u7528\u6cd5\u3002<\/p>\n<pre class=\"post-pre\"><code>GET my_index\/_search\r\n{\r\n  \"query\": {\r\n    \"bool\": {\r\n      \"should\": [\r\n        {\"match\": {\"title\": \"elasticsearch\"}},\r\n        {\"match\": {\"content\": \"problem\"}},\r\n        {\"match\": {\"content\": \"data\"}}\r\n      ],\r\n      \"minimum_should_match\": 2\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<h3>\u4e0d\u5f97\u4e0d\u53e5<\/h3>\n<p>\u53ea\u6709\u6307\u5b9a\u7684\u57fa\u672c\u67e5\u8be2\u4e0d\u5339\u914d\u7684\u7ed3\u679c\u5c06\u4ece\u641c\u7d22\u7ed3\u679c\u4e2d\u6392\u9664\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u8fd9\u662fshould\u53e5\u7684\u5426\u5b9a\u3002<\/p>\n<p>\u4f8b\u5982\u8bf7\u6c42\u3002<\/p>\n<pre class=\"post-pre\"><code>GET my_index\/_search\r\n{\r\n  \"query\": {\r\n    \"bool\": {\r\n      \"must_not\": [\r\n        {\"match\": {\"title\": \"elasticsearch\"}},\r\n        {\"match\": {\"content\": \"problem\"}}\r\n      ]\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u56de\u5e94<\/p>\n<pre class=\"post-pre\"><code>{\r\n  \"took\" : 0,\r\n  \"timed_out\" : false,\r\n  \"_shards\" : {\r\n    \"total\" : 1,\r\n    \"successful\" : 1,\r\n    \"skipped\" : 0,\r\n    \"failed\" : 0\r\n  },\r\n  \"hits\" : {\r\n    \"total\" : {\r\n      \"value\" : 1,\r\n      \"relation\" : \"eq\"\r\n    },\r\n    \"max_score\" : 0.0,\r\n    \"hits\" : [\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"2\",\r\n        \"_score\" : 0.0,\r\n        \"_source\" : {\r\n          \"title\" : \"Kibana\",\r\n          \"content\" : \"Elasticsearch is the distributed search and analytics engine at the heart of the Elastic Stack. Logstash and Beats facilitate collecting, aggregating, and enriching your data and storing it in Elasticsearch. Kibana enables you to interactively explore, visualize, and share insights into your data and manage and monitor the stack. Elasticsearch is where the indexing, search, and analysis magic happens.\"\r\n        }\r\n      }\r\n    ]\r\n  }\r\n}\r\n\r\n<\/code><\/pre>\n<p>\u6839\u636e\u54cd\u5e94\u7ed3\u679c\uff0c\u60a8\u53ef\u4ee5\u770b\u5230\u5176\u4e2d\u6ca1\u6709\u4efb\u4f55\u4e0etitle\u4e2d\u7684Elasticsearch\u6216content\u4e2d\u7684problem\u5339\u914d\u7684\u5185\u5bb9\u3002\u6b64\u5916\uff0c\u7ed3\u5408should\u8bed\u53e5\u7684\u7ed3\u679c\uff0c\u60a8\u4e5f\u53ef\u4ee5\u4e86\u89e3\u5230\u5b83\u4eec\u90fd\u5408\u5e76\u4e3a\u4e00\u4e2a\u7d22\u5f15\u3002<\/p>\n<h3>\u7b5b\u9009\u53e5\u5b50<\/h3>\n<p>\u6700\u540e\u662f\u8fc7\u6ee4\u5668\u53e5\u5b50\u3002<br \/>\n\u8fc7\u6ee4\u5668\u53e5\u5b50\u7684\u7279\u70b9\u4e0e\u4e4b\u524d\u4ecb\u7ecd\u7684\u53e5\u5b50\u7279\u70b9\u7565\u6709\u4e0d\u540c\u3002<br \/>\n\u4e4b\u524d\u7684\u53e5\u5b50\u6839\u636e\u641c\u7d22\u6761\u4ef6\u7684\u76f8\u5173\u6027\u8fd4\u56de\u5206\u6570\u3002<br \/>\n\u800c\u8fc7\u6ee4\u5668\u53e5\u5b50\u53ea\u8fd4\u56de\u5339\u914d\u6216\u4e0d\u5339\u914d\u7684\u7ed3\u679c\u3002<br \/>\n\uff08\u7531\u4e8e\u8fd9\u4e9b\u5dee\u5f02\uff0c\u5b58\u5728&#8221;\u67e5\u8be2\u4e0a\u4e0b\u6587&#8221;\u548c&#8221;\u8fc7\u6ee4\u4e0a\u4e0b\u6587&#8221;\u4e24\u79cd\u5206\u7c7b\u65b9\u5f0f\uff09<\/p>\n<p>\u8bf7\u4e3e\u4e2a\u4f8b\u5b50\u3002<\/p>\n<pre class=\"post-pre\"><code>GET kibana_sample_data_ecommerce\/_search\r\n{\r\n  \"query\": {\r\n    \"bool\": {\r\n      \"must\": [\r\n        {\"match\": {\"products.product_name\": \"shirt\"}}\r\n      ],\r\n      \"filter\": [\r\n        {\"range\": \r\n          {\r\n            \"taxful_total_price\": {\r\n              \"gte\": 10,\r\n              \"lte\": 20\r\n            } \r\n          }\r\n        }\r\n      ]\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u56de\u5e94<\/p>\n<pre class=\"post-pre\"><code>...\r\n {\r\n        \"_index\" : \"kibana_sample_data_ecommerce\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"3p4NgHMBFnhBnJdY3gCV\",\r\n        \"_score\" : 1.8671052,\r\n        \"_source\" : {\r\n          \"category\" : [\r\n            \"Men's Clothing\"\r\n          ],\r\n          \"currency\" : \"EUR\",\r\n          \"customer_first_name\" : \"Sultan Al\",\r\n          \"customer_full_name\" : \"Sultan Al Richards\",\r\n          \"customer_gender\" : \"MALE\",\r\n          \"customer_id\" : 19,\r\n          \"customer_last_name\" : \"Richards\",\r\n          \"customer_phone\" : \"\",\r\n          \"day_of_week\" : \"Saturday\",\r\n          \"day_of_week_i\" : 5,\r\n          \"email\" : \"sultan al@richards-family.zzz\",\r\n          \"manufacturer\" : [\r\n            \"Elitelligence\",\r\n            \"Low Tide Media\"\r\n          ],\r\n          \"order_date\" : \"2020-08-01T02:42:43+00:00\",\r\n          \"order_id\" : 581482,\r\n          \"products\" : [\r\n            {\r\n              \"base_price\" : 7.99,\r\n              \"discount_percentage\" : 0,\r\n              \"quantity\" : 1,\r\n              \"manufacturer\" : \"Elitelligence\",\r\n              \"tax_amount\" : 0,\r\n              \"product_id\" : 11389,\r\n              \"category\" : \"Men's Clothing\",\r\n              \"sku\" : \"ZO0562105621\",\r\n              \"taxless_price\" : 7.99,\r\n              \"unit_discount_amount\" : 0,\r\n              \"min_price\" : 3.6,\r\n              \"_id\" : \"sold_product_581482_11389\",\r\n              \"discount_amount\" : 0,\r\n              \"created_on\" : \"2016-12-24T02:42:43+00:00\",\r\n              \"product_name\" : \"Basic T-shirt - green\",\r\n              \"price\" : 7.99,\r\n              \"taxful_price\" : 7.99,\r\n              \"base_unit_price\" : 7.99\r\n            },\r\n            {\r\n              \"base_price\" : 11.99,\r\n              \"discount_percentage\" : 0,\r\n              \"quantity\" : 1,\r\n              \"manufacturer\" : \"Low Tide Media\",\r\n              \"tax_amount\" : 0,\r\n              \"product_id\" : 17390,\r\n              \"category\" : \"Men's Clothing\",\r\n              \"sku\" : \"ZO0438604386\",\r\n              \"taxless_price\" : 11.99,\r\n              \"unit_discount_amount\" : 0,\r\n              \"min_price\" : 5.4,\r\n              \"_id\" : \"sold_product_581482_17390\",\r\n              \"discount_amount\" : 0,\r\n              \"created_on\" : \"2016-12-24T02:42:43+00:00\",\r\n              \"product_name\" : \"Print T-shirt - multicoloured\",\r\n              \"price\" : 11.99,\r\n              \"taxful_price\" : 11.99,\r\n              \"base_unit_price\" : 11.99\r\n            }\r\n          ],\r\n          \"sku\" : [\r\n            \"ZO0562105621\",\r\n            \"ZO0438604386\"\r\n          ],\r\n          \"taxful_total_price\" : 19.98,\r\n          \"taxless_total_price\" : 19.98,\r\n          \"total_quantity\" : 2,\r\n          \"total_unique_products\" : 2,\r\n          \"type\" : \"order\",\r\n          \"user\" : \"sultan\",\r\n          \"geoip\" : {\r\n            \"country_iso_code\" : \"AE\",\r\n            \"location\" : {\r\n              \"lon\" : 54.4,\r\n              \"lat\" : 24.5\r\n            },\r\n            \"region_name\" : \"Abu Dhabi\",\r\n            \"continent_name\" : \"Asia\",\r\n            \"city_name\" : \"Abu Dhabi\"\r\n          }\r\n        }\r\n      }\r\n...\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u662f\u663e\u793a\u201c\u5728\u652f\u4ed8\u603b\u989d\u4e3a10\u6b27\u5143\u523020\u6b27\u5143\u4e4b\u95f4\u7684\u987e\u5ba2\u4e2d\u8d2d\u4e70\u4e86\u886c\u886b\u7684\u987e\u5ba2\u201d\u7684\u641c\u7d22\u7ed3\u679c\u3002\u572810\u6b27\u5143\u523020\u6b27\u5143\u4e4b\u95f4\u8fdb\u884c\u8fc7\u6ee4\uff0c\u7136\u540e\u4ece\u4e2d\u641c\u7d22\u4e0eproducts.product_name\u5b57\u6bb5\u5339\u914d\u4e3ashirt\u7684\u5546\u54c1\u3002<\/p>\n<p>\u4f7f\u7528\u7b5b\u9009\u5668\u53ef\u4ee5\u83b7\u5f97\u67e5\u8be2\u7f13\u5b58\u7684\u4f18\u70b9\u3002<br \/>\n\u5f53\u60a8\u4e0d\u4ec5\u4ec5\u60f3\u8981\u4e0e\u5206\u6570\u76f8\u5173\u7684\u641c\u7d22\uff0c\u800c\u662f\u60f3\u8981\u9650\u5b9a\u641c\u7d22\u8303\u56f4\u65f6\uff0c\u4f7f\u7528\u7b5b\u9009\u5668\u67e5\u8be2\u53ef\u4ee5\u6539\u5584\u6027\u80fd\u3002<br \/>\n\u4f7f\u7528\u7b5b\u9009\u5668\u67e5\u8be2\u53ef\u4ee5\u7f13\u5b58\u548c\u4fdd\u5b58\u641c\u7d22\u7ed3\u679c\uff0c\u56e0\u6b64\u4e00\u65e6\u641c\u7d22\uff0c\u5c31\u53ef\u4ee5\u5feb\u901f\u8fd4\u56de\u7ed3\u679c\u3002<br \/>\n\u8bf7\u52a1\u5fc5\u5c1d\u8bd5\u4e00\u4e0b\u3002<\/p>\n<p>\u6211\u5728\u8fd9\u91cc\u7ed3\u675f\u4e86\u5bf9\u5e03\u5c14\u67e5\u8be2\u7684\u89e3\u91ca\u3002<\/p>\n<h1>\u63a8\u8350\u5b66\u4e60\u6750\u6599<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u306f\u3058\u3081\u3066\u306eElasticsearch<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u306f\u3058\u3081\u3066\u306eKibana<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6807 \u672c\u6587\u4e2d\u4ecb\u7ecd\u4e86Elasticsearch\u7684\u57fa\u672c\u64cd\u4f5c\u4e4b\u4e00\uff0c\u5373Search query\u7684\u57fa\u672c\u67e5\u8be2(match_ [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40816","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60Elasticsearch\u641c\u7d22\u67e5\u8be2Bool\u67e5\u8be2\u90e8\u5206 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u3010elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60elasticsearch\u641c\u7d22\u67e5\u8be2bool\u67e5\u8be2\u90e8\u5206\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60Elasticsearch\u641c\u7d22\u67e5\u8be2Bool\u67e5\u8be2\u90e8\u5206\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u6807 \u672c\u6587\u4e2d\u4ecb\u7ecd\u4e86Elasticsearch\u7684\u57fa\u672c\u64cd\u4f5c\u4e4b\u4e00\uff0c\u5373Search query\u7684\u57fa\u672c\u67e5\u8be2(match_ [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u3010elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60elasticsearch\u641c\u7d22\u67e5\u8be2bool\u67e5\u8be2\u90e8\u5206\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-17T19:47:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T12:11:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d434337434c4406c9bb2d\/12-1.png\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/\",\"name\":\"\u3010Elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60Elasticsearch\u641c\u7d22\u67e5\u8be2Bool\u67e5\u8be2\u90e8\u5206 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-09-17T19:47:32+00:00\",\"dateModified\":\"2024-04-29T12:11:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60Elasticsearch\u641c\u7d22\u67e5\u8be2Bool\u67e5\u8be2\u90e8\u5206\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u3010Elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60Elasticsearch\u641c\u7d22\u67e5\u8be2Bool\u67e5\u8be2\u90e8\u5206 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u3010elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60elasticsearch\u641c\u7d22\u67e5\u8be2bool\u67e5\u8be2\u90e8\u5206\/","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60Elasticsearch\u641c\u7d22\u67e5\u8be2Bool\u67e5\u8be2\u90e8\u5206","og_description":"\u76ee\u6807 \u672c\u6587\u4e2d\u4ecb\u7ecd\u4e86Elasticsearch\u7684\u57fa\u672c\u64cd\u4f5c\u4e4b\u4e00\uff0c\u5373Search query\u7684\u57fa\u672c\u67e5\u8be2(match_ [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u3010elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60elasticsearch\u641c\u7d22\u67e5\u8be2bool\u67e5\u8be2\u90e8\u5206\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-09-17T19:47:32+00:00","article_modified_time":"2024-04-29T12:11:35+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d434337434c4406c9bb2d\/12-1.png"}],"author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/","name":"\u3010Elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60Elasticsearch\u641c\u7d22\u67e5\u8be2Bool\u67e5\u8be2\u90e8\u5206 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-09-17T19:47:32+00:00","dateModified":"2024-04-29T12:11:35+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Elasticsearch\u5165\u95e8\u3011\u5feb\u901f\u5b66\u4e60Elasticsearch\u641c\u7d22\u67e5\u8be2Bool\u67e5\u8be2\u90e8\u5206"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e3%80%90elasticsearch%e5%85%a5%e9%97%a8%e3%80%91%e5%bf%ab%e9%80%9f%e5%ad%a6%e4%b9%a0elasticsearch%e6%90%9c%e7%b4%a2%e6%9f%a5%e8%af%a2bool%e6%9f%a5%e8%af%a2%e9%83%a8%e5%88%86\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40816"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40816\/revisions"}],"predecessor-version":[{"id":87391,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40816\/revisions\/87391"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}