{"id":113602,"date":"2019-05-22T10:37:02","date_gmt":"2019-05-22T02:37:02","guid":{"rendered":"http:\/\/www.fagao.me\/?p=113602"},"modified":"2019-05-22T10:37:02","modified_gmt":"2019-05-22T02:37:02","slug":"%e6%90%9c%e7%b4%a2%e4%b9%8b%e8%b7%af-elasticsearch%e7%9a%84%e8%af%9e%e7%94%9f","status":"publish","type":"post","link":"https:\/\/www.fagao.me\/p\/113602.htm","title":{"rendered":"\u641c\u7d22\u4e4b\u8def Elasticsearch\u7684\u8bde\u751f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.fagao.me\/images\/uploads\/2018_009.jpg\" alt=\"\"><\/p>\n<div class=\"focusup\"><\/div>\n<p style=\"text-align: justify;\"><span>\u7ecf\u8fc7\u4e09\u5e74\u7684\u5386\u7ec3\uff0c\u5f20\u5927\u80d6\u5df2\u7ecf\u6210\u4e3a\u4e86\u4e00\u4e2a\u5229\u7528Lucene\u8fd9\u4e2a\u8457\u540d\u7684\u5f00\u6e90\u8f6f\u4ef6\u505a\u641c\u7d22\u7684\u9ad8\u624b\uff0c\u5404\u79cd\u7ec6\u8282\u77e5\u8bc6\u548c\u6700\u4f73\u5b9e\u8df5\u5c3d\u5728\u638c\u63e1\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\uff08\u5f20\u5927\u80d6\u7684\u5b66\u641c\u7d22\u7684\u5386\u7a0b\u53c2\u89c1\u4e0a\u4e00\u7bc7\u6587\u7ae0\uff1a\u300a\u641c\u7d22\u4e4b\u8def\u300b\uff09<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u968f\u7740\u4e92\u8054\u7f51\u5e94\u7528\u7684\u7206\u70b8\u5f0f\u589e\u957f\uff0c\u641c\u7d22\u53d8\u6210\u4e86\u7f51\u7ad9\u7684\u4e00\u4e2a\u5e38\u89c1\u9700\u6c42\uff0c\u5404\u4e2a\u7f51\u7ad9\u90fd\u60f3\u641c\u7d22\u4ea7\u54c1\uff0c\u641c\u7d22\u5e16\u5b50\uff0c\u641c\u7d22\u670d\u52a1&#8230;&#8230;\u5f20\u5927\u80d6\u7684\u201c\u4e1a\u52a1\u201d\u53d8\u5f97\u5341\u5206\u7e41\u5fd9\uff0c\u7ecf\u5e38\u5728\u4e1a\u4f59\u65f6\u95f4\u7ed9\u4eba\u505aLucene\u7684\u54a8\u8be2\uff0c\u8d5a\u4e86\u4e0d\u5c11\u5916\u5feb\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u4f46\u662f\u5f20\u5927\u80d6\u4e5f\u654f\u9510\u5730\u89c9\u5bdf\u5230\u4e86\u4e24\u4e2a\u95ee\u9898\uff1a<\/span><\/p>\n<p style=\"text-align: justify;\"><span>1. Lucene\u505a\u641c\u7d22\u5f88\u5f3a\u5927\uff0c<span>\u4f46\u662fAPI\u7528\u8d77\u6765\u592a\u201c\u4f4e\u7ea7\u201d<\/span>\uff0c\u5f88\u591a\u4eba\u62b1\u6028\uff1a\u6211\u5c31\u60f3\u641c\u7d22\u4e00\u4e0b\u6211\u7684\u4ea7\u54c1\u63cf\u8ff0\uff0c\u73b0\u5728\u8fd8\u5f97\u7406\u89e3\u4ec0\u4e48\u201cDirectory\u201d,&#8221;Analyzer&#8221;,&#8221;IndexWriter&#8221;\uff0c\u5b9e\u5728\u662f\u592a\u590d\u6742\u4e86\uff01<\/span><\/p>\n<p style=\"text-align: justify;\"><span>2. \u4e92\u8054\u7f51\u7684\u6570\u636e\u662f\u6d77\u91cf\u7684\uff0c\u4ec5\u4ec5\u662f\u5355\u673a\u5b58\u50a8\u7d22\u5f15\u662f\u8fdc\u8fdc\u4e0d\u591f\u7684\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u4fd7\u8bdd\u8bf4\uff1a\u201c<span>\u8f6f\u4ef6\u5f00\u53d1\u4e2d\u9047\u5230\u7684\u6240\u6709\u95ee\u9898\uff0c\u90fd\u53ef\u4ee5\u901a\u8fc7\u589e\u52a0\u4e00\u5c42\u62bd\u8c61\u800c\u5f97\u4ee5\u89e3\u51b3<\/span>\u201d\u3002 \u5f20\u5927\u80d6\u89c9\u5f97\uff0c\u662f\u65f6\u5019\u5bf9Lucene\u505a\u4e00\u4e2a\u62bd\u8c61\u4e86\u3002<\/span><\/p>\n<p>Java API -&gt; Web API <\/p>\n<p style=\"text-align: justify;\"><span>\u4fdd\u9669\u8d77\u89c1\uff0c\u5f20\u5927\u80d6\u62c9\u4e86\u5927\u795eBill\u6765\u505a\u987e\u95ee\uff0c\u5e2e\u81ea\u5df1\u8bbe\u8ba1\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u8fd9\u4e2a\u65b0\u7684\u62bd\u8c61\u5c42\u5e94\u8be5\u5bf9\u5916\u63d0\u4f9b\u4e00\u4e2a\u4ec0\u4e48\u6837\u7684API\u5462\uff1f<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5f88\u591a\u65f6\u5019\uff0cWeb\u5f00\u53d1\u9762\u5bf9\u7684\u90fd\u662f\u9886\u57df\u6a21\u578b\uff0c\u6bd4\u5982User,Product, Blog\uff0cAccount\u4e4b\u7c7b\u3002\u7528\u6237\u60f3\u505a\u7684\u65e0\u975e\u5c31\u662f\u641c\u7d22\u4ea7\u54c1\u7684\u63cf\u8ff0\uff0c \u641c\u7d22Blog\u7684\u6807\u9898\uff0c\u5185\u5bb9\u7b49\u7b49\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5f20\u5927\u80d6\u8bf4\uff1a\u201c\u5982\u679c\u80fd<span>\u56f4\u7ed5\u7740\u9886\u57df\u6a21\u578b\u7684\u6982\u5ff5\u8fdb\u884c\u641c\u7d22\u7684\u5404\u79cd\u64cd\u4f5c<\/span>\u5c31\u597d\u4e86\uff0c\u8fd9\u6837\u7b80\u5355\u800c\u76f4\u63a5\uff0c\u5982\u540cCRUD\u3002\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>Bill \u63d0\u793a\u5230\uff1a\u201cWeb\u65f6\u4ee3\u4e86\uff0c\u7a0b\u5e8f\u5458\u90fd\u559c\u6b22\u91c7\u7528RESTful\u7684\u65b9\u5f0f\u6765\u63cf\u8ff0\u4e00\u4e2aWeb\u8d44\u6e90\uff0c \u5bf9\u4e8e\u641c\u7d22\u800c\u8a00\uff0c\u5b8c\u5168\u53ef\u4ee5\u501f\u9274\u4e00\u4e0b\u561b\uff01\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5f20\u5927\u80d6\u773c\u524d\u4e00\u4eae\uff1a \u201c\u8981\u4e0d\u8fd9\u6837\uff1f\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\/coolspace\/blog\/1001 : \u8868\u793a\u4e00\u4e2a\u7f16\u53f7\u4e3a1001\u7684\u535a\u5ba2<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\/coolspace\/user\/u3876\uff1a\u8868\u793a\u4e00\u4e2aID\u4e3au3876\u7684\u7528\u6237<\/span><\/p>\n<p style=\"text-align: justify;\"><span><span>\/coolspace\u8868\u793a\u4e00\u4e2a\u201c\u7d22\u5f15\u5e93<\/span>\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\/blog ,\/user \u8868\u793a\u201c\u7d22\u5f15\u7684\u7c7b\u578b\u201d\uff08\u53ef\u4ee5\u7406\u89e3\u4e3a\u7f16\u7a0b\u4e2d\u7684\u9886\u57df\u6a21\u578b\uff09\u3002 1001\uff0c u3876\u8868\u793a\u6570\u636e\u7684ID<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u683c\u5f0f\u662f\/&lt;index&gt;\/&lt;type&gt;\/&lt;id&gt;<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5982\u679c\u548c\u5173\u7cfb\u6570\u636e\u5e93\u505a\u4e2a\u7c7b\u6bd4\u7684\u8bdd\uff1a<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u7d22\u5f15\u5e93&lt;&#8212;&gt;\u6570\u636e\u5e93<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u7d22\u5f15\u7684\u7c7b\u578b &lt;&#8212;&gt;\u6570\u636e\u5e93\u7684\u8868<\/span><\/p>\n<p style=\"text-align: justify;\"><span>Bill\u8bf4\uff1a\u201c\u8fd9\u6837\u633a\u597d\u7684\uff0c\u7528\u6237\u770b\u5230\u7684\u5c31\u662f\u9886\u57df\u6a21\u578b\uff0c \u5f53\u7528\u6237\u60f3\u53bb\u64cd\u4f5c\u65f6\u5019\uff0c\u7528HTTP\u7684GET, PUT\u7b49\u64cd\u4f5c\u5c31\u597d\u4e86\uff0c\u4ea4\u4e92\u7684\u6570\u636e\u53ef\u4ee5\u4f7f\u7528JSON\u8fd9\u4e2a\u7b80\u5355\u7684\u683c\u5f0f\u3002\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5f20\u5927\u80d6\u5f00\u59cb\u5b9a\u4e49\u57fa\u672c\u7684\u64cd\u4f5c\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><strong><span>\uff081\uff09 \u628a\u6587\u6863\u52a0\u5165\u7d22\u5f15\u5e93<\/span><\/strong><\/p>\n<p style=\"text-align: justify;\"><span>\u4f8b\u5982\uff1a\u628a\u4e00\u4e2ablog\u7684\u201c\u6587\u6863\u201d\u52a0\u5165\u7d22\u5f15\u5e93\uff0c\u8fd9\u4e2a\u6587\u6863\u7684\u6570\u636e\u662fJSON\u683c\u5f0f\uff0c\u5176\u4e2d\u7684\u6bcf\u4e2a\u5b57\u6bb5\u5c06\u6765\u90fd\u53ef\u4ee5\u88ab\u641c\u7d22\uff1a<\/span><\/p>\n<p>PUT \/coolspace\/blog\/ <span>1001<\/span><\/p>\n<p>{ <\/p>\n<p><span>&#8220;title&#8221;<\/span>: <span>&#8220;xxxxxxx&#8221;<\/span>, <\/p>\n<p><span>&#8220;content&#8221;<\/span>: <span>&#8220;xxxxxxxxxxxx&#8221;<\/span>, <\/p>\n<p><span>&#8220;author&#8221;<\/span>: <span>&#8220;xxxxx&#8221;<\/span>, <\/p>\n<p><span>&#8220;create_date&#8221;<\/span>: <span>&#8220;xxxxxx&#8221;<\/span><\/p>\n<p><span>&#8230;<\/span><\/p>\n<p>} <\/p>\n<p style=\"text-align: justify;\"><span>(\u6ce8\uff1a\u5f53\u7136\uff0c\u5728\u53d1\u8d77HTTP\u8bf7\u6c42\u7684\u65f6\u5019\uff0c\u9700\u8981\u52a0\u4e0a\u670d\u52a1\u5668\u7684\u5730\u5740\u548c\u7aef\u53e3\uff0c\u4e0b\u540c\u3002)<\/span><\/p>\n<p style=\"text-align: justify;\"><strong><span>\uff082\uff09\u628a\u4e00\u4e2ablog\u6587\u6863\u5220\u9664\uff0c\u4ece\u6b64\u5c31\u518d\u4e5f\u641c\u7d22\u4e0d\u5230\u4e86<\/span><\/strong><span>\uff1a<\/span><\/p>\n<p style=\"text-align: justify;\"><span>DELETE \/coolspace\/blog\/1001<\/span><\/p>\n<p style=\"text-align: justify;\"><strong><span>\uff083\uff09 \u7528\u6237\u641c\u7d22<\/span><\/strong><\/p>\n<p style=\"text-align: justify;\"><span>\u7528\u6237\u60f3\u641c\u7d22\u7684\u65f6\u5019\u4e5f\u5f88\u7b80\u5355\uff0c\u53d1\u8d77\u4e00\u4e2a\u8fd9\u6837\u7684\u8bf7\u6c42\u5c31\u884c\uff1a<\/span><\/p>\n<p style=\"text-align: justify;\"><span>GET \/coolspace\/blog\/_search<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u4f46\u662f\u5982\u4f55\u8868\u8fbe\u67e5\u8be2\u7684\u5177\u4f53\u9700\u6c42\u5462\uff0c\u8fd9\u65f6\u5019\u5fc5\u987b\u5f97\u5b9a\u4e49\u4e00\u4e2a\u89c4\u8303\u4e86\uff0c\u4f8b\u5982\uff1a\u60f3\u67e5\u8be2\u4e00\u4e2a\u5185\u5bb9\u5b57\u6bb5\uff08content)\u5305\u542b\u201cjava&#8221;\u7684 blog\u3002<\/span><\/p>\n<p><span>GET<\/span>\/coolspace\/blog\/_search <\/p>\n<p>{ <\/p>\n<p><span>&#8220;query&#8221;<\/span>: { <\/p>\n<p><span>&#8220;match&#8221;<\/span>: { <\/p>\n<p><span>&#8220;content&#8221;<\/span>: <span>&#8220;java&#8221;<\/span><\/p>\n<p>} <\/p>\n<p>} <\/p>\n<p>} <\/p>\n<p style=\"text-align: justify;\"><span>\u8fd9\u4e2aquery\u4e0b\u9762\u53ef\u4ee5\u589e\u52a0\u66f4\u52a0\u590d\u6742\u7684\u6761\u4ef6\uff0c\u8868\u793a\u7528\u6237\u7684\u67e5\u8be2\u9700\u6c42\uff0c\u53cd\u6b63\u662fJSON\u683c\u5f0f\uff0c\u53ef\u4ee5\u975e\u5e38\u7075\u6d3b\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u8fd4\u56de\u503c\u4e5f\u662fJSON\uff0c \u8fd9\u91cc\u5c31\u4e0d\u518d\u5c55\u793a\u4e86\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u8fd9\u4e2a\u62bd\u8c61\u5c42\u662f\u4ee5HTTP+JSON\u6765\u8868\u793a\u7684\uff0c \u548c\u5177\u4f53\u7684\u7f16\u7a0b\u8bed\u8a00\u65e0\u5173\uff0c\u4e0d\u7ba1\u662fJava\uff0c \u8fd8\u662fPython\uff0cRuby\uff0c\u53ea\u8981\u80fd\u53d1\u8d77HTTP\u8c03\u7528\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u3002<\/span><\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: justify;\"><span>\u901a\u8fc7\u8fd9\u6837\u4e00\u4e2a\u62bd\u8c61\u5c42\uff0c Lucene\u90a3\u4e9b\u590d\u6742\u7684API\u5168\u90e8\u88ab\u9690\u85cf\u5230\u4e86\u6d77\u5e73\u9762\u4ee5\u4e0b\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5bf9\u4e8e\u7a0b\u5e8f\u5458\u6765\u8bf4\uff0c\u4f7f\u7528HTTP+JSON\u662f\u975e\u5e38\u81ea\u7136\u7684\u4e8b\u60c5\uff0c\u597d\u7528\u5c31\u662f\u6700\u5927\u7684\u751f\u4ea7\u529b\u3002<\/span><\/p>\n<p>\u5206\u5e03\u5f0f <\/p>\n<p style=\"text-align: justify;\"><span>\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u8fdb\u5c55\u8fd8\u7b97\u987a\u5229\uff0c\u63a5\u4e0b\u6765\u8981\u8003\u8651\u7684\u5c31\u662f\u5982\u4f55\u5b58\u50a8\u6d77\u91cf\u7684\u7d22\u5f15\u6570\u636e\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5f20\u5927\u80d6\u8bf4\uff1a \u201c\u8fd9\u4e2a\u7b80\u5355\uff0c\u5982\u679c\u7d22\u5f15\u592a\u5927\uff0c\u6211\u4eec\u628a\u5b83\u5207\u5272\u4e00\u4e0b\uff0c\u5206\u6210\u4e00\u7247\u4e00\u7247\u7684\uff0c\u5b58\u50a8\u5230\u5404\u4e2a\u673a\u5668\u4e0a\u4e0d\u5c31\u5f97\u4e86\uff1f\u201d<\/span><\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: justify;\"><span>Bill\u95ee\u9053\uff1a \u201c\u60f3\u5f97\u7f8e\uff01 \u4f60\u5206\u7247\u4ee5\u540e\uff0c\u7528\u6237\u53bb\u4fdd\u5b58\u7d22\u5f15\u7684\u65f6\u5019\uff0c\u8fd8\u6709\u641c\u7d22\u7d22\u5f15\u6570\u636e\u7684\u65f6\u5019\uff0c\u5230\u54ea\u4e2a\u673a\u5668\u4e0a\u53bb\u53d6\uff1f\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5f20\u5927\u80d6\u8bf4\uff1a\u201c\u8fd9\u4e2a\u7b80\u5355\uff0c\u9996\u5148\u6211\u4eec\u4fdd\u5b58\u6bcf\u4e2a\u5206\u7247\u548c\u673a\u5668\u4e4b\u95f4\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c \u55ef\uff0c\u6211\u89c9\u5f97\u53ebnode\u663e\u5f97\u66f4\u4e13\u4e1a\u3002\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5206\u72471 \uff1anode1<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5206\u72472 \uff1anode2<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5206\u72473 \uff1anode3<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u5206\u7247\u5728\u82f1\u6587\u4e2d\u53eb\u505ashard\u3002 \u201d Bill \u53cb\u60c5\u63d0\u793a\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u597d\u7684\uff0c \u7136\u540e\u53ef\u4ee5\u7528\u4f59\u6570\u7b97\u6cd5\u6765\u786e\u5b9a\u4e00\u4e2a\u2018\u6587\u6863\u2019\u5230\u5e95\u4fdd\u5b58\u5728\u54ea\u4e2ashard\u4e2d\u3002\u201d \u867d\u7136\u5f20\u5927\u80d6\u89c9\u5f97\u8fd9\u4e2a\u8bcd\u770b\u8d77\u6765\u4e0d\u723d\uff0c\u8fd8\u662f\u5f00\u59cb\u4f7f\u7528\u4e86<\/span><\/p>\n<p style=\"text-align: justify;\"><strong><span>shard \u7f16\u53f7 = hash(\u6587\u6863\u7684ID) % shard \u603b\u6570<\/span><\/strong><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u8fd9\u6837\u5bf9\u4e8e\u4efb\u610f\u4e00\u4e2a\u6587\u6863\uff0c\u5bf9\u5b83\u7684ID\u505ahash\u8ba1\u7b97\uff0c\u7136\u540e\u5bf9\u603b\u5206\u7247\u6570\u91cf\u6c42\u4f59\uff0c \u5c31\u53ef\u4ee5\u5f97\u5230shard\u7684\u7f16\u53f7\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u627e\u5230\u5bf9\u5e94\u7684\u673a\u5668\u4e86\u3002 \u201d \u5f20\u5927\u80d6\u89c9\u5f97\u81ea\u5df1\u7684\u8fd9\u4e2a\u7b97\u6cd5\u53c8\u7b80\u5355\uff0c\u6548\u7387\u53c8\u9ad8\uff0c\u6d0b\u6d0b\u5f97\u610f\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>Bill\u89c9\u5f97\u8fd9\u4e24\u5e74\u5f20\u5927\u80d6\u8fdb\u6b65\u4e0d\u5c0f\uff0c\u5f00\u59cb\u4f7f\u7528\u7b97\u6cd5\u6765\u89e3\u51b3\u95ee\u9898\u4e86\uff0c \u4ed6\u95ee\u9053\uff1a\u201c\u5982\u679c\u7528\u6237\u60f3\u589e\u52a0shard\u6570\u8be5\u600e\u4e48\u5904\u7406\u5462\uff1f \u8fd9\u4e2a\u4f59\u6570\u7b97\u6cd5\u5c31\u4f1a\u51fa\u95ee\u9898\u554a \uff01\u201d<\/span><\/p>\n<blockquote>\n<p><span>\u6bd4\u5982\u539f\u6765shard \u603b\u6570\u662f3\uff0c hash\u503c\u662f100\uff0c shard\u7f16\u53f7 = 100 % 3 = 1<\/span><\/p>\n<p><span>\u5047\u8bbe\u7528\u6237\u53c8\u589e\u52a0\u4e86\u4e24\u53f0\u673a\u5668\uff0cshard\u603b\u6570\u53d8\u6210\u4e865\uff0c \u6b64\u65f6 shard \u7f16\u53f7 = 100 % 5 = 0 \uff0c \u5982\u679c\u53bb0\u53f7\u673a\u5668\u4e0a\u53bb\u627e\u7d22\u5f15\uff0c\u80af\u5b9a\u662f\u627e\u4e0d\u5230\u7684\u3002<\/span><\/p>\n<\/blockquote>\n<p style=\"text-align: justify;\"><span>\u5f20\u5927\u80d6\u6320\u6320\u5934\uff1a\u201c\u8981\u4e0d\u91c7\u7528<strong>\u5206\u5e03\u5f0f\u4e00\u81f4\u6027\u7b97\u6cd5<\/strong>\uff0c \u55ef\uff0c\u5b83\u4f1a\u51cf\u5c11\u51fa\u9519\u7684\u60c5\u51b5\uff0c\u8fd8\u662f\u65e0\u6cd5\u907f\u514d\uff0c\u8fd9\u8be5\u600e\u529e\uff1f\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>Bill\u5efa\u8bae\uff1a\u201c\u8981\u4e0d\u8fd9\u6837\uff0c\u6211\u4eec\u53ef\u4ee5\u7acb\u4e0b\u4e00\u4e2a\u89c4\u77e9\uff1a<span><\/span><span>\u7528\u6237\u5728\u521b\u5efa\u7d22\u5f15\u5e93\u7684\u65f6\u5019\uff0c\u5fc5\u987b\u8981\u6307\u5b9ashard\u6570\u91cf\uff0c\u5e76\u4e14\u4e00\u65e6\u6307\u5b9a\uff0c\u5c31\u4e0d\u80fd\u66f4\u6539\u4e86<\/span>\uff01\u201d<\/span><\/p>\n<p>PUT \/coolspace <\/p>\n<p>{ <\/p>\n<p><span>&#8220;settings&#8221;<\/span>: { <\/p>\n<p><span>&#8220;number_of_shards&#8221;<\/span>: 3 <\/p>\n<p>} <\/p>\n<p>} <\/p>\n<p style=\"text-align: justify;\"><span>\u867d\u7136\u5bf9\u7528\u6237\u6765\u8bf4\u6709\u70b9\u4e0d\u723d\uff0c \u4f46\u4f59\u6570\u7b97\u6cd5\u7684\u9ad8\u6548\u548c\u7b80\u5355\u786e\u5b9e\u592a\u5438\u5f15\u4eba\u4e86\uff0c\u5f20\u5927\u80d6\u8868\u793a\u540c\u610f\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u7d22\u5f15\u6570\u636e\u5206\u5e03\u4e86\uff0c\u5982\u679c\u67d0\u4e2a\u8282\u70b9\u574f\u6389\u4e86\uff0c\u6570\u636e\u5c31\u4f1a\u4e22\u5931\uff0c\u6211\u4eec\u5f97\u505a\u4e2a\u5907\u4efd\u624d\u884c\u3002\u201d \u5f20\u5927\u80d6\u7684\u601d\u8003\u5f88\u6df1\u5165\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u5bf9\uff0c \u6211\u4eec\u53ef\u4ee5\u7528\u65b0\u7684node \u6765\u505areplica\uff0c\u4e5f\u53ef\u4ee5\u4e3a\u4e86\u8282\u7701\u7a7a\u95f4\uff0c \u590d\u7528\u73b0\u6709\u7684node\u6765\u505areplica\u3002\u4e3a\u4e86\u505a\u533a\u5206\uff0c\u53ef\u4ee5\u628a\u4e4b\u524d\u7684\u5206\u7247\u53eb\u505a\u4e3b\u5206\u7247\uff0cprimary shard\u3002\u201d Bill\u82f1\u6587\u5c31\u662f\u597d\u3002<\/span><\/p>\n<\/p>\n<p style=\"text-align: center;\"><span>\uff08<span>\u6b64\u5904\u7684\u8bbe\u7f6e\u4e3a\uff1a\u6bcf\u4e2a\u4e3b\u5206\u7247\u6709\u4e24\u4e2a\u526f\u672c<\/span>\uff09<\/span><\/p>\n<p>PUT \/coolspace\/_settings <\/p>\n<p>{ <\/p>\n<p><span>&#8220;number_of_replicas&#8221;<\/span>: 2 <\/p>\n<p>} <\/p>\n<p style=\"text-align: justify;\"><span>\u867d\u7136\u4e3b\u5206\u7247\u7684\u6570\u76ee\u5728\u521b\u5efa\u201c\u7d22\u5f15\u5e93\u201d\u7684\u65f6\u5019\u5df2\u7ecf\u786e\u5b9a\uff0c<\/span><span>\u4f46\u662f\u526f\u672c\u7684\u6570\u76ee\u662f\u53ef\u4ee5\u4efb\u610f\u589e\u51cf\u7684<\/span><span>\uff0c\u8fd9\u4f9d\u8d56\u4e8e\u786c\u4ef6\u7684\u60c5\u51b5\uff1a\u6027\u80fd\u548c\u6570\u91cf\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u73b0\u5728\u6bcf\u4e2a\u4e3b\u5206\u7247\u90fd\u6709\u4e24\u4e2a\u526f\u672c\uff0c \u5982\u679c\u67d0\u4e2a\u8282\u70b9\u6302\u4e86\u4e5f\u4e0d\u6015\uff0c\u6bd4\u5982\u8282\u70b91\u6302\u4e86\uff0c\u6211\u4eec\u53ef\u4ee5\u4f4d\u4e8e\u8282\u70b93\u4e0a\u7684\u526f\u672c0\u63d0\u5347\u4e3a \u4e3b\u5206\u72470\uff0c \u53ea\u4e0d\u8fc7\u6bcf\u4e2a\u4e3b\u5206\u7247\u7684\u526f\u672c\u6570\u4e0d\u591f\u4e24\u4e2a\u4e86\u3002\u201d \u5f20\u5927\u80d6\u8bf4\u9053\u3002<\/span><\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: justify;\"><span>Bill \u6ee1\u4e0d\u5728\u4e4e\u5730\u8bf4\uff1a \u201c\u6ca1\u4e8b\uff0c\u7b49\u5230\u8282\u70b91\u542f\u52a8\u540e\uff0c\u8fd8\u53ef\u4ee5\u6062\u590d\u526f\u672c\u3002\u201d<\/span><\/p>\n<p>\u96c6\u7fa4 <\/p>\n<p style=\"text-align: justify;\"><span>Bill\u548c\u5f20\u5927\u80d6\u7acb\u523b\u610f\u8bc6\u5230\uff0c\u4ed6\u4eec\u5efa\u7acb\u4e86\u4e00\u4e2a\u96c6\u7fa4\uff0c \u8fd9\u4e2a\u96c6\u7fa4\u4e2d\u53ef\u4ee5\u5305\u542b\u82e5\u5e72node \uff0c \u6709\u6570\u636e\u7684\u5907\u4efd\uff0c<\/span><span>\u80fd\u5b9e\u73b0\u9ad8\u53ef\u7528\u6027\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u4f46\u662f\u53e6\u5916\u4e00\u4e2a\u95ee\u9898\u9a6c\u4e0a\u5c31\u51fa\u73b0\u4e86\uff1a\u5bf9\u4e8e\u5ba2\u6237\u7aef\u6765\u8bf4\uff0c\u901a\u8fc7\u54ea\u4e2anode\u6765\u8bfb\u5199\u2018\u6587\u6863\u2019\u5462\uff1f<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u6bd4\u5982\u8bf4\u7528\u6237\u8981\u628a\u4e00\u4e2a&#8217;\u6587\u6863&#8217;\u52a0\u5165\u7d22\u5f15\u5e93\uff1a PUT \/coolspace\/blog\/1001\uff0c \u8be5\u5982\u4f55\u5904\u7406\uff1f<\/span><\/p>\n<p style=\"text-align: justify;\"><span>Bill\u8bf4\uff1a\u201c\u8fd9\u6837\u5427\uff0c<strong>\u6211\u4eec\u53ef\u4ee5\u8ba9\u8bf7\u6c42\u53d1\u9001\u5230\u96c6\u7fa4\u7684\u4efb\u610f\u4e00\u4e2a\u8282\u70b9\uff0c\u6bcf\u4e2a\u8282\u70b9\u90fd\u5177\u5907\u5904\u7406\u4efb\u4f55\u8bf7\u6c42\u7684\u80fd\u529b<\/strong>\u3002\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5f20\u5927\u80d6\u8bf4\uff1a\u201c\u5177\u4f53\u600e\u4e48\u505a\u5462\uff1f \u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>Bill \u5199\u4e0b\u4e86\u5904\u7406\u8fc7\u7a0b\uff1a<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\uff081\uff09\u5047\u8bbe\u7528\u6237\u628a\u8bf7\u6c42\u53d1\u7ed9\u4e86\u8282\u70b91<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\uff082\uff09\u7cfb\u7edf\u901a\u8fc7\u4f59\u6570\u7b97\u6cd5\u5f97\u77e5\u8fd9\u4e2a&#8217;\u6587\u6863&#8217;\u5e94\u8be5\u5c5e\u4e8e\u4e3b\u5206\u72472\uff0c\u4e8e\u662f\u8bf7\u6c42\u88ab\u8f6c\u53d1\u5230\u4fdd\u5b58\u8be5\u4e3b\u5206\u7247\u7684\u8282\u70b93<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\uff083\uff09\u7cfb\u7edf\u628a\u6587\u6863\u4fdd\u5b58\u5728\u8282\u70b93\u7684\u4e3b\u5206\u72472\u4e2d\uff0c\u7136\u540e\u5c06\u8bf7\u6c42\u8f6c\u53d1\u81f3\u5176\u4ed6\u4e24\u4e2a\u4fdd\u5b58\u526f\u672c\u7684\u8282\u70b9\u3002<\/span><span>\u526f\u672c\u4fdd\u5b58\u6210\u529f\u4ee5\u540e\uff0c\u8282\u70b93\u4f1a\u5f97\u5230\u901a\u77e5\uff0c\u7136\u540e\u901a\u77e5\u8282\u70b91\uff0c \u8282\u70b91\u518d\u901a\u77e5\u7528\u6237\u3002<\/span><\/p>\n<\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u5982\u679c\u662f\u505a\u67e5\u8be2\u5462\uff1f \u6bd4\u5982\u8bf4\u7528\u6237\u67e5\u8be2\u4e00\u4e2a\u6587\u6863\uff1a GET \/coolspace\/blog\/1001\uff0c \u8be5\u5982\u4f55\u5904\u7406\uff1f\u201d \u5f20\u5927\u80d6\u95ee\u9053\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u540c\u6837\uff0c\u67e5\u8be2\u7684\u8bf7\u6c42\u4e5f\u53ef\u4ee5\u5206\u53d1\u5230\u4efb\u610f\u4e00\u4e2a\u8282\u70b9\uff0c\u7136\u540e\u8be5\u8282\u70b9\u53ef\u4ee5\u627e\u5230\u4e3b\u5206\u7247\u6216\u8005\u4efb\u610f\u4e00\u4e2a\u526f\u672c\uff0c\u8fd4\u56de\u5373\u53ef\u3002 \u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\uff081\uff09 \u8bf7\u6c42\u88ab\u53d1\u7ed9\u4e86\u8282\u70b91<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\uff082\uff09\u8282\u70b91\u8ba1\u7b97\u51fa\u8be5\u6570\u636e\u5c5e\u4e8e\u4e3b\u5206\u72472\uff0c\u8fd9\u65f6\u5019\uff0c\u6709\u4e09\u4e2a\u9009\u62e9\uff0c\u5206\u522b\u662f\u4f4d\u4e8e\u8282\u70b91\u7684\u526f\u672c2\uff0c \u8282\u70b92\u7684\u526f\u672c2\uff0c\u8282\u70b93\u7684\u4e3b\u5206\u72472\uff0c \u5047\u8bbe\u8282\u70b91\u4e3a\u4e86<span>\u8d1f\u8f7d\u5747\u8861<\/span>\uff0c\u91c7\u7528\u8f6e\u8be2\u7684\u65b9\u5f0f\uff0c\u9009\u4e2d\u4e86\u8282\u70b92\uff0c\u628a\u8bf7\u6c42\u8f6c\u53d1\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\uff083\uff09 \u8282\u70b92\u628a\u6570\u636e\u8fd4\u56de\u7ed9\u8282\u70b91\uff0c \u8282\u70b91 \u6700\u540e\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002<\/span><\/p>\n<\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u8fd9\u4e2a\u65b9\u5f0f\u6bd4\u8f83\u7075\u6d3b\uff0c\u4f46\u662f\u8981\u6c42\u5404\u4e2a\u8282\u70b9\u4e4b\u95f4\u5f97\u80fd\u4e92\u901a\u6709\u65e0\u624d\u884c\uff01\u201d \u5f20\u5927\u80d6\u8bf4\u9053\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u4e0d\u4ec5\u5982\u6b64\uff0c\u5bf9\u4e8e\u4e00\u4e2a\u96c6\u7fa4\u6765\u8bf4\uff0c\u8fd8\u5f97\u6709\u4e00\u4e2a<strong>\u4e3b\u8282\u70b9\uff08master node\uff09<\/strong>\uff0c\u8fd9\u4e2a\u4e3b\u8282\u70b9\u5728\u5904\u7406\u6570\u636e\u8bf7\u6c42\u4e0a\u548c\u5176\u4ed6\u8282\u70b9\u662f\u5e73\u7b49\u7684\uff0c\u4f46\u662f\u5b83\u8fd8\u6709\u66f4\u91cd\u8981\u7684\u5de5\u4f5c\uff0c\u9700\u8981\u7ef4\u62a4\u6574\u4e2a\u96c6\u7fa4\u7684\u72b6\u6001\uff0c\u589e\u52a0\u79fb\u9664\u8282\u70b9\uff0c\u521b\u5efa\/\u5220\u9664\u7d22\u5f15\u5e93\uff0c\u7ef4\u62a4\u4e3b\u5206\u7247\u548c\u96c6\u7fa4\u7684\u5173\u7cfb\u7b49\u7b49\u3002\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u90a3\u5982\u679c\u8fd9\u4e2a\u4e3b\u8282\u70b9\u6302\u4e86\u5462\uff1f \u201d \u5f20\u5927\u80d6\u8ffd\u95ee\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u90a3\u53ea\u597d\u4ece\u5269\u4e0b\u7684\u8282\u70b9\u4e2d\u91cd\u65b0\u9009\u4e3e\u55bd\uff01\u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u54ce\u5440\uff0c\u8fd9\u5c31\u6d89\u53ca\u5230\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u5404\u79cd\u95ee\u9898\u4e86\uff0c\u4ec0\u4e48\u4e00\u81f4\u6027\uff0c\u8111\u88c2\uff0c\u592a\u96be\u4e86\uff01\u201d \u5f20\u5927\u80d6\u5f00\u59cb\u6253\u9000\u5802\u9f13\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u201c\u6211\u4eec\u53ea\u662f\u9009\u53d6\u4e00\u4e2aMaster\uff0c \u8981\u7b80\u5355\u5f97\u591a\uff0c\u4f60\u53ef\u4ee5\u770b\u770b\u4e00\u4e2a\u53eb\u505aBully\u7684\u7b97\u6cd5\uff0c \u6539\u8fdb\u4e00\u4e0b\u5e94\u8be5\u5c31\u53ef\u4ee5\u7528\u4e86\u3002 \u201d<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u5f00\u53d1\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u96be\u5ea6\u8981\u8fdc\u8fdc\u5927\u4e8e\u4e00\u4e2a\u5355\u673a\u7cfb\u7edf\uff0c\u534a\u5e74\u4ee5\u540e\uff0c\u8fd9\u4e2a\u88abBill\u547d\u540d\u4e3a<strong>Elasticsearch<\/strong>\u7684\u7cfb\u7edf\u624d\u53d1\u5e03\u4e86\u7b2c\u4e00\u4e2a\u7248\u672c\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u7531\u4e8e\u5b83\u5c4f\u853d\u4e86\u5f88\u591aLucene\u7684\u7ec6\u8282\uff0c\u53c8\u652f\u6301\u6d77\u91cf\u7d22\u5f15\u7684\u5b58\u50a8\uff0c\u5f88\u5feb\u5c31\u5927\u53d7\u6b22\u8fce\u3002<\/span><\/p>\n<p>Elasticsearch \u7684\u771f\u6b63\u4f20\u5947 <\/p>\n<p style=\"text-align: justify;\"><span>\u5f53\u7136\uff0c Elasticsearch\u4e0d\u662fBill\u548c\u5f20\u5927\u80d6\u521b\u9020\u7684\uff0c\u8fd9\u91cc\u624d\u662f\u5176\u4f20\u5947\u7684\u5386\u53f2\uff1a<\/span><span>\uff08\u6765\u6e90\uff1a\u300aElasticsearch\u6743\u5a01\u6307\u5357\u300b\uff09<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u8bb8\u591a\u5e74\u524d\uff0c\u4e00\u4e2a\u521a\u7ed3\u5a5a\u7684\u540d\u53eb Shay Banon \u7684\u5931\u4e1a\u5f00\u53d1\u8005\uff0c\u8ddf\u7740\u4ed6\u7684\u59bb\u5b50\u53bb\u4e86\u4f26\u6566\uff0c\u4ed6\u7684\u59bb\u5b50\u5728\u90a3\u91cc\u5b66\u4e60\u53a8\u5e08\u3002 \u5728\u5bfb\u627e\u4e00\u4e2a\u8d5a\u94b1\u7684\u5de5\u4f5c\u7684\u65f6\u5019\uff0c\u4e3a\u4e86\u7ed9\u4ed6\u7684\u59bb\u5b50\u505a\u4e00\u4e2a\u98df\u8c31<a class=\"tag-links\" href=\"https:\/\/www.fagao.me\/p\/t\/121\">\u641c\u7d22\u5f15\u64ce<\/a>\uff0c\u4ed6\u5f00\u59cb\u4f7f\u7528 Lucene \u7684\u4e00\u4e2a\u65e9\u671f\u7248\u672c\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u76f4\u63a5\u4f7f\u7528 Lucene \u662f\u5f88\u96be\u7684\uff0c\u56e0\u6b64 Shay \u5f00\u59cb\u505a\u4e00\u4e2a\u62bd\u8c61\u5c42\uff0cJava \u5f00\u53d1\u8005\u4f7f\u7528\u5b83\u53ef\u4ee5\u5f88\u7b80\u5355\u7684\u7ed9\u4ed6\u4eec\u7684\u7a0b\u5e8f\u6dfb\u52a0\u641c\u7d22\u529f\u80fd\u3002 \u4ed6\u53d1\u5e03\u4e86\u4ed6\u7684\u7b2c\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee Compass\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u540e\u6765 Shay \u83b7\u5f97\u4e86\u4e00\u4efd\u5de5\u4f5c\uff0c\u4e3b\u8981\u662f\u9ad8\u6027\u80fd\uff0c\u5206\u5e03\u5f0f\u73af\u5883\u4e0b\u7684\u5185\u5b58\u6570\u636e\u7f51\u683c\u3002\u8fd9\u4e2a\u5bf9\u4e8e\u9ad8\u6027\u80fd\uff0c\u5b9e\u65f6\uff0c\u5206\u5e03\u5f0f<a class=\"tag-links\" href=\"https:\/\/www.fagao.me\/p\/t\/121\">\u641c\u7d22\u5f15\u64ce<\/a>\u7684\u9700\u6c42\u5c24\u4e3a\u7a81\u51fa\uff0c \u4ed6\u51b3\u5b9a\u91cd\u5199 Compass\uff0c\u628a\u5b83\u53d8\u4e3a\u4e00\u4e2a\u72ec\u7acb\u7684\u670d\u52a1\u5e76\u53d6\u540d Elasticsearch\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u7b2c\u4e00\u4e2a\u516c\u5f00\u7248\u672c\u57282010\u5e742\u6708\u53d1\u5e03\uff0c\u4ece\u6b64\u4ee5\u540e\uff0cElasticsearch \u5df2\u7ecf\u6210\u4e3a\u4e86 Github \u4e0a\u6700\u6d3b\u8dc3\u7684\u9879\u76ee\u4e4b\u4e00\uff0c\u4ed6\u62e5\u6709\u8d85\u8fc7300\u540d contributors(\u76ee\u524d736\u540d contributors )\u3002 \u4e00\u5bb6\u516c\u53f8\u5df2\u7ecf\u5f00\u59cb\u56f4\u7ed5 Elasticsearch \u63d0\u4f9b\u5546\u4e1a\u670d\u52a1\uff0c\u5e76\u5f00\u53d1\u65b0\u7684\u7279\u6027\uff0c\u4f46\u662f\uff0cElasticsearch \u5c06\u6c38\u8fdc\u5f00\u6e90\u5e76\u5bf9\u6240\u6709\u4eba\u53ef\u7528\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span>\u636e\u8bf4\uff0cShay \u7684\u59bb\u5b50\u8fd8\u5728\u7b49\u7740\u5979\u7684\u98df\u8c31<a class=\"tag-links\" href=\"https:\/\/www.fagao.me\/p\/t\/121\">\u641c\u7d22\u5f15\u64ce<\/a>\u2026<\/span><\/p>\n<p>\u6587\u7ae0\u8f6c\u81ea\u516c\u4f17\u53f7\uff1a\u7801\u519c\u7ffb\u8eab<\/p>\n<div class=\"articleend\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7ecf\u8fc7\u4e09\u5e74\u7684\u5386\u7ec3\uff0c\u5f20\u5927\u80d6\u5df2\u7ecf\u6210\u4e3a\u4e86\u4e00\u4e2a\u5229\u7528Lucene\u8fd9\u4e2a\u8457\u540d\u7684\u5f00\u6e90\u8f6f\u4ef6\u505a\u641c\u7d22\u7684\u9ad8\u624b\uff0c\u5404\u79cd\u7ec6\u8282\u77e5\u8bc6\u548c\u6700\u4f73\u5b9e\u8df5\u5c3d\u5728 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[183],"class_list":["post-113602","post","type-post","status-publish","format-standard","hentry","category-news","tag-183"],"_links":{"self":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/posts\/113602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/comments?post=113602"}],"version-history":[{"count":0,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/posts\/113602\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/media?parent=113602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/categories?post=113602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/tags?post=113602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}