{"id":41021,"date":"2023-01-27T21:33:29","date_gmt":"2024-02-07T05:48:03","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/"},"modified":"2024-04-29T11:47:23","modified_gmt":"2024-04-29T03:47:23","slug":"elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/","title":{"rendered":"Elasticsearch \u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55"},"content":{"rendered":"<p>\u56e0\u4e3a\u6211\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u4f7f\u7528Elasticsearch\uff0c\u6240\u4ee5\u6211\u4f1a\u8fb9\u4f7f\u7528\u8fb9\u8bb0\u4e0b\u7b14\u8bb0\u3002<\/p>\n<h2>\u6574\u7406\u7528\u8a9e<\/h2>\n<p>\u9996\u5148\u4ece\u672f\u8bed\u5f00\u59cb\u3002\u5982\u679c\u4e0eMySQL\u5bf9\u5e94\uff0c\u53ef\u80fd\u4f1a\u662f\u8fd9\u6837\u7684\u3002<\/p>\n<div>\n<div class=\"post-table\">MySQLElasticsearchdatabaseindextabletyperecorddocument<\/div>\n<\/div>\n<p>\u6620\u5c04\uff1a\u7c7b\u4f3c\u4e8e\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u7684\u8868\u5b9a\u4e49\u3002<\/p>\n<h2>\u521b\u5efa\u5730\u56fe<\/h2>\n<pre class=\"post-pre\"><code>$ curl -XPUT 'localhost:9200\/&lt;INDEX_NAME&gt;' -d '\r\n{\r\n    \"mappings\" : {\r\n      \"&lt;TYPE_NAME&gt;\" : {\r\n        \"properties\" : {\r\n          \"author\" : {\r\n            \"type\" : \"string\"\r\n          },\r\n          \"contents\" : {\r\n            \"type\" : \"string\",\r\n            \"analyzer\": \"japanese\u200e\"\r\n          },\r\n          \"enabled\" : {\r\n            \"type\" : \"boolean\"\r\n          },\r\n          \"pub_date\" : {\r\n            \"type\" : \"date\",\r\n            \"format\" : \"dateOptionalTime\"\r\n          },\r\n          \"read_ratio\" : {\r\n            \"type\" : \"double\"\r\n          },\r\n          \"reads\" : {\r\n            \"type\" : \"long\"\r\n          },\r\n          \"subtitle\" : {\r\n            \"type\" : \"string\",\r\n            \"analyzer\": \"japanese\u200e\"\r\n          },\r\n          \"title\" : {\r\n            \"type\" : \"string\",\r\n            \"analyzer\": \"japanese\u200e\"\r\n          },\r\n          \"views\" : {\r\n            \"type\" : \"long\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n}'\r\n\r\n<\/code><\/pre>\n<p>\u5982\u679c\u662f\u57fa\u4e8e\u5b9a\u4e49\u7684JSON\u6587\u4ef6(mapping.json)\u8fdb\u884c\u521b\u5efa\u7684\u8bdd<\/p>\n<pre class=\"post-pre\"><code>$ curl -XPOST 192.168.33.10:9200\/&lt;INDEX_NAME&gt; -d @mapping.json\r\n<\/code><\/pre>\n<p>\u5728mapping.json\u6587\u4ef6\u4e2d\uff0c<br \/>\n\u6307\u5b9atokenizer\u4e3angram\u3002<\/p>\n<pre class=\"post-pre\"><code>{\r\n  \"settings\": {\r\n    \"analysis\": {\r\n      \"analyzer\": {\r\n        \"ngram_analyzer\": {\r\n          \"tokenizer\": \"ngram_tokenizer\"\r\n        }\r\n      },\r\n      \"tokenizer\": {\r\n        \"ngram_tokenizer\": {\r\n          \"type\": \"nGram\",\r\n          \"min_gram\": \"2\",\r\n          \"max_gram\": \"3\",\r\n          \"token_chars\": [\r\n            \"letter\",\r\n            \"digit\"\r\n          ]\r\n        }\r\n      }\r\n    }\r\n  },\r\n  \"mappings\": {\r\n    \"items\": {\r\n      \"properties\": {\r\n        \"item_seq\": {\r\n          \"type\": \"string\"\r\n        },\r\n        \"item_name\": {\r\n          \"type\": \"string\",\r\n          \"analyzer\": \"ngram_analyzer\"\r\n        },\r\n        \"group_seq\": {\r\n          \"type\": \"string\"\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<h2>\u83b7\u53d6\u7d22\u5f15\u5217\u8868<\/h2>\n<pre class=\"post-pre\"><code>$ curl -XGET 'localhost:9200\/_aliases?pretty'\r\n<\/code><\/pre>\n<h2>\u5220\u9664\u7d22\u5f15<\/h2>\n<pre class=\"post-pre\"><code>$ curl -X DELETE 'localhost:9200\/&lt;INDEX_NAME&gt;'\r\n<\/code><\/pre>\n<h2>\u63d2\u4ef6\u5217\u8868<\/h2>\n<pre class=\"post-pre\"><code>$ $ curl -X GET 'http:\/\/192.168.33.10:9200\/_nodes\/plugins?pretty'\r\n{\r\n  \"cluster_name\" : \"elasticsearch\",\r\n  \"nodes\" : {\r\n    \"42fIIy3lQaGDGbnWL2Cydg\" : {\r\n      \"name\" : \"Gwen Stacy\",\r\n      \"transport_address\" : \"192.168.33.10:9300\",\r\n      \"host\" : \"192.168.33.10\",\r\n      \"ip\" : \"192.168.33.10\",\r\n      \"version\" : \"2.1.1\",\r\n      \"build\" : \"40e2c53\",\r\n      \"http_address\" : \"192.168.33.10:9200\",\r\n      \"plugins\" : [ {\r\n        \"name\" : \"analysis-kuromoji\",\r\n        \"version\" : \"2.1.1\",\r\n        \"description\" : \"The Japanese (kuromoji) Analysis plugin integrates Lucene kuromoji analysis module into elasticsearch.\",\r\n        \"jvm\" : true,\r\n        \"classname\" : \"org.elasticsearch.plugin.analysis.kuromoji.AnalysisKuromojiPlugin\",\r\n        \"isolated\" : true,\r\n        \"site\" : false\r\n      } ]\r\n    }\r\n  }\r\n}\r\n<\/code><\/pre>\n<h2>\u67e5\u627e<\/h2>\n<pre class=\"post-pre\"><code>curl -XGET 'http:\/\/192.168.33.10:9200\/&lt;INDEX_NAME&gt;\/&lt;TYPE_NAME&gt;\/_search?pretty=true' -d '\r\n{\r\n  \"query\" : {\r\n    \"simple_query_string\" : {\r\n      \"query\": \"\u307b\u3052\",\r\n      \"fields\": [\"_all\"],\r\n      \"default_operator\": \"and\"\r\n    }\r\n  }\r\n}\r\n'\r\n<\/code><\/pre>\n<h2>\u4e00\u6b21\u6027\u6ce8\u518c\uff08PHP\uff09<\/h2>\n<p>\u7528PHP\u8fdb\u884c\u6279\u91cf\u52a0\u8f7d\u7684\u65b9\u6cd5<\/p>\n<h2>AWS \u7684\u8ba4\u8bc1\u76f8\u5173\uff08PHP\uff09<\/h2>\n<p>\u6211\u4f7f\u7528IAM\u65f6\uff0c\u4e0d\u77e5\u9053\u5982\u4f55\u4e0eelasticsearch\u5e93\u7ed3\u5408\u3002<\/p>\n<p>\u5f53\u6211\u60f3\u5230\u65f6\uff0c\u53d1\u73b0\u4e86\u8fd9\u6837\u7684\u4e1c\u897f\u3002<\/p>\n<p>\u5728\u4e2d\u56fd\u7684 AWS SDK for PHP \u6587\u6863\u4e2d\uff0c\u7b7e\u7f72\u4e00\u4e2a\u4e9a\u9a6c\u900a Elasticsearch \u670d\u52a1\u641c\u7d22\u8bf7\u6c42\u3002<\/p>\n<h2>AWS\u7684\u8eab\u4efd\u9a8c\u8bc1\u90e8\u5206\uff08Python\uff09<\/h2>\n<p>AWS\u7684ElasticSearch\u670d\u52a1 \u00b7 \u95ee\u9898 #280 \u00b7 elastic\/elasticsearch-py<\/p>\n<p>\u5728\u8fd9\u91cc\u8fdb\u884c\u4e86\u8ba8\u8bba\uff0c\u5e76\u4e14\u5df2\u7ecf\u5b9e\u65bd\u3002<\/p>\n<p>Python Elasticsearch\u5ba2\u6237\u7aef \u2014 Elasticsearch 2.2.0 \u6587\u6863<\/p>\n<p>\u6709\u5199\u7740\u8bf4\u53ef\u4ee5\u50cf\u8fd9\u6837\u4f7f\u7528\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"kn\">from<\/span> <span class=\"nn\">elasticsearch<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">Elasticsearch<\/span><span class=\"p\">,<\/span> <span class=\"n\">RequestsHttpConnection<\/span>\r\n<span class=\"kn\">from<\/span> <span class=\"nn\">requests_aws4auth<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">AWS4Auth<\/span>\r\n\r\n<span class=\"n\">host<\/span> <span class=\"o\">=<\/span> <span class=\"s\">'YOURHOST.us-east-1.es.amazonaws.com'<\/span>\r\n<span class=\"n\">awsauth<\/span> <span class=\"o\">=<\/span> <span class=\"n\">AWS4Auth<\/span><span class=\"p\">(<\/span><span class=\"n\">YOUR_ACCESS_KEY<\/span><span class=\"p\">,<\/span> <span class=\"n\">YOUR_SECRET_KEY<\/span><span class=\"p\">,<\/span> <span class=\"n\">REGION<\/span><span class=\"p\">,<\/span> <span class=\"s\">'es'<\/span><span class=\"p\">)<\/span>\r\n\r\n<span class=\"n\">es<\/span> <span class=\"o\">=<\/span> <span class=\"n\">Elasticsearch<\/span><span class=\"p\">(<\/span>\r\n    <span class=\"n\">hosts<\/span><span class=\"o\">=<\/span><span class=\"p\">[{<\/span><span class=\"s\">'host'<\/span><span class=\"p\">:<\/span> <span class=\"n\">host<\/span><span class=\"p\">,<\/span> <span class=\"s\">'port'<\/span><span class=\"p\">:<\/span> <span class=\"mi\">443<\/span><span class=\"p\">}],<\/span>\r\n    <span class=\"n\">http_auth<\/span><span class=\"o\">=<\/span><span class=\"n\">awsauth<\/span><span class=\"p\">,<\/span>\r\n    <span class=\"n\">use_ssl<\/span><span class=\"o\">=<\/span><span class=\"bp\">True<\/span><span class=\"p\">,<\/span>\r\n    <span class=\"n\">verify_certs<\/span><span class=\"o\">=<\/span><span class=\"bp\">True<\/span><span class=\"p\">,<\/span>\r\n    <span class=\"n\">connection_class<\/span><span class=\"o\">=<\/span><span class=\"n\">RequestsHttpConnection<\/span>\r\n<span class=\"p\">)<\/span>\r\n<span class=\"k\">print<\/span><span class=\"p\">(<\/span><span class=\"n\">es<\/span><span class=\"p\">.<\/span><span class=\"n\">info<\/span><span class=\"p\">())<\/span>\r\n<\/code><\/pre>\n<h2>AWS\u8ba4\u8bc1\u95ee\u9898\uff08\u989d\u5916\u7bc7\uff09<\/h2>\n<p>\u6709\u4e00\u4e2a\u540d\u4e3aProxy\u7684\u9879\u76ee\u3002<br \/>\nhttps:\/\/github.com\/coreos\/aws-auth-proxy<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e3a\u6211\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u4f7f\u7528Elasticsearch\uff0c\u6240\u4ee5\u6211\u4f1a\u8fb9\u4f7f\u7528\u8fb9\u8bb0\u4e0b\u7b14\u8bb0\u3002 \u6574\u7406\u7528\u8a9e \u9996\u5148\u4ece\u672f\u8bed\u5f00\u59cb\u3002\u5982\u679c\u4e0eM [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-41021","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>Elasticsearch \u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55 - 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\/elasticsearch-\u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Elasticsearch \u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55\" \/>\n<meta property=\"og:description\" content=\"\u56e0\u4e3a\u6211\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u4f7f\u7528Elasticsearch\uff0c\u6240\u4ee5\u6211\u4f1a\u8fb9\u4f7f\u7528\u8fb9\u8bb0\u4e0b\u7b14\u8bb0\u3002 \u6574\u7406\u7528\u8a9e \u9996\u5148\u4ece\u672f\u8bed\u5f00\u59cb\u3002\u5982\u679c\u4e0eM [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-\u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-07T05:48:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T03:47:23+00:00\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\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\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/\",\"name\":\"Elasticsearch \u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-02-07T05:48:03+00:00\",\"dateModified\":\"2024-04-29T03:47:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elasticsearch \u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55\"}]},{\"@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\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Elasticsearch \u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55 - 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\/elasticsearch-\u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"Elasticsearch \u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55","og_description":"\u56e0\u4e3a\u6211\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u4f7f\u7528Elasticsearch\uff0c\u6240\u4ee5\u6211\u4f1a\u8fb9\u4f7f\u7528\u8fb9\u8bb0\u4e0b\u7b14\u8bb0\u3002 \u6574\u7406\u7528\u8a9e \u9996\u5148\u4ece\u672f\u8bed\u5f00\u59cb\u3002\u5982\u679c\u4e0eM [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-\u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-02-07T05:48:03+00:00","article_modified_time":"2024-04-29T03:47:23+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/","name":"Elasticsearch \u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-02-07T05:48:03+00:00","dateModified":"2024-04-29T03:47:23+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Elasticsearch \u662f\u6211\u4e2a\u4eba\u4f7f\u7528\u7684\u5907\u5fd8\u5f55"}]},{"@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\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%98%af%e6%88%91%e4%b8%aa%e4%ba%ba%e4%bd%bf%e7%94%a8%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41021","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=41021"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41021\/revisions"}],"predecessor-version":[{"id":85090,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41021\/revisions\/85090"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=41021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=41021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=41021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}