{"id":40791,"date":"2023-09-06T13:56:08","date_gmt":"2023-10-27T19:40:46","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/"},"modified":"2024-04-30T21:44:24","modified_gmt":"2024-04-30T13:44:24","slug":"%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/","title":{"rendered":"\u4f7f\u7528Elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"<h1>\u6211\u60f3\u4f7f\u7528Elasticsearch\u521b\u5efa\u4e00\u4e2a\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f\u3002<\/h1>\n<p>\u5982\u679c\u6709\u4e00\u4e2a\u80fd\u591f\u4ece\u51b0\u7bb1\u91cc\u5269\u4e0b\u7684\u98df\u6750\u4e2d\u7b80\u5355\u641c\u7d22\u98df\u8c31\u7684\u5e94\u7528\u5c31\u597d\u4e86?<br \/>\n\u867d\u7136\u4f7f\u7528\u98df\u8c31\u7c7b\u7684API\u4e5f\u53ef\u4ee5\uff0c\u4f46\u662f\u6761\u4ef6\u5f88\u591a\uff0c\u6211\u5012\u662f\u60f3\u8bd5\u8bd5\u7528Elasticsearch?<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d42ed37434c4406c9abcd\/2-0.png\" alt=\"Untitled (1).png\" \/><\/div>\n<p>1. \u6839\u636e\u98df\u6750\u6dfb\u52a0\u6761\u4ef6\uff0c\u8fdb\u884c\u641c\u7d22\uff01<br \/>\n2. \u5728Elasticsearch\u4e2d\u641c\u7d22\u6761\u4ef6\uff01<br \/>\n3. \u663e\u793a\u7ed3\u679c\uff01\uff08\u70b9\u51fb\u94fe\u63a5\u8df3\u8f6c\u5230\u98df\u8c31\u7f51\u7ad9\uff09<\/p>\n<p>\u9996\u5148\uff0c\u4e0d\u5c1d\u8bd5\u4f7f\u7528Elasticsearch\u662f\u4e0d\u80fd\u5f00\u59cb\u7684\uff01<\/p>\n<h2>Elasticsearch \u662f\u4ec0\u4e48\uff1f<\/h2>\n<p>Elasticsearch\u662f\u7531Elastic\u516c\u53f8\u5f00\u53d1\u7684\u5f00\u6e90\u5168\u6587\u641c\u7d22\u5f15\u64ce\uff0c\u80fd\u591f\u5feb\u901f\u4ece\u5927\u91cf\u6587\u6863\u4e2d\u63d0\u53d6\u5305\u542b\u76ee\u6807\u5355\u8bcd\u7684\u6587\u6863\u3002<\/p>\n<p>Elasticsearch\u901a\u8fc7\u4f7f\u7528RESTful\u63a5\u53e3\u6765\u8fdb\u884c\u64cd\u4f5c\uff0c\u800c\u4e0d\u4f7f\u7528SQL\u8bed\u53e5\u3002<\/p>\n<p>Elasticsearch \u63d0\u4f9b\u4e86\u51e0\u4e4e\u6240\u6709\u64cd\u4f5c\u7684 API\uff0c\u5305\u62ec\u641c\u7d22\u3001\u5404\u79cd\u8bbe\u7f6e\u548c\u670d\u52a1\u5668\u72b6\u6001\u83b7\u53d6\u3002<br \/>\n\u5b83\u8fd8\u63d0\u4f9b\u4e86\u6dfb\u52a0\u3001\u67e5\u8be2\u3001\u66f4\u65b0\u548c\u5220\u9664\u6587\u6863\u7684 API\uff0c\u5176\u89c4\u8303\u975e\u5e38\u7b80\u5355\u548c\u76f4\u89c2\u3002<\/p>\n<p>\u8868\u793a\u6587\u6863\u7684URL\u6a21\u5f0f<\/p>\n<pre class=\"post-pre\"><code>\/{index}\/{type}\/{id}\r\n<\/code><\/pre>\n<p>\u57fa\u672c\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528GET\u3001PUT\u3001POST\u3001DELETE\u548cHEAD\u65b9\u6cd5\u5bf9\u5404\u79cd\u6587\u6863\u7684\u7ec8\u7aef\u70b9\u8fdb\u884c\u6dfb\u52a0\u3001\u66f4\u65b0\u3001\u5220\u9664\u7b49\u64cd\u4f5c\u3002<\/p>\n<p>\u5728Elasticsearch\u4e2d\uff0c\u4e0e\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff08RDB\uff09\u76f8\u6bd4\uff0c\u672f\u8bed\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<div>\n<div class=\"post-table\">ElasticsearchRDB\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30bf\u30a4\u30d7\u30c6\u30fc\u30d6\u30eb\u30d5\u30a3\u30fc\u30eb\u30c9\u30ab\u30e9\u30e0\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30ec\u30b3\u30fc\u30c9<\/div>\n<\/div>\n<p>\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u5728\u672c\u5730\u73af\u5883\u4e2d\u5c1d\u8bd5\u8fd0\u884c\u4e00\u4e0b\u3002<\/p>\n<h2>\u672c\u5730\u73af\u5883\u914d\u7f6e<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4f7f\u7528\u30d0\u30fc\u30b8\u30e7\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>Elasticsearch 2.4.1<\/p>\n<p>\u4efb\u610f\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4ee5\u4e0b\u5b9f\u65bd<\/p>\n<pre class=\"post-pre\"><code>curl -L -O https:\/\/download.elastic.co\/elasticsearch\/release\/org\/elasticsearch\/distribution\/tar\/elasticsearch\/2.4.1\/elasticsearch-2.4.1.tar.gz\r\n<\/code><\/pre>\n<ul class=\"post-ul\">elasticsearch-2.4.1.tar.gz\u3092\u89e3\u51cd<\/ul>\n<pre class=\"post-pre\"><code>tar -xvf elasticsearch-2.4.1.tar.gz\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u89e3\u51cd\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e.\/bin\u914d\u4e0b\u3067\u4ee5\u4e0b\u5b9f\u65bd\u3067\u8d77\u52d5<\/ul>\n<pre class=\"post-pre\"><code>.\/elasticsearch\r\n<\/code><\/pre>\n<h2>\u6570\u636e\u7684\u5f55\u5165 de<\/h2>\n<p>\u867d\u7136\u539f\u672c\u8ba1\u5212\u901a\u8fc7API\u4ece\u6279\u91cf\u7b49\u6a21\u5f0f\u4e2d\u83b7\u53d6\u914d\u65b9\u7684JSON\u6570\u636e\uff0c\u5e76\u81ea\u52a8\u5c06\u5176\u6ce8\u518c\u5230Elasticsearch\u4e2d\uff0c\u4f46\u7531\u4e8e\u672c\u6b21\u662f\u5728\u672c\u5730\u8fdb\u884c\uff0c\u6240\u4ee5\u4e3a\u4e86\u5b66\u4e60\u517c\u987e\uff0c\u6211\u4eec\u5c06\u9009\u62e9\u624b\u52a8\u8fdb\u884c\u6570\u636e\u6ce8\u518c\u3002<\/p>\n<h3>\u751f\u6210\u7d22\u5f15\uff08\u6570\u636e\u5e93\uff09<\/h3>\n<pre class=\"post-pre\"><code>curl -XPUT 'localhost:9200\/refrigerator'\r\n<\/code><\/pre>\n<h3>\u8f93\u5165\u5236\u4f5c<\/h3>\n<pre class=\"post-pre\"><code>curl -XPUT 'http:\/\/localhost:9200\/refrigerator\/_mapping\/recipe' -d '\r\n{\r\n    \"properties\" : {\r\n      \"recipeId\" : {\r\n        \"type\" : \"long\"\r\n      },\r\n      \"recipeTitle\" : {\r\n        \"type\" : \"string\"\r\n      },\r\n      \"recipeUrl\" : {\r\n        \"type\" : \"string\"\r\n      },\r\n      \"foodImageUrl\" : {\r\n        \"type\" : \"string\"\r\n      },\r\n      \"recipeDescription\" : {\r\n        \"type\" : \"string\"\r\n      },\r\n      \"recipeMaterial\" : {\r\n        \"type\" : \"string\"\r\n      }\r\n    }\r\n}\r\n<\/code><\/pre>\n<h3>\u83dc\u8c31\u8bb0\u5f55\u6ce8\u518c<\/h3>\n<p>\u6211\u5df2\u7ecf\u6ce8\u518c\u4e86\u4ece\u697d\u5929\u30ec\u30b7\u30d4API\u83b7\u53d6\u7684\u83dc\u8c31\uff08\u6570\u636e\u5df2\u7ecf\u8131\u654f\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>curl -XPUT 'localhost:9200\/refrigerator\/recipe\/1?pretty' -d '\r\n{\r\n  \"recipeId\": xxxxxxxx,\r\n  \"recipeTitle\": \"\u30c0\u30fc\u30ea\u30f3\u304c\u6c17\u306b\u5165\u3063\u305f\u266a\u6211\u304c\u5bb6\u306e\u30dd\u30fc\u30af\u30b1\u30c1\u30e3\u30c3\u30d7\",\r\n  \"recipeUrl\": \"https:\/\/recipe.rakuten.co.jp\/recipe\/xxxxxxx\/\",\r\n  \"foodImageUrl\": \"https:\/\/image.space.rakuten.co.jp\/d\/strg\/ctrl\/xxxxxxx\",\r\n  \"recipeDescription\": \"\u30c0\u30fc\u30ea\u30f3\u304c\u300c\u7f8e\u5473\u3057\u3044\u300d\u3068\u559c\u3093\u3067\u98df\u3079\u3066\u304f\u308c\u305f\u3001\u3068\u3063\u3066\u3082\u7c21\u5358\u306b\u51fa\u6765\u308b\u30ec\u30b7\u30d4\u3067\u3059\",\r\n  \"recipeMaterial\": [\r\n        \"\u8c5a\u8089(\u3053\u307e\u5207\u308c)\",\r\n        \"\u305f\u307e\u306d\u304e\",\r\n        \"\u30b1\u30c1\u30e3\u30c3\u30d7\",\r\n        \"\u4e09\u6e29\u7cd6\",\r\n        \"\u30a6\u30b9\u30bf\u30fc\u30bd\u30fc\u30b9\"\r\n  ]\r\n}\r\n<\/code><\/pre>\n<p>&#8220;Column&#8221;, &#8220;Data&#8221; are the components.<br \/>\n* It is possible to write the syntax directly, but it is also possible to specify the content in a JSON file and use the file.<br \/>\nExample: curl -XPUT &#8216;http:\/\/[Endpoint]\/[Index Name]\/[Type Name]\/[Id]&#8217; -d &#8216;JSON data&#8217;<\/p>\n<h2>\u6211\u4f1a\u5c1d\u8bd5\u5b9e\u9645\u641c\u7d22\u3002<\/h2>\n<pre class=\"post-pre\"><code>curl -XPOST 'localhost:9200\/refrigerator\/recipe\/_search?pretty' -d '\r\n{\r\n  \"query\": { \"match\": { \"recipeMaterial\": \"\u305f\u307e\u306d\u304e \u8c5a\u8089\" } }\r\n}\r\n<\/code><\/pre>\n<h3>\u6700\u5f8c\u7684\u7d50\u679c<\/h3>\n<pre class=\"post-pre\"><code>{\"took\":29,\"timed_out\":false,\"_shards\":{\"total\":1,\"successful\":1,\"failed\":0},\"hits\":{\"total\":1,\"max_score\":0.84996772,\"hits\":[{\"_index\":\"refrigerator\",\"_type\":\"recipe\",\"_score\":0.14996772,\"_source\":\r\n{\r\n  \"recipeId\": xxxxxxxx,\r\n  \"recipeTitle\": \"\u30c0\u30fc\u30ea\u30f3\u304c\u6c17\u306b\u5165\u3063\u305f\u266a\u6211\u304c\u5bb6\u306e\u30dd\u30fc\u30af\u30b1\u30c1\u30e3\u30c3\u30d7\",\r\n  \"recipeUrl\": \"https:\/\/recipe.rakuten.co.jp\/recipe\/xxxxxxx\/\",\r\n  \"foodImageUrl\": \"https:\/\/image.space.rakuten.co.jp\/d\/strg\/ctrl\/xxxxxxx\",\r\n  \"recipeDescription\": \"\u30c0\u30fc\u30ea\u30f3\u304c\u300c\u7f8e\u5473\u3057\u3044\u300d\u3068\u559c\u3093\u3067\u98df\u3079\u3066\u304f\u308c\u305f\u3001\u3068\u3063\u3066\u3082\u7c21\u5358\u306b\u51fa\u6765\u308b\u30ec\u30b7\u30d4\u3067\u3059\",\r\n  \"recipeMaterial\": [\r\n        \"\u8c5a\u8089(\u3053\u307e\u5207\u308c)\",\r\n        \"\u305f\u307e\u306d\u304e\",\r\n        \"\u30b1\u30c1\u30e3\u30c3\u30d7\",\r\n        \"\u4e09\u6e29\u7cd6\",\r\n        \"\u30a6\u30b9\u30bf\u30fc\u30bd\u30fc\u30b9\"\r\n  ]\r\n}\r\n<\/code><\/pre>\n<p>\u5728Elasticsearch\u4e2d\uff0c\u5b83\u53ef\u4ee5\u540c\u65f6\u663e\u793a\u641c\u7d22\u65f6\u7684\u6027\u80fd\u3002<br \/>\n\u7531\u4e8emax_score\u53ef\u4ee5\u63d0\u4f9b\u5339\u914d\u7387\uff0c\u56e0\u6b64\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5982\u679c\u83b7\u53d6\u592a\u591a\u7ed3\u679c\u4f1a\u5f88\u56f0\u6270\uff0c\u4f7f\u7528\u8fd9\u4e2a\u9009\u9879\u53ef\u80fd\u4f1a\u5f97\u5230\u66f4\u9ad8\u7684\u641c\u7d22\u7ed3\u679c\u3002<\/p>\n<h2>\u627e\u5230\u4e86\uff01<\/h2>\n<p>\u5982\u679c\u6211\u4eec\u628a\u8fd9\u4e2a\u6761\u4ef6\u8f93\u5165\u5230\u5e94\u7528\u7a0b\u5e8f\u91cc\uff0c\u5b83\u5e94\u8be5\u4f1a\u5e2e\u6211\u4eec\u641c\u7d22\u5230\u76f8\u5e94\u7684\u98df\u8c31\u3002<\/p>\n<h1>\u5e94\u7528\u7a0b\u5e8f\u7684\u5b9e\u73b0<\/h1>\n<p>\u7f16\u7a0b\u8bed\u8a00\u662fC#\uff0c\u6570\u636e\u5b58\u50a8\u5728Elasticsearch\u3002<\/p>\n<h2>\u9996\u5148\uff0c\u8acb\u6253\u958b\u5c4f\u5e55&#8230;<\/h2>\n<p>\u65e2\u7136\u5230\u4e86\u8fd9\u4e2a\u5730\u6b65\uff0c\u6211\u4eec\u4f1a\u6301\u7eed\u968f\u65f6\u66f4\u65b0\u8fdb\u4e00\u6b65\u5f00\u53d1\u7684\u5185\u5bb9\u3002<\/p>\n<h2>\u7ba1\u7406\u7684\u8303\u56f4<\/h2>\n<p>\u7531\u4e8e\u53ea\u63a5\u89e6\u8fc7RDB\uff0c\u6240\u4ee5\u5bf9Elasticsearch\u7684\u901a\u7528\u6027\u611f\u5230\u60ca\u8bb6\u3002<br \/>\n\u867d\u7136\u8fd9\u6b21\u5728\u672c\u5730\u73af\u5883\u4e0b\u5904\u7406\u7684\u6570\u636e\u91cf\u5f88\u5c0f\uff0c\u65e0\u6cd5\u771f\u6b63\u4f53\u4f1a\u5230\u5b83\u5728\u6027\u80fd\u65b9\u9762\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\u7684\u4fbf\u5229\u4e4b\u5904\u3002<br \/>\n\u542c\u8bf4\u8fd8\u6709\u4e00\u4e2a\u540d\u4e3aAmazon Elasticsearch Service\u7684\u670d\u52a1\uff0c\u6211\u60f3\u5728\u670d\u52a1\u5668\u4e0a\u6ce8\u518c\u5e76\u5c1d\u8bd5\u4e00\u4e0b\u3002<br \/>\n\u6211\u60f3\u5145\u5206\u5229\u7528\u8fd9\u4e00\u70b9\u6765\u5f00\u53d1\u4e00\u4e2a\u51b0\u7bb1\u83dc\u8c31\u5e94\u7528\u7a0b\u5e8f\u3002\uff08\u867d\u7136\u6211\u6839\u672c\u4e0d\u4f1a\u505a\u996d\uff08\u5c0f\u58f0\u8bf4\uff09\uff09<\/p>\n<h2>\u5f15\u8ff0\u4ee5\u4e0b\u81ea\u7136\u3001\u7b80\u7ec3\u51c6\u786e\u7684\u4e2d\u6587\u9009\u9879\uff1a<\/h2>\n<p>\u53c2\u8003\u6587\u7ae0<\/p>\n<ul class=\"post-ul\">https:\/\/qiita.com\/nskydiving\/items\/1c2dc4e0b9c98d164329<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u60f3\u4f7f\u7528Elasticsearch\u521b\u5efa\u4e00\u4e2a\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f\u3002 \u5982\u679c\u6709\u4e00\u4e2a\u80fd\u591f\u4ece\u51b0\u7bb1\u91cc\u5269\u4e0b\u7684\u98df\u6750\u4e2d\u7b80\u5355\u641c\u7d22\u98df\u8c31\u7684 [&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-40791","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>\u4f7f\u7528Elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f - 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\/\u4f7f\u7528elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f\" \/>\n<meta property=\"og:description\" content=\"\u6211\u60f3\u4f7f\u7528Elasticsearch\u521b\u5efa\u4e00\u4e2a\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f\u3002 \u5982\u679c\u6709\u4e00\u4e2a\u80fd\u591f\u4ece\u51b0\u7bb1\u91cc\u5269\u4e0b\u7684\u98df\u6750\u4e2d\u7b80\u5355\u641c\u7d22\u98df\u8c31\u7684 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-27T19:40:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T13:44:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d42ed37434c4406c9abcd\/2-0.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=\"1 \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\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/\",\"name\":\"\u4f7f\u7528Elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-27T19:40:46+00:00\",\"dateModified\":\"2024-04-30T13:44:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f\"}]},{\"@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\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f - 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\/\u4f7f\u7528elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f","og_description":"\u6211\u60f3\u4f7f\u7528Elasticsearch\u521b\u5efa\u4e00\u4e2a\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f\u3002 \u5982\u679c\u6709\u4e00\u4e2a\u80fd\u591f\u4ece\u51b0\u7bb1\u91cc\u5269\u4e0b\u7684\u98df\u6750\u4e2d\u7b80\u5355\u641c\u7d22\u98df\u8c31\u7684 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-27T19:40:46+00:00","article_modified_time":"2024-04-30T13:44:24+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d42ed37434c4406c9abcd\/2-0.png"}],"author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/","name":"\u4f7f\u7528Elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-27T19:40:46+00:00","dateModified":"2024-04-30T13:44:24+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Elasticsearch\u8fdb\u884c\u98df\u8c31\u641c\u7d22\u5e94\u7528\u7a0b\u5e8f"}]},{"@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\/%e4%bd%bf%e7%94%a8elasticsearch%e8%bf%9b%e8%a1%8c%e9%a3%9f%e8%b0%b1%e6%90%9c%e7%b4%a2%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40791","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=40791"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40791\/revisions"}],"predecessor-version":[{"id":94475,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40791\/revisions\/94475"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}