{"id":40757,"date":"2023-04-08T23:55:13","date_gmt":"2023-06-18T03:00:29","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/"},"modified":"2024-04-29T22:36:44","modified_gmt":"2024-04-29T14:36:44","slug":"elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/","title":{"rendered":"Elasticsearch \u63d2\u4ef6\u5f00\u53d1"},"content":{"rendered":"<p>\u5728\u5f00\u53d1Elasticsearch v6.4.2\u7684\u63d2\u4ef6\u65f6\u7684\u6b65\u9aa4\u3002<\/p>\n<h2>\u51c6\u5907\u5f00\u53d1<\/h2>\n<h3>\u5de5\u5177\u5f00\u53d1<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Elasticsearch v6.4.2<\/ul>\n<\/li>\n<\/ul>\n<p>Docker image: FROM docker.elastic.co\/elasticsearch\/elasticsearch:6.4.2<\/p>\n<p>OpenJDK 11 \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>Java SE Development Kit 11- &#8211; Downloads<\/p>\n<p>IntelliJ \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>IntelliJ IDEA: The Java IDE for Professional Developers by JetBrains<\/p>\n<p>Gradle \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>brew <span class=\"nb\">install <\/span>gradle\r\n<\/code><\/pre>\n<h3>\u642d\u5efa\u5f00\u53d1\u73af\u5883<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Elasticsearch \u306e\u30bd\u30fc\u30b9\u3092 Github \u304b\u3089 clone \u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>elastic\/elasticsearch: Open Source, Distributed, RESTful Search Engine<\/p>\n<p>\u68c0\u67e5\u8981\u5b89\u88c5\u7684 Elasticsearch \u7248\u672c\u3002\u5c06\u5176\u5bfc\u5165\u5230 IntelliJ\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">cd <\/span>elasticsearch\/\r\n<span class=\"nv\">$ <\/span>git clone <span class=\"nt\">-b<\/span> v6.4.2 v6.4.2\r\n<span class=\"nv\">$ <\/span>gradle idea <span class=\"c\"># 10\u5206\u3050\u3089\u3044\u304b\u304b\u308b<\/span>\r\n<\/code><\/pre>\n<p>\u5728IntelliJ\u7684\u9879\u76ee\u521b\u5efa\u5411\u5bfc\u4e2d\u8fdb\u884c\u5bfc\u5165\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code>IntelliJ &gt;\r\n  Import Project &gt;\r\n    elasticsearch\/ &gt;\r\n      Import project from external model &gt;\r\n        Gradle\r\n<\/code><\/pre>\n<p>\u5bfc\u5165\u9009\u9879<\/p>\n<div>\n<div class=\"post-table\">ItemValueGradleJVM11<\/div>\n<\/div>\n<h2>\u8fd0\u884c\u63d2\u4ef6<\/h2>\n<p>\u5236\u4f5c\u4e00\u4e2a\u80fd\u591f\u6784\u5efa\u5e76\u5b89\u88c5\u63d2\u4ef6\u7684\u53ef\u6267\u884czip\u6587\u4ef6\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Help for plugin authors | Elasticsearch Plugins and Integrations [6.5] | Elastic<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Installing Plugins | Elasticsearch Plugins and Integrations [6.5] | Elastic<\/ul>\n<h3>\u5efa\u8bbe<\/h3>\n<p>\u5c1d\u8bd5\u6784\u5efa\u793a\u4f8b\u7684custom-settings-plugin\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">cd <\/span>elasticsearch\/plugins\/examples\/custom-settings\r\n<span class=\"nv\">$ <\/span>gradle build\r\n<span class=\"c\"># \u307e\u305f\u306f IntelliJ \u304b\u3089\u30d3\u30eb\u30c9<\/span>\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">ls <\/span>build\/distributions\r\ncustom-settings-6.4.2-SNAPSHOT.zip ...\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5<\/h3>\n<p>\u5982\u679c\u60a8\u5728Docker\u4e2d\u8fd0\u884cElasticsearch\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u5377\u6302\u8f7d\u4e0a\u8ff0\u7684build\/distributions\u76ee\u5f55\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># build\/distributions:\/tmp\/custom-settings-plugin \u306b\u30de\u30a6\u30f3\u30c8\u3057\u305f\u3068\u304d\u306e\u4f8b<\/span>\r\n<span class=\"nv\">$ <\/span>elasticsearch-plugin <span class=\"nb\">install <\/span>file:\/\/\/tmp\/custom-settings-plugin\/custom-settings-6.4.2-SNAPSHOT.zip\r\n-&gt; Downloading file:\/\/\/tmp\/custom-settings-plugin\/custom-settings-6.4.2-SNAPSHOT.zip\r\n<span class=\"o\">[=================================================]<\/span> 100%?? \r\n-&gt; Installed custom-settings\r\n\r\n<\/code><\/pre>\n<p>\u6267\u884c GET \/_nodes\/_all\/settings \u547d\u4ee4\u540e\uff0ccustom.list\u7684\u503c\u88ab\u6dfb\u52a0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5f00\u53d1Elasticsearch v6.4.2\u7684\u63d2\u4ef6\u65f6\u7684\u6b65\u9aa4\u3002 \u51c6\u5907\u5f00\u53d1 \u5de5\u5177\u5f00\u53d1 Elasticsearch [&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-40757","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 \u63d2\u4ef6\u5f00\u53d1 - 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-\u63d2\u4ef6\u5f00\u53d1\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Elasticsearch \u63d2\u4ef6\u5f00\u53d1\" \/>\n<meta property=\"og:description\" content=\"\u5728\u5f00\u53d1Elasticsearch v6.4.2\u7684\u63d2\u4ef6\u65f6\u7684\u6b65\u9aa4\u3002 \u51c6\u5907\u5f00\u53d1 \u5de5\u5177\u5f00\u53d1 Elasticsearch [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-\u63d2\u4ef6\u5f00\u53d1\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-18T03:00:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T14:36:44+00:00\" \/>\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\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/\",\"name\":\"Elasticsearch \u63d2\u4ef6\u5f00\u53d1 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-06-18T03:00:29+00:00\",\"dateModified\":\"2024-04-29T14:36:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elasticsearch \u63d2\u4ef6\u5f00\u53d1\"}]},{\"@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\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Elasticsearch \u63d2\u4ef6\u5f00\u53d1 - 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-\u63d2\u4ef6\u5f00\u53d1\/","og_locale":"zh_CN","og_type":"article","og_title":"Elasticsearch \u63d2\u4ef6\u5f00\u53d1","og_description":"\u5728\u5f00\u53d1Elasticsearch v6.4.2\u7684\u63d2\u4ef6\u65f6\u7684\u6b65\u9aa4\u3002 \u51c6\u5907\u5f00\u53d1 \u5de5\u5177\u5f00\u53d1 Elasticsearch [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-\u63d2\u4ef6\u5f00\u53d1\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-18T03:00:29+00:00","article_modified_time":"2024-04-29T14:36:44+00:00","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\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/","name":"Elasticsearch \u63d2\u4ef6\u5f00\u53d1 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-06-18T03:00:29+00:00","dateModified":"2024-04-29T14:36:44+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Elasticsearch \u63d2\u4ef6\u5f00\u53d1"}]},{"@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\/elasticsearch-%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40757","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=40757"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40757\/revisions"}],"predecessor-version":[{"id":88058,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40757\/revisions\/88058"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}