{"id":159015,"date":"2020-09-22T04:43:16","date_gmt":"2020-09-21T20:43:16","guid":{"rendered":"http:\/\/4563.org\/?p=159015"},"modified":"2020-09-22T04:43:16","modified_gmt":"2020-09-21T20:43:16","slug":"%e5%af%b9%e4%ba%8e-elasticsearch%ef%bc%8c%e9%9c%80%e8%a6%81%e7%b1%bb%e4%bc%bc%e4%ba%8e%e9%98%b2-sql-%e6%b3%a8%e5%85%a5%e9%82%a3%e4%b8%80%e5%a5%97%e4%bb%a3%e7%a0%81%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=159015","title":{"rendered":"\u5bf9\u4e8e elasticsearch\uff0c\u9700\u8981\u7c7b\u4f3c\u4e8e\u9632 sql \u6ce8\u5165\u90a3\u4e00\u5957\u4ee3\u7801\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5bf9\u4e8e elasticsearch\uff0c\u9700\u8981\u7c7b\u4f3c\u4e8e\u9632 sql \u6ce8\u5165\u90a3\u4e00\u5957\u4ee3\u7801\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kisshere <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u76f4\u63a5\u4f7f\u7528$_GET[&#8216;query&#8217;]\u4e0d\u505a\u4efb\u4f55\u6570\u636e\u5904\u7406\uff0c\u4f1a\u4e0d\u4f1a\u51fa\u73b0 elasticsearch \u6570\u636e\u6cc4\u9732\u7b49\u5176\u4ed6\u5b89\u5168\u95ee\u9898<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3414486\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : somalia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f53\u7136\u9700\u8981                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3414487\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tsingke <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u9700\u8981\u5427\uff0c\u53ef\u80fd\u662f\u6211\u6c34\u5e73\u592a\u6b21\uff0c\u60f3\u4e0d\u5230\u4efb\u4f55\u6ce8\u5165\u7684\u4f8b\u5b50\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3414488\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bf9\u4e8e\u53ef\u6267\u884c sql\uff0c\u4f60\u5fc5\u987b\u5f97\u9632\u6ce8\u5165\uff0c\u4e0d\u7136\u597d\u597d\u7684 select\uff0c\u901a\u8fc7\u6ce8\u5165\u7ed9\u4f60\u5e26\u4e0a\u4e00\u6bb5 delete\uff0c\u5bf9\u4f60\u7684\u6570\u636e\u53ef\u662f\u6bc1\u706d\u6027\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3414489\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : UserNameisNull <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. es \u7684 GET \u7684\u8bf7\u6c42\u4e0d\u4f1a\u9020\u6210\u6570\u636e\u6539\u53d8\uff0c\u4e0d\u50cf sql \u8bed\u53e5 select \u88ab\u6ce8\u5165\u540e\u4f1a\u53d8\u6210 update delete \u7b49\u6539\u53d8\u6570\u636e\u7684 sql \u3002<br \/>2. \u654f\u611f\u6570\u636e\uff0c\u91cd\u8981\u6570\u636e\uff0c\u4e0d\u5efa\u8bae\u653e\u5230 es \u91cc\u9762\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3414490\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : libook <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             SQL \u7684\u6838\u5fc3\u7528\u6cd5\u5c31\u662f\u62fc\u63a5\u5b57\u7b26\u4e32\uff0c\u6240\u4ee5\u5176\u6ce8\u5165\u8106\u5f31\u6027\u662f\u5929\u751f\u7684\uff0c\u56e0\u4e3a\u5176\u53ea\u505a\u5230\u4e86\u8bed\u4e49\u4e0a\u7684\u7ed3\u6784\u5316\u5e76\u6ca1\u6709\u505a\u5230\u683c\u5f0f\u4e0a\u7684\u7ed3\u6784\u5316\uff0c\u7528\u6cd5\u5c31\u662f\u62fc\u63a5 SQL \u5b57\u7b26\u4e32\uff0c\u6240\u4ee5\u5f88\u5bb9\u6613\u7834\u574f\u6389\u9884\u671f\u7684\u8bed\u4e49\u7ed3\u6784\u3002JSON(YAML)\u3001XML \u7b49\u683c\u5f0f\u56e0\u4e3a\u672c\u8eab\u53ef\u4ee5\u5f88\u5bb9\u6613\u5bf9\u8c61\u5316\uff0c\u5bf9\u5bf9\u8c61\u7684\u64cd\u4f5c\u662f\u88ab\u9650\u5236\u5728\u5bf9\u8c61\u63d0\u4f9b\u7684\u6a21\u5f0f\u5185\u7684\uff0c\u6240\u4ee5\u5929\u751f\u5177\u5907\u5bf9\u6ce8\u5165\u7684\u6297\u6027\u3002<\/p>\n<p>\u53ea\u8981\u4f60\u524d\u540e\u7aef\u4e25\u683c\u6309\u7167 JSON \u683c\u5f0f\u6765\u5904\u7406\u6570\u636e\uff0c\u4e0d\u5728\u5e8f\u5217\u5316\u540e\u8fdb\u884c\u5b57\u7b26\u4e32\u62fc\u63a5\uff0c\u901a\u5e38\u4e0d\u4f1a\u6709\u6ce8\u5165\u98ce\u9669\u3002<\/p>\n<p>\u5269\u4e0b\u7684\u5c31\u662f\u4e0d\u7ba1\u7528\u4ec0\u4e48\u90fd\u8981\u505a\u597d\u7684\u5b89\u5168\u7b56\u7565\uff0c\u6bd4\u5982\u9650\u5236\u597d\u67e5\u8be2\u7684\u6570\u636e\u91cf\u907f\u514d\u5168\u5e93\u5bfc\u51fa\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3414491\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fox0001 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4eec\u7684\u9879\u76ee\uff0c\u90fd\u7528 Solr \u505a\u641c\u7d22\u3002\u6bcf\u5468\u5bfc\u51fa\u641c\u7d22\u8bb0\u5f55\uff0c\u90fd\u4f1a\u5bf9\u7740\u4e00\u5806 SQL \u6ce8\u5165\u8bed\u53e5\u800c\u65e0\u5948\u5730\u82e6\u7b11                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5bf9\u4e8e elasticsearch\uff0c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159015"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159015"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/159015\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159015"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}