{"id":476846,"date":"2021-05-05T19:53:35","date_gmt":"2021-05-05T11:53:35","guid":{"rendered":"http:\/\/4563.org\/?p=476846"},"modified":"2021-05-05T19:53:35","modified_gmt":"2021-05-05T11:53:35","slug":"%e5%83%8f%e4%bd%bf%e7%94%a8-mybatis-%e6%96%b9%e5%bc%8f%e4%b8%80%e6%a0%b7%e6%9d%a5%e4%bd%bf%e7%94%a8-elasticsearch","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=476846","title":{"rendered":"\u50cf\u4f7f\u7528 mybatis \u65b9\u5f0f\u4e00\u6837\u6765\u4f7f\u7528 elasticsearch"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u50cf\u4f7f\u7528 mybatis \u65b9\u5f0f\u4e00\u6837\u6765\u4f7f\u7528 elasticsearch               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : manymobi <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>TestMapper \u548c esdsl\/test.esdsl \u6587\u4ef6\u5185\u5bb9<\/p>\n<p>https:\/\/github.com\/manymobi\/esdsl-core\/blob\/master\/images\/esdsl.png<\/p>\n<pre><code>@Mapper(\"esdsl\/test.esdsl\") public interface TestMapper {      JSONObject search(@Param(\"content\") String content);      JSONObject search1(@Param(\"sssss\") String sssss, @Param(\"list\") List list);      @Query(\"{\"ssss\":#{sssss},\"integer\":#{integer}}\")     @RequestMapping(method = RequestMethod.GET, value = \"\/v\")     JSONObject search2(@Param(\"sssss\") String sssss, @Param(\"integer\") Integer integer);      @RequestMapping(method = RequestMethod.GET, value = \"\/v\")     JSONObject search3(@RequestBody String sssss);  } <\/code><\/pre>\n<pre><code>==&gt; search GET \/index\/${fulltext}\/_search {   \"query\" : {  #if(232==\"rwerwe\")     \"match\" : {       \"id\" :123133131223123212313131       }  #endif   },    \"highlight\" : {         \"pre_tags\" : [\"&lt;tag1&gt;\", \"&lt;tag2&gt;\"],         \"post_tags\" : [\"&lt;\/tag1&gt;\", \"&lt;\/tag2&gt;\"],         \"fields\" : {             \"content\" : #{content}         }     } } <\/code><\/pre>\n<p>\u4ed3\u5e93\u5730\u5740 https:\/\/github.com\/manymobi\/esdsl-core<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u50cf\u4f7f\u7528 mybatis \u65b9\u5f0f\u4e00\u6837\u6765&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\/476846"}],"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=476846"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/476846\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=476846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=476846"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=476846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}