{"id":23516,"date":"2024-11-21T10:23:36","date_gmt":"2024-11-21T02:23:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/23516\/"},"modified":"2024-11-21T10:23:36","modified_gmt":"2024-11-21T02:23:36","slug":"swoole%e4%b8%8eelasticsearch%e7%9a%84%e5%ae%8c%e7%be%8e%e7%bb%93%e5%90%88%ef%bc%9a%e6%9e%84%e5%bb%ba%e9%ab%98%e6%80%a7%e8%83%bd%e7%9a%84%e5%85%a8%e6%96%87%e6%a3%80%e7%b4%a2%e5%bc%95%e6%93%8e","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/23516\/","title":{"rendered":"Swoole\u4e0eElasticSearch\u7684\u5b8c\u7f8e\u7ed3\u5408\uff1a\u6784\u5efa\u9ad8\u6027\u80fd\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce"},"content":{"rendered":"<p>\u968f\u7740\u4e91\u8ba1\u7b97\u548c\u5927\u6570\u636e\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u7684\u5e94\u7528\u8d8a\u6765\u8d8a\u5e7f\u6cdb\uff0c\u6210\u4e3a\u6570\u636e\u5206\u6790\u3001\u667a\u80fd\u641c\u7d22\u3001\u4fe1\u606f\u7ba1\u7406\u7b49\u9886\u57df\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002\u800c\u5728\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u7684\u5b9e\u73b0\u4e2d\uff0c\u548celasticsearch\u65e0\u7591\u662f\u4e24\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u7ed3\u5408\u8d77\u6765\u53ef\u4ee5\u6784\u5efa\u9ad8\u6027\u80fd\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u3002<\/p>\n<p>Swoole\u662f\u4e00\u4e2a\u57fa\u4e8ePHP\u8bed\u8a00\u7684\u9ad8\u6027\u80fd\u7f51\u7edc\u901a\u4fe1\u6846\u67b6\uff0c\u5b83\u652f\u6301\u591a\u8fdb\u7a0b\u3001\u534f\u7a0b\u3001\u5f02\u6b65\u3001\u5e76\u53d1\u7b49\u7279\u6027\u3002ElasticSearch\u5219\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\uff0c\u5177\u6709\u5206\u5e03\u5f0f\u3001\u9ad8\u53ef\u7528\u548c\u6a2a\u5411\u6269\u5c55\u7b49\u4f18\u52bf\u3002\u901a\u8fc7\u7ed3\u5408Swoole\u548cElasticSearch\uff0c\u6211\u4eec\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u9ad8\u6027\u80fd\u3001\u53ef\u6269\u5c55\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\uff0c\u5b9e\u73b0\u5168\u6587\u68c0\u7d22\u7684\u529f\u80fd\u3002<\/p>\n<p>\u5728\u5b9e\u73b0\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u4e86\u89e3\u5168\u6587\u68c0\u7d22\u7684\u539f\u7406\u3002\u5168\u6587\u68c0\u7d22\u662f\u4e00\u79cd\u57fa\u4e8e\u5012\u6392\u7d22\u5f15\u7684\u68c0\u7d22\u6280\u672f\uff0c\u5c06\u6587\u672c\u6570\u636e\u4e2d\u6240\u6709\u7684\u5355\u8bcd\u90fd\u4f5c\u4e3a\u7d22\u5f15\u9879\uff0c\u5efa\u7acb\u7d22\u5f15\u8868\u683c\u3002\u5728\u7528\u6237\u8f93\u5165\u68c0\u7d22\u8bcd\u65f6\uff0c\u5c06\u68c0\u7d22\u8bcd\u4e0e\u7d22\u5f15\u8868\u683c\u4e2d\u7684\u5355\u8bcd\u8fdb\u884c\u6bd4\u8f83\uff0c\u627e\u51fa\u6240\u6709\u7b26\u5408\u6761\u4ef6\u7684\u6587\u6863\uff0c\u5e76\u6309\u7167\u76f8\u5173\u6027\u8fdb\u884c\u6392\u5e8f\uff0c\u6700\u7ec8\u5448\u73b0\u7ed9\u7528\u6237\u641c\u7d22\u7ed3\u679c\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Swoole\u548cElasticSearch\u6784\u5efa\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a\u5b89\u88c5Swoole\u548cElasticSearch<\/p>\n<p>Swoole\u7684\u5b89\u88c5\u53ef\u4ee5\u901a\u8fc7\u5b98\u65b9\u7f51\u7ad9\u63d0\u4f9b\u7684\u6e90\u7801\u5305\u6216composer\u5de5\u5177\u8fdb\u884c\u5b89\u88c5\u3002ElasticSearch\u7684\u5b89\u88c5\u53ef\u4ee5\u901a\u8fc7\u5b98\u7f51\u63d0\u4f9b\u7684\u5b89\u88c5\u5305\u8fdb\u884c\u5b89\u88c5\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7Docker\u7b49\u5bb9\u5668\u6280\u672f\u8fdb\u884c\u5feb\u901f\u5b89\u88c5\u3002<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff1a\u6784\u5efa\u7d22\u5f15\u8868\u683c<\/p>\n<p>\u5728ElasticSearch\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528mapping\u6765\u5b9a\u4e49\u7d22\u5f15\u8868\u683c\uff0c\u6587\u6863\u6570\u636e\u5728\u7d22\u5f15\u8868\u683c\u4e2d\u4ee5JSON\u683c\u5f0f\u5b58\u50a8\u3002\u5728\u6784\u5efa\u7d22\u5f15\u8868\u683c\u65f6\uff0c\u9700\u8981\u6307\u5b9a\u7d22\u5f15\u540d\u79f0\u3001\u6587\u6863\u7c7b\u578b\u548c\u6620\u5c04(mapping)\u7b49\u53c2\u6570\u3002\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>use ElasticsearchClientBuilder;\n\n$client = ClientBuilder::create()-&amp;gt;build();\n$params = [\n    'index' =&amp;gt; 'my_index',\n    'body' =&amp;gt; [\n        'mappings' =&amp;gt; [\n            'my_mapping' =&amp;gt; [\n                'properties' =&amp;gt; [\n                    'title' =&amp;gt; [\n                        'type' =&amp;gt; 'text'\n                    ],\n                    'content' =&amp;gt; [\n                        'type' =&amp;gt; 'text'\n                    ]\n                ]\n            ]\n        ]\n    ]\n];\n\n$response = $client-&amp;gt;indices()-&amp;gt;create($params);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u4ee3\u7801\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3amy_index\u7684\u7d22\u5f15\u8868\u683c\uff0c\u5e76\u5b9a\u4e49\u4e86\u6587\u6863\u7c7b\u578b\u4e3amy_mapping\uff0c\u5305\u542btitle\u548ccontent\u4e24\u4e2a\u5b57\u6bb5\u3002<\/p>\n<p>\u7b2c\u4e09\u6b65\uff1a\u63d2\u5165\u6587\u6863\u6570\u636e<\/p>\n<p>\u5728ElasticSearch\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u6587\u6863\u6765\u5b58\u50a8\u548c\u68c0\u7d22\u6570\u636e\uff0c\u6587\u6863\u4ee5JSON\u683c\u5f0f\u5b58\u50a8\u3002\u63d2\u5165\u6587\u6863\u7684\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre>$params = [\n    'index' =&amp;gt; 'my_index',\n    'type' =&amp;gt; 'my_mapping',\n    'id' =&amp;gt; '1',\n    'body' =&amp;gt; [\n        'title' =&amp;gt; '\u6807\u9898',\n        'content' =&amp;gt; '\u6587\u672c\u5185\u5bb9'\n    ]\n];\n\n$response = $client-&amp;gt;index($params);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u4ee3\u7801\uff0c\u6211\u4eec\u63d2\u5165\u4e86\u4e00\u6761id\u4e3a1\u3001title\u4e3a\u201c\u6807\u9898\u201d\u3001content\u4e3a\u201c\u6587\u672c\u5185\u5bb9\u201d\u7684\u6587\u6863\u6570\u636e\u3002<\/p>\n<p>\u7b2c\u56db\u6b65\uff1a\u6267\u884c\u5168\u6587\u68c0\u7d22<\/p>\n<p>\u5728ElasticSearch\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7query\u6765\u6267\u884c\u5168\u6587\u68c0\u7d22\uff0cquery\u4e5f\u662f\u4ee5JSON\u683c\u5f0f\u8fdb\u884c\u5b9a\u4e49\u3002\u5168\u6587\u68c0\u7d22\u7684\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre>$params = [\n    'index' =&amp;gt; 'my_index',\n    'type' =&amp;gt; 'my_mapping',\n    'body' =&amp;gt; [\n        'query' =&amp;gt; [\n            'match' =&amp;gt; [\n                'title' =&amp;gt; '\u5173\u952e\u8bcd'\n            ]\n        ]\n    ]\n];\n\n$response = $client-&amp;gt;search($params);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528match\u6765\u8fdb\u884c\u5168\u6587\u68c0\u7d22\uff0c\u5c06\u68c0\u7d22\u5173\u952e\u8bcd\u201c\u5173\u952e\u8bcd\u201d\u4e0etitle\u5b57\u6bb5\u8fdb\u884c\u5339\u914d\u3002<\/p>\n<p>\u7b2c\u4e94\u6b65\uff1a\u4f7f\u7528Swoole\u5b9e\u73b0\u5f02\u6b65\u7f51\u7edc\u901a\u4fe1<\/p>\n<p>\u5728\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u4e2d\uff0c\u7f51\u7edc\u901a\u4fe1\u662f\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u90e8\u5206\u3002Swoole\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5f02\u6b65\u7f51\u7edc\u901a\u4fe1API\uff0c\u53ef\u4ee5\u5b9e\u73b0HTTP\u8bf7\u6c42\u3001\u7f51\u7edcI\/O\u7b49\u5f02\u6b65\u64cd\u4f5c\u3002\u901a\u8fc7\u4f7f\u7528Swoole\u7684\u5f02\u6b65\u7f51\u7edc\u901a\u4fe1\u529f\u80fd\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u6027\u80fd\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\uff0c\u63d0\u5347\u5168\u6587\u68c0\u7d22\u7684\u54cd\u5e94\u901f\u5ea6\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4f7f\u7528Swoole\u5b9e\u73b0\u5f02\u6b65\u7f51\u7edc\u901a\u4fe1\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<pre>$client = new SwooleClient(SWOOLE_SOCK_TCP, SWOOLE_SOCK_ASYNC);\n$client-&amp;gt;on(\"connect\", function(SwooleClient $cli) {\n    $cli-&amp;gt;send(\"GET \/ HTTP\/1.1\nHost: www.example.com\n\n\");\n});\n$client-&amp;gt;on(\"receive\", function(SwooleClient $cli, $data){\n    echo \"Received: \".$data.\"\n\";\n    $cli-&amp;gt;close();\n});\n$client-&amp;gt;on(\"error\", function(SwooleClient $cli){\n    echo \"Connect failed\n\";\n});\n$client-&amp;gt;on(\"close\", function(SwooleClient $cli){\n    echo \"Connection close\n\";\n});\n$client-&amp;gt;connect('127.0.0.1', 80, 0.5);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u4ee3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Swoole\u5b9e\u73b0\u5f02\u6b65\u7684\u7f51\u7edc\u901a\u4fe1\uff0c\u63d0\u5347\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u7684\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<p>\u7efc\u4e0a\u6240\u8ff0\uff0c\u901a\u8fc7\u7ed3\u5408Swoole\u548cElasticSearch\uff0c\u6211\u4eec\u53ef\u4ee5\u6784\u5efa\u9ad8\u6027\u80fd\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\uff0c\u5b9e\u73b0\u5feb\u901f\u3001\u51c6\u786e\u7684\u5168\u6587\u68c0\u7d22\u529f\u80fd\u3002\u540c\u65f6\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528Swoole\u7684\u5f02\u6b65\u7f51\u7edc\u901a\u4fe1\u529f\u80fd\u63d0\u5347\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u7684\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8fd8\u53ef\u4ee5\u7ed3\u5408\u5176\u4ed6\u6280\u672f\u6765\u8fdb\u4e00\u6b65\u4f18\u5316\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u7684\u6027\u80fd\u548c\u53ef\u6269\u5c55\u6027\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fSwoole\u4e0eElasticSearch\u7684\u5b8c\u7f8e\u7ed3\u5408\uff1a\u6784\u5efa\u9ad8\u6027\u80fd\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740\u4e91\u8ba1\u7b97\u548c\u5927\u6570\u636e\u6280\u672f\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u7684\u5e94\u7528\u8d8a\u6765\u8d8a\u5e7f\u6cdb\uff0c\u6210\u4e3a\u6570\u636e\u5206\u6790\u3001\u667a\u80fd\u641c\u7d22\u3001\u4fe1\u606f\u7ba1\u7406\u7b49\u9886\u57df\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002\u800c\u5728\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u7684\u5b9e\u73b0\u4e2d\uff0c\u548celasticsearch\u65e0\u7591\u662f\u4e24\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u7ed3\u5408\u8d77\u6765\u53ef\u4ee5\u6784\u5efa\u9ad8\u6027\u80fd\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u3002 Swoole\u662f\u4e00\u4e2a\u57fa\u4e8ePHP\u8bed\u8a00\u7684\u9ad8\u6027\u80fd\u7f51\u7edc\u901a\u4fe1\u6846\u67b6\uff0c\u5b83\u652f\u6301\u591a\u8fdb\u7a0b\u3001\u534f\u7a0b\u3001\u5f02\u6b65\u3001\u5e76\u53d1\u7b49\u7279\u6027\u3002ElasticSearch\u5219\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\uff0c\u5177\u6709\u5206\u5e03\u5f0f\u3001\u9ad8\u53ef\u7528\u548c\u6a2a\u5411\u6269\u5c55\u7b49\u4f18\u52bf\u3002\u901a\u8fc7\u7ed3\u5408Swoole\u548cElasticSearch\uff0c\u6211\u4eec\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u9ad8\u6027\u80fd\u3001\u53ef\u6269\u5c55\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\uff0c\u5b9e\u73b0\u5168\u6587\u68c0\u7d22\u7684\u529f\u80fd\u3002 \u5728\u5b9e\u73b0\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u4e86\u89e3\u5168\u6587\u68c0\u7d22\u7684\u539f\u7406\u3002\u5168\u6587\u68c0\u7d22\u662f\u4e00\u79cd\u57fa\u4e8e\u5012\u6392\u7d22\u5f15\u7684\u68c0\u7d22\u6280\u672f\uff0c\u5c06\u6587\u672c\u6570\u636e\u4e2d\u6240\u6709\u7684\u5355\u8bcd\u90fd\u4f5c\u4e3a\u7d22\u5f15\u9879\uff0c\u5efa\u7acb\u7d22\u5f15\u8868\u683c\u3002\u5728\u7528\u6237\u8f93\u5165\u68c0\u7d22\u8bcd\u65f6\uff0c\u5c06\u68c0\u7d22\u8bcd\u4e0e\u7d22\u5f15\u8868\u683c\u4e2d\u7684\u5355\u8bcd\u8fdb\u884c\u6bd4\u8f83\uff0c\u627e\u51fa\u6240\u6709\u7b26\u5408\u6761\u4ef6\u7684\u6587\u6863\uff0c\u5e76\u6309\u7167\u76f8\u5173\u6027\u8fdb\u884c\u6392\u5e8f\uff0c\u6700\u7ec8\u5448\u73b0\u7ed9\u7528\u6237\u641c\u7d22\u7ed3\u679c\u3002 \u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Swoole\u548cElasticSearch\u6784\u5efa\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u3002 \u7b2c\u4e00\u6b65\uff1a\u5b89\u88c5Swoole\u548cElasticSearch Swoole\u7684\u5b89\u88c5\u53ef\u4ee5\u901a\u8fc7\u5b98\u65b9\u7f51\u7ad9\u63d0\u4f9b\u7684\u6e90\u7801\u5305\u6216composer\u5de5\u5177\u8fdb\u884c\u5b89\u88c5\u3002ElasticSearch\u7684\u5b89\u88c5\u53ef\u4ee5\u901a\u8fc7\u5b98\u7f51\u63d0\u4f9b\u7684\u5b89\u88c5\u5305\u8fdb\u884c\u5b89\u88c5\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7Docker\u7b49\u5bb9\u5668\u6280\u672f\u8fdb\u884c\u5feb\u901f\u5b89\u88c5\u3002 \u7b2c\u4e8c\u6b65\uff1a\u6784\u5efa\u7d22\u5f15\u8868\u683c \u5728ElasticSearch\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528mapping\u6765\u5b9a\u4e49\u7d22\u5f15\u8868\u683c\uff0c\u6587\u6863\u6570\u636e\u5728\u7d22\u5f15\u8868\u683c\u4e2d\u4ee5JSON\u683c\u5f0f\u5b58\u50a8\u3002\u5728\u6784\u5efa\u7d22\u5f15\u8868\u683c\u65f6\uff0c\u9700\u8981\u6307\u5b9a\u7d22\u5f15\u540d\u79f0\u3001\u6587\u6863\u7c7b\u578b\u548c\u6620\u5c04(mapping)\u7b49\u53c2\u6570\u3002\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a use ElasticsearchClientBuilder; $client = ClientBuilder::create()-&amp;gt;build(); $params = [ &#8216;index&#8217; =&amp;gt; &#8216;my_index&#8217;, &#8216;body&#8217; =&amp;gt; [ &#8216;mappings&#8217; =&amp;gt; [ &#8216;my_mapping&#8217; =&amp;gt; [ &#8216;properties&#8217; =&amp;gt; [ &#8216;title&#8217; =&amp;gt; [ &#8216;type&#8217; =&amp;gt; &#8216;text&#8217; ], &#8216;content&#8217; =&amp;gt; [ &#8216;type&#8217; =&amp;gt; &#8216;text&#8217; ] ] ] ] ] ]; $response = $client-&amp;gt;indices()-&amp;gt;create($params); \u767b\u5f55\u540e\u590d\u5236 \u901a\u8fc7\u4ee5\u4e0a\u4ee3\u7801\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3amy_index\u7684\u7d22\u5f15\u8868\u683c\uff0c\u5e76\u5b9a\u4e49\u4e86\u6587\u6863\u7c7b\u578b\u4e3amy_mapping\uff0c\u5305\u542btitle\u548ccontent\u4e24\u4e2a\u5b57\u6bb5\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-23516","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/23516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=23516"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/23516\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=23516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=23516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=23516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}