{"id":2904,"date":"2018-06-24T17:29:31","date_gmt":"2018-06-24T09:29:31","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2904"},"modified":"2018-06-24T17:29:31","modified_gmt":"2018-06-24T09:29:31","slug":"lucene-%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%85%8d%e8%b4%b9%e4%b8%8b%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2904","title":{"rendered":"Lucene \u89c6\u9891\u6559\u7a0b\u514d\u8d39\u4e0b\u8f7d"},"content":{"rendered":"<p>\n\tLucene\u662fapache\u8f6f\u4ef6\u57fa\u91d1\u4f1a4 jakarta\u9879\u76ee\u7ec4\u7684\u4e00\u4e2a\u5b50\u9879\u76ee\uff0c\u662f\u4e00\u4e2a\u5f00\u653e\u6e90\u4ee3\u7801\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u5de5\u5177\u5305\uff0c\u4f46\u5b83\u4e0d\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\uff0c\u800c\u662f\u4e00\u4e2a\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u7684\u67b6\u6784\uff0c\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684\u67e5\u8be2\u5f15\u64ce\u548c\u7d22\u5f15\u5f15\u64ce\uff0c\u90e8\u5206\u6587\u672c\u5206\u6790\u5f15\u64ce\uff08\u82f1\u6587\u4e0e\u5fb7\u6587\u4e24\u79cd\u897f\u65b9\u8bed\u8a00\uff09\u3002Lucene\u7684\u76ee\u7684\u662f\u4e3a\u8f6f\u4ef6\u5f00\u53d1\u4eba\u5458\u63d0\u4f9b\u4e00\u4e2a\u7b80\u5355\u6613\u7528\u7684\u5de5\u5177\u5305\uff0c\u4ee5\u65b9\u4fbf\u7684\u5728\u76ee\u6807\u7cfb\u7edf\u4e2d\u5b9e\u73b0\u5168\u6587\u68c0\u7d22\u7684\u529f\u80fd\uff0c\u6216\u8005\u662f\u4ee5\u6b64\u4e3a\u57fa\u7840\u5efa\u7acb\u8d77\u5b8c\u6574\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u3002Lucene\u662f\u4e00\u5957\u7528\u4e8e\u5168\u6587\u68c0\u7d22\u548c\u641c\u5bfb\u7684\u5f00\u6e90\u7a0b\u5f0f\u5e93\uff0c\u7531Apache\u8f6f\u4ef6\u57fa\u91d1\u4f1a\u652f\u6301\u548c\u63d0\u4f9b\u3002Lucene\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u5374\u5f3a\u5927\u7684\u5e94\u7528\u7a0b\u5f0f\u63a5\u53e3\uff0c\u80fd\u591f\u505a\u5168\u6587\u7d22\u5f15\u548c\u641c\u5bfb\u3002\u5728Java\u5f00\u53d1\u73af\u5883\u91ccLucene\u662f\u4e00\u4e2a\u6210\u719f\u7684\u514d\u8d39\u5f00\u6e90\u5de5\u5177\u3002\u5c31\u5176\u672c\u8eab\u800c\u8a00\uff0cLucene\u662f\u5f53\u524d\u4ee5\u53ca\u6700\u8fd1\u51e0\u5e74\u6700\u53d7\u6b22\u8fce\u7684\u514d\u8d39Java\u4fe1\u606f\u68c0\u7d22\u7a0b\u5e8f\u5e93\u3002\u4eba\u4eec\u7ecf\u5e38\u63d0\u5230\u4fe1\u606f\u68c0\u7d22\u7a0b\u5e8f\u5e93\uff0c\u867d\u7136\u4e0e\u641c\u7d22\u5f15\u64ce\u6709\u5173\uff0c\u4f46\u4e0d\u5e94\u8be5\u5c06\u4fe1\u606f\u68c0\u7d22\u7a0b\u5e8f\u5e93\u4e0e\u641c\u7d22\u5f15\u64ce\u76f8\u6df7\u6dc6\u3002\n<\/p>\n<p>\n\t\u76ee\u524d\u5728\u4e92\u8054\u7f51\u516c\u53f8\uff0cLucene \u88ab\u5927\u591a\u6570\u516c\u53f8\u6240\u91c7\u7528\u3002\u800c\u5728\u7f8e\u56e2\uff0c\u963f\u91cc\uff0c\u4eac\u4e1c\uff0c\u6ef4\u6ef4\u7b49\u516c\u53f8\u7684\u9762\u8bd5\u4e2d\u90fd\u53ef\u80fd\u4f1a\u88ab\u95ee\u5230\u7684\u77e5\u8bc6\u70b9\u3002\u4e3a\u4e86\u5de5\u4f5c\uff0c\u4e3a\u4e86\u4e0d\u88ab\u4e00\u7ebf\u57ce\u5e02\u6240\u6dd8\u6c70\uff0c\u52aa\u529b\u5b66\u4e60\u662f\u5f88\u6709\u5fc5\u8981\u7684\u3002\u672c\u6587\u5c06\u514d\u8d39\u4e3a\u5927\u5bb6\u5206\u4eab\u4e00\u5957&nbsp;Lucene \u89c6\u9891\u6559\u7a0b\uff0c\u672c\u89c6\u9891\u6559\u7a0b\u5b8c\u5168\u514d\u8d39\uff0c\u65e0\u9700\u4efb\u4f55\u89e3\u538b\u5bc6\u7801\uff0c\u4e0b\u8f7d\u5373\u53ef\u89c2\u770b\uff01\n<\/p>\n<p>\n\t\u672c\u89c6\u9891\u6559\u7a0b\u5171\u5206\u4e3a 50 \u4e2a\u7ae0\u8282\uff0c\u4e0b\u9762\u662f\u5177\u4f53\u7ae0\u8282\u5185\u5bb9\u8bf4\u660e\uff1a\n<\/p>\n<ul>\n<li>\n\t\t01.Lucene\u7b80\u4ecb\u548c\u521b\u5efa\u7d22\u5f15\u521d\u6b65\n\t<\/li>\n<li>\n\t\t02.Lucene\u7b80\u4ecb\u548c\u641c\u7d22\u521d\u6b65\n\t<\/li>\n<li>\n\t\t03.Lucene\u7d22\u5f15\u521b\u5efa\u3001\u57df\u9009\u9879\n\t<\/li>\n<li>\n\t\t04.Lucene\u7d22\u5f15\u7684\u5220\u9664\u548c\u66f4\u65b0\n\t<\/li>\n<li>\n\t\t05.Lucene\u7d22\u5f15\u52a0\u6743\u64cd\u4f5c\u548cLuke\u7684\u7b80\u5355\u6f14\u793a\n\t<\/li>\n<li>\n\t\t06.\u5bf9\u65e5\u671f\u548c\u6570\u5b57\u8fdb\u884c\u7d22\u5f15\n\t<\/li>\n<li>\n\t\t07.IndexReader\u7684\u8bbe\u8ba1\n\t<\/li>\n<li>\n\t\t08.Directory\u7684\u51e0\u79cd\u64cd\u4f5c\u65b9\u5f0f\n\t<\/li>\n<li>\n\t\t09.Lucene\u7684\u641c\u7d22\uff08TermRange\u7b49\u57fa\u672c\u641c\u7d22\uff09\n\t<\/li>\n<li>\n\t\t10.Lucene\u7684\u641c\u7d22\uff08\u5176\u4ed6\u5e38\u7528Query\u641c\u7d22\uff09\n\t<\/li>\n<li>\n\t\t11.Lucene\u7684\u641c\u7d22\uff08\u57fa\u4e8eQueryParser\u7684\u641c\u7d22\uff09\n\t<\/li>\n<li>\n\t\t12.Lucene\u7684\u641c\u7d22\uff08\u590d\u4e60\u548c\u518d\u67e5\u8be2\u5206\u9875\u641c\u7d22\uff09\n\t<\/li>\n<li>\n\t\t13.Lucene\u7684\u641c\u7d22\uff08\u57fa\u4e8esearchAfter\u7684\u5b9e\u73b0\uff09\n\t<\/li>\n<li>\n\t\t14.Lucene\u7684\u5206\u8bcd\uff08\u5206\u8bcd\u5668\u7684\u539f\u7406\u8bb2\u89e3\uff09\n\t<\/li>\n<li>\n\t\t15.Lucene\u7684\u5206\u8bcd\uff08\u901a\u8fc7TokenStream\u663e\u793a\u5206\u8bcd\uff09\n\t<\/li>\n<li>\n\t\t16.Lucene\u7684\u5206\u8bcd\uff08\u901a\u8fc7TokenStream\u663e\u793a\u5206\u8bcd\u7684\u8be6\u7ec6\u4fe1\u606f\uff09\n\t<\/li>\n<li>\n\t\t17.Lucene\u7684\u5206\u8bcd\uff08\u4e2d\u6587\u5206\u8bcd\u4ecb\u7ecd\uff09\n\t<\/li>\n<li>\n\t\t18.Lucene\u7684\u5206\u8bcd\uff08\u5b9e\u73b0\u81ea\u5b9a\u4e49\u540c\u4e49\u8bcd\u5206\u8bcd\u5668\u3001\u601d\u8def\u5206\u6790\uff09\n\t<\/li>\n<li>\n\t\t19.Lucene\u7684\u5206\u8bcd\uff08\u5b9e\u73b0\u81ea\u5b9a\u4e49\u540c\u4e49\u8bcd\u5206\u8bcd\u5668\u3001\u5b9e\u73b0\u5206\u8bcd\u5668\uff09\n\t<\/li>\n<li>\n\t\t20.Lucene\u7684\u5206\u8bcd\uff08\u5b9e\u73b0\u81ea\u5b9a\u4e49\u540c\u4e49\u8bcd\u5206\u8bcd\u5668\u3001\u5b9e\u73b0\u5206\u8bcd\u5668\u3010\u826f\u597d\u8bbe\u8ba1\u65b9\u6848\u3011\uff09\n\t<\/li>\n<li>\n\t\t21.Lucene\u7684\u81ea\u5b9a\u4e49\u6392\u5e8f\n\t<\/li>\n<li>\n\t\t22.Lucene\u7684\u4f7f\u7528Filter\n\t<\/li>\n<li>\n\t\t23.Lucene\u7684\u4f7f\u7528\uff08\u7b80\u5355\u590d\u4e60\u7d22\u5f15\u3001\u68c0\u7d22\u548c\u5206\u8bcd\uff09\n\t<\/li>\n<li>\n\t\t24.Lucene\u7684\u4f7f\u7528\uff08\u81ea\u5b9a\u4e49\u8bc4\u5206\u7b80\u4ecb\uff09\n\t<\/li>\n<li>\n\t\t25.Lucene\u7684\u4f7f\u7528\uff08\u6839\u636e\u57df\u8fdb\u884c\u8bc4\u5206\u8bbe\u5b9a\uff09\n\t<\/li>\n<li>\n\t\t26.Lucene\u7684\u4f7f\u7528\uff08\u81ea\u5b9a\u4e49QueryParer\u89e3\u51b3\u90e8\u5206\u67e5\u8be2\u7684\u6027\u80fd\u95ee\u9898\uff09\n\t<\/li>\n<li>\n\t\t27.Lucene\u7684\u4f7f\u7528\uff08\u81ea\u5b9a\u4e49QueryParer\u89e3\u51b3\u65e5\u671f\u548c\u6570\u5b57\u8303\u56f4\u95ee\u9898\uff09\n\t<\/li>\n<li>\n\t\t28.Lucene\u7684\u4f7f\u7528\uff08\u81ea\u5b9a\u4e49filter\uff09\n\t<\/li>\n<li>\n\t\t29.Lucene\u7684\u4f7f\u7528\uff08\u81ea\u5b9a\u4e49filter\u5408\u7406\u7684\u8bbe\u8ba1\u65b9\u5f0f\uff09\n\t<\/li>\n<li>\n\t\t30.Lucene\u7684\u6269\u5c55\uff08luke\u4ecb\u7ecd\uff09\n\t<\/li>\n<li>\n\t\t31.Lucene\u7684\u6269\u5c55\uff08tika\u4ecb\u7ecd\uff09\n\t<\/li>\n<li>\n\t\t32.Lucene\u7684\u6269\u5c55\uff08tika\u7684\u7b2c\u4e8c\u79cd\u4f7f\u7528\u65b9\u5f0f\uff09\n\t<\/li>\n<li>\n\t\t33.Lucene\u7684\u6269\u5c55\uff08\u4f7f\u7528tika\u521b\u5efa\u7d22\u5f15\u5e76\u641c\u7d22\uff09\n\t<\/li>\n<li>\n\t\t34.Lucene\u7684\u6269\u5c55\uff08\u9ad8\u4eae\u57fa\u7840\uff09\n\t<\/li>\n<li>\n\t\t35.Lucene\u7684\u6269\u5c55\uff08\u9ad8\u4eae\u7d22\u5f15\u6587\u4ef6\uff09\n\t<\/li>\n<li>\n\t\t36.Lucene\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\u9700\u6c42\u5206\u6790\n\t<\/li>\n<li>\n\t\t37.Lucene\u5982\u4f55\u901a\u8fc7NRTManager\u548cSearchManager\u5b9e\u73b0\u8fd1\u5b9e\u65f6\u641c\u7d22\n\t<\/li>\n<li>\n\t\t38.Lucene\u5728\u9879\u76ee\u4e2d\u7684\u5b9e\u73b0\u5206\u6790\n\t<\/li>\n<li>\n\t\t39.Lucene\u5728\u9879\u76ee\u4e2d\u7684\u5b9e\u73b0\u90e8\u5206Service\u7684\u529f\u80fd\n\t<\/li>\n<li>\n\t\t40.Lucene\u5728\u9879\u76ee\u4e2d\u7684\u5b9e\u73b0\u7d22\u5f15\u91cd\u6784\u7684\u529f\u80fd\n\t<\/li>\n<li>\n\t\t41.Lucene\u5728\u7559\u8a00\u9879\u76ee\u4e2d\u4e3a\u589e\u52a0\u548c\u5220\u9664\u6dfb\u52a0\u7d22\u5f15\u529f\u80fd\n\t<\/li>\n<li>\n\t\t42.Lucene\u89e3\u51b3\u4e86\u4e00\u4e9b\u5f00\u53d1\u4e2d\u5b58\u5728\u7684\u95ee\u9898\uff08\u8be5\u90e8\u5206\u89c6\u9891\u8bb2\u89e3\u76f8\u5bf9\u8f83\u4e71\uff09\n\t<\/li>\n<li>\n\t\t43.Lucene\u5b8c\u6210\u641c\u7d22\u529f\u80fd\uff08\u4f46\u662f\u5b58\u5728\u91cd\u590d\u6027\u7684\u95ee\u9898\uff09\n\t<\/li>\n<li>\n\t\t44.Lucene\u5728\u7559\u8a00\u9879\u76ee\u4e2d\u4f7f\u7528\uff08\u6362\u4e86\u4e00\u79cd\u601d\u8def\u89e3\u51b3\u91cd\u590d\u95ee\u9898\uff09\n\t<\/li>\n<li>\n\t\t45.Lucene\u5728\u7559\u8a00\u9879\u76ee\u4e2d\u6dfb\u52a0\u9ad8\u4eae\uff08\u5185\u5bb9\u4f1a\u88ab\u5b58\u50a8\uff09\n\t<\/li>\n<li>\n\t\t46.Lucene\u5728\u7559\u8a00\u9879\u76ee\u4e2d\u7684\u4f7f\u7528\uff08\u4e0d\u5b58\u50a8\u5185\u5bb9\u7684\u64cd\u4f5c\u65b9\u5f0f\uff09\n\t<\/li>\n<li>\n\t\t46.Lucene\u5728\u7559\u8a00\u9879\u76ee\u4e2d\u7684\u4f7f\u7528\uff08\u4e0d\u5b58\u50a8\u5185\u5bb9\u7684\u64cd\u4f5c\u65b9\u5f0f\uff09\n\t<\/li>\n<li>\n\t\t47.Lucene\u7684Solr\u7684\u5b89\u88c5\n\t<\/li>\n<li>\n\t\t48.Lucene\u7684Solr\u7684\u57fa\u672c\u4f7f\u7528\n\t<\/li>\n<li>\n\t\t49.Lucene\u7684Solr\u7684\u589e\u5220\u6539\u67e5\u548c\u9ad8\u4eae\n\t<\/li>\n<li>\n\t\t50.\u4e3a\u7559\u8a00\u7ba1\u7406\u9879\u76ee\u5f15\u5165Solr\n\t<\/li>\n<\/ul>\n<p>\n\t\u8fd8\u662f\u8001\u89c4\u77e9\uff0c\u626b\u63cf\u4e0b\u9762\u4e8c\u7ef4\u7801\uff0c\u5173\u6ce8&ldquo;\u4e1a\u4f59\u8349&rdquo;\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u56de\u590d\u5173\u952e\u5b57&ldquo;lucene&rdquo;\u8fdb\u884c\u514d\u8d39\u4e0b\u8f7d\uff01<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2904\">Lucene \u89c6\u9891\u6559\u7a0b\u514d\u8d39\u4e0b\u8f7d<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>Lucene\u662fapache\u8f6f\u4ef6\u57fa\u91d1\u4f1a4 jakarta\u9879\u76ee\u7ec4\u7684\u4e00\u4e2a\u5b50\u9879\u76ee\uff0c\u662f\u4e00\u4e2a\u5f00\u653e\u6e90\u4ee3\u7801\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ce\u5de5\u5177\u5305 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1444,1446,1447,1448,1456],"class_list":["post-2904","post","type-post","status-publish","format-standard","hentry","category-java","tag-lucene","tag-lucene-","tag-solrlucene","tag-1456"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2904"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2904\/revisions"}],"predecessor-version":[{"id":2905,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2904\/revisions\/2905"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}