{"id":90447,"date":"2020-05-02T07:45:29","date_gmt":"2020-05-01T23:45:29","guid":{"rendered":"http:\/\/4563.org\/?p=90447"},"modified":"2020-05-02T07:45:29","modified_gmt":"2020-05-01T23:45:29","slug":"mongo-%e7%b4%a2%e5%bc%95%e4%b8%8d%e6%87%82%e5%b0%b1%e9%97%ae%ef%bc%81%e8%bf%99%e7%a7%8d%e7%b4%a2%e5%bc%95%e5%a6%82%e4%bd%95%e5%bb%ba%e5%a5%bd%ef%bc%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=90447","title":{"rendered":"mongo \u7d22\u5f15\u4e0d\u61c2\u5c31\u95ee\uff01\u8fd9\u79cd\u7d22\u5f15\u5982\u4f55\u5efa\u597d\uff01"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  mongo \u7d22\u5f15\u4e0d\u61c2\u5c31\u95ee\uff01\u8fd9\u79cd\u7d22\u5f15\u5982\u4f55\u5efa\u597d\uff01               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : coderabbit <\/span>  <span><i><\/i> 11<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>mongo \u67e5\u8be2\u8bed\u53e5<\/p>\n<pre><code>db.t_policy.find({   $or: [{$and:[{\"policy_no\": \"31809341900153386520\"}]}, {\"bill_date\": \"\", \"effective_date\": \"\", \"engine_no\": \"\", \"expire_date\": \"\", \"first_register_date\": \"\", \"license_plate_no\": \"\", \"model\": \"\", \"vin\": \"\"}]  }) <\/code><\/pre>\n<p>\u641c\u7d22\u6761\u4ef6\u67d0\u4e9b\u5b57\u6bb5\u6709\uff0c\u67d0\u4e9b\u5b57\u6bb5\u53ef\u80fd\u6ca1\u5f97\uff0c\u662f\u5efa\u7acb\u5355\u4e2a\u7d22\u5f15\uff0c\u8fd8\u662f\u5efa\u8bae\u96c6\u5408\u7684\u7d22\u5f15\uff0c\u96c6\u5408\u7d22\u5f15\u662f\u4e0d\u662f\u6709\u65f6\u547d\u4e2d\u4e0d\u5230\u5440\u3002\u5982\u679c\u4e0d\u5efa\u7d22\u5f15 cpu \u731b\u5347\u3002\u6ca1\u6709\u8fd9\u65b9\u9762\u7ecf\u9a8c\u95ee\u95ee\u5927\u5bb6\uff01<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1293023\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : NoBugDie <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7a00\u758f\u7d22\u5f15\uff1f\uff1f\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1293024\" 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>                                                             \u4f60\u628a\u4e1a\u52a1\u4e0a\u4f1a\u51fa\u73b0\u5b57\u6bb5\u7ec4\u5408\u7684\u60c5\u51b5\u90fd\u5217\u51fa\u6765\uff0c\u4e00\u4e00\u5efa\u7d22\u5f15\u5c31\u884c\u4e86\uff0c\u4f46\u5982\u679c\u60c5\u51b5\u4e0d\u53ef\u63a7\uff0c\u6bd4\u5982\u82e5\u5e72\u5b57\u6bb5\u7684\u6240\u6709\u7ec4\u5408\u60c5\u51b5\u90fd\u6709\u7684\u8bdd\uff0c\u5efa\u8bae\u4e0a\u641c\u7d22\u5f15\u64ce\uff0c\u6bd4\u5982 Elasticsearch \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1293025\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : thinkmore <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u53c2\u8003\u4e0b\u6211\u7684\u8fd9\u7bc7\u6587\u7ae0\uff1a https:\/\/juejin.im\/post\/5e99136d51882573c508e278<\/p>\n<p>\u6709\u4e9b\u5b57\u6bb5\u6ca1\u6709\u4f60\u53ef\u4ee5\u5efa\u7acb\u90e8\u5206\u7d22\u5f15(\u5b83\u662f\u7a00\u758f\u7d22\u5f15\u7684\u8d85\u96c6\uff09\u3002 \u7136\u540e\u6839\u636e\u4f60\u5e38\u7528\u7684\u67e5\u8be2\u6765\u5efa\u7acb\u7d22\u5f15\uff0c\u7528 explain \u5206\u6790\u4e0b\u3002<\/p>\n<p>\u7d22\u5f15\u5efa\u7acb\u539f\u5219\uff0cESR(equal, sort, range)                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1293026\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : thinkmore <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ece\u4f60\u7684 query \u6765\u770b\uff0c\u81f3\u5c11 \u8981\u6709\u4e00\u4e2a policy_no \u7684\u7d22\u5f15\u3002 \u540e\u9762\u54ea\u4e9b\u5b57\u6bb5\u533a\u5206\u5ea6\u6bd4\u8f83\u9ad8\u5c31\u518d\u6dfb\u52a0\u54ea\u4e2a\u5b57\u6bb5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>mongo \u7d22\u5f15\u4e0d\u61c2\u5c31\u95ee\uff01\u8fd9\u79cd\u7d22\u5f15&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\/90447"}],"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=90447"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/90447\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=90447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=90447"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=90447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}