{"id":1830,"date":"2017-08-22T16:04:27","date_gmt":"2017-08-22T08:04:27","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1830"},"modified":"2017-08-22T16:04:27","modified_gmt":"2017-08-22T08:04:27","slug":"%e8%af%a6%e8%a7%a3-lucene-%e5%af%b9-term%e7%9a%84%e6%9d%83%e9%87%8dterm-weight-%e8%ae%a1%e7%ae%97","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1830","title":{"rendered":"\u8be6\u89e3 Lucene \u5bf9 Term\u7684\u6743\u91cd(Term weight) \u8ba1\u7b97"},"content":{"rendered":"<p>\n\t\u4e0d\u7ba1\u4f60\u662f\u7528\u767e\u5ea6\u8fd8\u662f\u8c37\u6b4c\uff0c\u90fd\u6709\u4e00\u5957\u6743\u91cd\u7b97\u6cd5\u3002\u4ee5\u767e\u5ea6\u4e3a\u4f8b\uff0c\u6743\u91cd\u8d8a\u9ad8\uff0c\u641c\u7d22\u51fa\u6765\u7684\u7ed3\u679c\u6392\u540d\u5c31\u8d8a\u9760\u524d\u3002\u540c\u7406 Lucene \u7684\u5bf9\u641c\u7d22\u7ed3\u679c\u662f\u5982\u4f55\u6392\u5e8f\u7684\u5462\uff1f\u7b54\u6848\u662f\u5bf9\u641c\u7d22\u8bcd\u7684\u6743\u91cd\uff08Term weight\uff09\u8ba1\u7b97\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u4e00\u4e0b Lucene \u7684\u6743\u91cd\uff08PR\uff09\u8ba1\u7b97\u65b9\u5f0f\u3002\n<\/p>\n<p>\n\t\u627e\u51fa\u8bcd(Term) \u5bf9\u6587\u6863\u7684\u91cd\u8981\u6027\u7684\u8fc7\u7a0b\u79f0\u4e3a\u8ba1\u7b97\u8bcd\u7684\u6743\u91cd(Term weight) \u7684\u8fc7\u7a0b\u3002\n<\/p>\n<p>\n\t\u8ba1\u7b97\u8bcd\u7684\u6743\u91cd(term weight)\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u8bcd(Term)\uff0c\u7b2c\u4e8c\u4e2a\u662f\u6587\u6863(Document)\u3002\n<\/p>\n<p>\n\t\u8bcd\u7684\u6743\u91cd(Term weight)\u8868\u793a\u6b64\u8bcd(Term)\u5728\u6b64\u6587\u6863\u4e2d\u7684\u91cd\u8981\u7a0b\u5ea6\uff0c\u8d8a\u91cd\u8981\u7684\u8bcd(Term)\u6709\u8d8a\u5927\u7684\u6743\u91cd(Term weight)\uff0c\u56e0\u800c\u5728\u8ba1\u7b97\u6587\u6863\u4e4b\u95f4\u7684\u76f8\u5173\u6027\u4e2d\u5c06\u53d1\u6325\u66f4\u5927\u7684\u4f5c\u7528\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Lucene \u5168\u6587\u68c0\u7d22\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/lucene001.jpg\" style=\"width: 708px;height: 575px\" \/>\n<\/p>\n<p>\n\t\u5224\u65ad\u8bcd(Term) \u4e4b\u95f4\u7684\u5173\u7cfb\u4ece\u800c\u5f97\u5230\u6587\u6863\u76f8\u5173\u6027\u7684\u8fc7\u7a0b\u5e94\u7528\u4e00\u79cd\u53eb\u505a\u5411\u91cf\u7a7a\u95f4\u6a21\u578b\u7684\u7b97\u6cd5(Vector Space Model) \u3002\n<\/p>\n<p>\n\t\u4e0b\u9762\u4ed4\u7ec6\u5206\u6790\u4e00\u4e0b\u8fd9\u4e24\u4e2a\u8fc7\u7a0b\uff1a\n<\/p>\n<h2>\n\t\u8ba1\u7b97\u6743\u91cd(Term weight)\u7684\u8fc7\u7a0b<br \/>\n<\/h2>\n<p>\n\t\u5f71\u54cd\u4e00\u4e2a\u8bcd(Term)\u5728\u4e00\u7bc7\u6587\u6863\u4e2d\u7684\u91cd\u8981\u6027\u4e3b\u8981\u6709\u4e24\u4e2a\u56e0\u7d20\uff1a\n<\/p>\n<ul>\n<li>\n\t\tTerm Frequency (tf)\uff1a\u5373\u6b64Term\u5728\u6b64\u6587\u6863\u4e2d\u51fa\u73b0\u4e86\u591a\u5c11\u6b21\u3002tf \u8d8a\u5927\u8bf4\u660e\u8d8a\u91cd\u8981\u3002\n\t<\/li>\n<li>\n\t\tDocument Frequency (df)\uff1a\u5373\u6709\u591a\u5c11\u6587\u6863\u5305\u542b\u6b21Term\u3002df \u8d8a\u5927\u8bf4\u660e\u8d8a\u4e0d\u91cd\u8981\u3002\n\t<\/li>\n<\/ul>\n<p>\n\t\u5bb9\u6613\u7406\u89e3\u5417\uff1f\u8bcd(Term)\u5728\u6587\u6863\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u8d8a\u591a\uff0c\u8bf4\u660e\u6b64\u8bcd(Term)\u5bf9\u8be5\u6587\u6863\u8d8a\u91cd\u8981\uff0c\u5982&ldquo;\u641c\u7d22&rdquo;\u8fd9\u4e2a\u8bcd\uff0c\u5728\u672c\u6587\u6863\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u5f88\u591a\uff0c\u8bf4\u660e\u672c\u6587\u6863\u4e3b\u8981\u5c31\u662f\u8bb2\u8fd9\u65b9\u9762\u7684\u4e8b\u7684\u3002\u7136\u800c\u5728\u4e00\u7bc7\u82f1\u8bed\u6587\u6863\u4e2d\uff0cthis\u51fa\u73b0\u7684\u6b21\u6570\u66f4\u591a\uff0c\u5c31\u8bf4\u660e\u8d8a\u91cd\u8981\u5417\uff1f\u4e0d\u662f\u7684\uff0c\u8fd9\u662f\u7531\u7b2c\u4e8c\u4e2a\u56e0\u7d20\u8fdb\u884c\u8c03\u6574\uff0c\u7b2c\u4e8c\u4e2a\u56e0\u7d20\u8bf4\u660e\uff0c\u6709\u8d8a\u591a\u7684\u6587\u6863\u5305\u542b\u6b64\u8bcd(Term), \u8bf4\u660e\u6b64\u8bcd(Term)\u592a\u666e\u901a\uff0c\u4e0d\u8db3\u4ee5\u533a\u5206\u8fd9\u4e9b\u6587\u6863\uff0c\u56e0\u800c\u91cd\u8981\u6027\u8d8a\u4f4e\u3002\n<\/p>\n<p>\n\t\u8fd9\u4e5f\u5982\u6211\u4eec\u7a0b\u5e8f\u5458\u6240\u5b66\u7684\u6280\u672f\uff0c\u5bf9\u4e8e\u7a0b\u5e8f\u5458\u672c\u8eab\u6765\u8bf4\uff0c\u8fd9\u9879\u6280\u672f\u638c\u63e1\u8d8a\u6df1\u8d8a\u597d\uff08\u638c\u63e1\u8d8a\u6df1\u8bf4\u660e\u82b1\u65f6\u95f4\u770b\u7684\u8d8a\u591a\uff0ctf\u8d8a\u5927\uff09\uff0c\u627e\u5de5\u4f5c\u65f6\u8d8a\u6709\u7ade\u4e89\u529b\u3002\u7136\u800c\u5bf9\u4e8e\u6240\u6709\u7a0b\u5e8f\u5458\u6765\u8bf4\uff0c\u8fd9\u9879\u6280\u672f\u61c2\u5f97\u7684\u4eba\u8d8a\u5c11\u8d8a\u597d\uff08\u61c2\u5f97\u7684\u4eba\u5c11df\u5c0f\uff09\uff0c\u627e\u5de5\u4f5c\u8d8a\u6709\u7ade\u4e89\u529b\u3002\u4eba\u7684\u4ef7\u503c\u5728\u4e8e\u4e0d\u53ef\u66ff\u4ee3\u6027\u5c31\u662f\u8fd9\u4e2a\u9053\u7406\u3002\n<\/p>\n<p>\n\t\u9053\u7406\u660e\u767d\u4e86\uff0c\u6211\u4eec\u6765\u770b\u770b\u516c\u5f0f\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Lucene \u6743\u91cd\u8ba1\u7b97\u516c\u5f0f\" src=\"http:\/\/hi.csdn.net\/attachment\/201002\/1\/3634917_1265048530VIlx.png\" style=\"width: 389px;height: 120px\" \/>\n<\/p>\n<p>\n\t\u8fd9\u4ec5\u4ec5\u53eaterm weight\u8ba1\u7b97\u516c\u5f0f\u7684\u7b80\u5355\u5178\u578b\u5b9e\u73b0\u3002\u5b9e\u73b0\u5168\u6587\u68c0\u7d22\u7cfb\u7edf\u7684\u4eba\u4f1a\u6709\u81ea\u5df1\u7684\u5b9e\u73b0\uff0cLucene\u5c31\u4e0e\u6b64\u7a0d\u6709\u4e0d\u540c\u3002\n<\/p>\n<h2>\n\t\u5411\u91cf\u7a7a\u95f4\u6a21\u578b\u7684\u7b97\u6cd5(VSM)<br \/>\n<\/h2>\n<p>\n\t\u5224\u65adTerm\u4e4b\u95f4\u7684\u5173\u7cfb\u4ece\u800c\u5f97\u5230\u6587\u6863\u76f8\u5173\u6027\u7684\u8fc7\u7a0b\uff0c\u4e5f\u5373\u5411\u91cf\u7a7a\u95f4\u6a21\u578b\u7684\u7b97\u6cd5(VSM)\u3002\n<\/p>\n<p>\n\t\u6211\u4eec\u628a\u6587\u6863\u770b\u4f5c\u4e00\u7cfb\u5217\u8bcd(Term)\uff0c\u6bcf\u4e00\u4e2a\u8bcd(Term)\u90fd\u6709\u4e00\u4e2a\u6743\u91cd(Term weight)\uff0c\u4e0d\u540c\u7684\u8bcd(Term)\u6839\u636e\u81ea\u5df1\u5728\u6587\u6863\u4e2d\u7684\u6743\u91cd\u6765\u5f71\u54cd\u6587\u6863\u76f8\u5173\u6027\u7684\u6253\u5206\u8ba1\u7b97\u3002\n<\/p>\n<p>\n\t\u4e8e\u662f\u6211\u4eec\u628a\u6240\u6709\u6b64\u6587\u6863\u4e2d\u8bcd(term)\u7684\u6743\u91cd(term weight) \u770b\u4f5c\u4e00\u4e2a\u5411\u91cf\u3002\n<\/p>\n<pre class=\"brush:java;\">\r\nDocument = {term1, term2, &hellip;&hellip; ,term N}\r\nDocument Vector = {weight1, weight2, &hellip;&hellip; ,weight N}<\/pre>\n<p>\n\t\u540c\u6837\u6211\u4eec\u628a\u67e5\u8be2\u8bed\u53e5\u770b\u4f5c\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u6863\uff0c\u4e5f\u7528\u5411\u91cf\u6765\u8868\u793a\u3002\n<\/p>\n<pre class=\"brush:java;\">\r\nQuery = {term1, term 2, &hellip;&hellip; , term N}\r\nQuery Vector = {weight1, weight2, &hellip;&hellip; , weight N}<\/pre>\n<p>\n\t\u6211\u4eec\u628a\u6240\u6709\u641c\u7d22\u51fa\u7684\u6587\u6863\u5411\u91cf\u53ca\u67e5\u8be2\u5411\u91cf\u653e\u5230\u4e00\u4e2aN\u7ef4\u7a7a\u95f4\u4e2d\uff0c\u6bcf\u4e2a\u8bcd(term)\u662f\u4e00\u7ef4\u3002\n<\/p>\n<p>\n\t\u5982\u56fe\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u641c\u7d22\u51fa\u7684\u6587\u6863\u5411\u91cf\u53ca\u67e5\u8be2\u5411\u91cf\u653e\u5230\u4e00\u4e2aN\u7ef4\u7a7a\u95f4\u4e2d\" src=\"http:\/\/hi.csdn.net\/attachment\/201002\/1\/3634917_1265048531UDDg.jpg\" style=\"width: 544px;height: 409px\" \/>\n<\/p>\n<p>\n\t\u6211\u4eec\u8ba4\u4e3a\u4e24\u4e2a\u5411\u91cf\u4e4b\u95f4\u7684\u5939\u89d2\u8d8a\u5c0f\uff0c\u76f8\u5173\u6027\u8d8a\u5927\u3002\n<\/p>\n<p>\n\t\u6240\u4ee5\u6211\u4eec\u8ba1\u7b97\u5939\u89d2\u7684\u4f59\u5f26\u503c\u4f5c\u4e3a\u76f8\u5173\u6027\u7684\u6253\u5206\uff0c\u5939\u89d2\u8d8a\u5c0f\uff0c\u4f59\u5f26\u503c\u8d8a\u5927\uff0c\u6253\u5206\u8d8a\u9ad8\uff0c\u76f8\u5173\u6027\u8d8a\u5927\u3002\n<\/p>\n<p>\n\t\u6709\u4eba\u53ef\u80fd\u4f1a\u95ee\uff0c\u67e5\u8be2\u8bed\u53e5\u4e00\u822c\u662f\u5f88\u77ed\u7684\uff0c\u5305\u542b\u7684\u8bcd(Term)\u662f\u5f88\u5c11\u7684\uff0c\u56e0\u800c\u67e5\u8be2\u5411\u91cf\u7684\u7ef4\u6570\u5f88\u5c0f\uff0c\u800c\u6587\u6863\u5f88\u957f\uff0c\u5305\u542b\u8bcd(Term)\u5f88\u591a\uff0c\u6587\u6863\u5411\u91cf\u7ef4\u6570\u5f88\u5927\u3002\u4f60\u7684\u56fe\u4e2d\u4e24\u8005\u7ef4\u6570\u600e\u4e48\u90fd\u662fN\u5462\uff1f\n<\/p>\n<p>\n\t\u5728\u8fd9\u91cc\uff0c\u65e2\u7136\u8981\u653e\u5230\u76f8\u540c\u7684\u5411\u91cf\u7a7a\u95f4\uff0c\u81ea\u7136\u7ef4\u6570\u662f\u76f8\u540c\u7684\uff0c\u4e0d\u540c\u65f6\uff0c\u53d6\u4e8c\u8005\u7684\u5e76\u96c6\uff0c\u5982\u679c\u4e0d\u542b\u67d0\u4e2a\u8bcd(Term)\u65f6\uff0c\u5219\u6743\u91cd(Term Weight)\u4e3a0\u3002\n<\/p>\n<p>\n\t\u76f8\u5173\u6027\u6253\u5206\u516c\u5f0f\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Lucene \u76f8\u5173\u6027\u6253\u5206\u516c\u5f0f\" src=\"http:\/\/hi.csdn.net\/attachment\/201002\/1\/3634917_12650485323IuU.png\" style=\"width: 544px;height: 123px\" \/>\n<\/p>\n<p>\n\t\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u67e5\u8be2\u8bed\u53e5\u670911\u4e2aTerm\uff0c\u5171\u6709\u4e09\u7bc7\u6587\u6863\u641c\u7d22\u51fa\u6765\u3002\u5176\u4e2d\u5404\u81ea\u7684\u6743\u91cd(Term weight)\uff0c\u5982\u4e0b\u8868\u683c\u3002\n<\/p>\n<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td align=\"center\" width=\"43\">\n<p align=\"center\">\n\t\t\t\t\t&nbsp;\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt1\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt2\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt3\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt4\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt5\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt6\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt7\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt8\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt9\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt10\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tt11\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tD1\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.477\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.477\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.176\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.176\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tD2\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.176\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.477\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.954\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.176\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tD3\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.176\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.176\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.176\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.176\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\tQ\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.176\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.477\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t0\n\t\t\t\t<\/p>\n<\/td>\n<td align=\"center\" width=\"43\">\n<p>\n\t\t\t\t\t.176\n\t\t\t\t<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\t\u4e8e\u662f\u8ba1\u7b97\uff0c\u4e09\u7bc7\u6587\u6863\u540c\u67e5\u8be2\u8bed\u53e5\u7684\u76f8\u5173\u6027\u6253\u5206\u5206\u522b\u4e3a\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Lucene \u6743\u91cd\u6253\u5206\u516c\u5f0f\" src=\"http:\/\/hi.csdn.net\/attachment\/201002\/1\/3634917_1265048533XR45.png\" style=\"width: 544px;height: 51px\" \/>\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Lucene \u6743\u91cd\u6253\u5206\u516c\u5f0f\" src=\"http:\/\/hi.csdn.net\/attachment\/201002\/1\/3634917_1265048533XR45.png\" style=\"width: 544px;height: 51px\" \/>\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Lucene \u6743\u91cd\u6253\u5206\u516c\u5f0f\" src=\"http:\/\/hi.csdn.net\/attachment\/201002\/1\/3634917_12650485341hHF.png\" style=\"width: 544px;height: 51px\" \/>\n<\/p>\n<p>\n\t\u4e8e\u662f\u6587\u6863\u4e8c\u76f8\u5173\u6027\u6700\u9ad8\uff0c\u5148\u8fd4\u56de\uff0c\u5176\u6b21\u662f\u6587\u6863\u4e00\uff0c\u6700\u540e\u662f\u6587\u6863\u4e09\u3002\n<\/p>\n<p>\n\t\u5230\u6b64\u4e3a\u6b62\uff0c\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u6211\u4eec\u6700\u60f3\u8981\u7684\u6587\u6863\u4e86\u3002\n<\/p>\n<p>\n\t\u8bf4\u4e86\u8fd9\u4e48\u591a\uff0c\u5176\u5b9e\u8fd8\u6ca1\u6709\u8fdb\u5165\u5230Lucene\uff0c\u800c\u4ec5\u4ec5\u662f\u4fe1\u606f\u68c0\u7d22\u6280\u672f(Information retrieval)\u4e2d\u7684\u57fa\u672c\u7406\u8bba\uff0c\u7136\u800c\u5f53\u6211\u4eec\u770b\u8fc7Lucene\u540e\u6211\u4eec\u4f1a\u53d1\u73b0\uff0cLucene\u662f\u5bf9\u8fd9\u79cd\u57fa\u672c\u7406\u8bba\u7684\u4e00\u79cd\u57fa\u672c\u7684\u7684\u5b9e\u8df5\u3002\u6240\u4ee5\u5728\u4ee5\u540e\u5206\u6790Lucene\u7684\u6587\u7ae0\u4e2d\uff0c\u4f1a\u5e38\u5e38\u770b\u5230\u4ee5\u4e0a\u7406\u8bba\u5728Lucene\u4e2d\u7684\u5e94\u7528\u3002\n<\/p>\n<p>\n\t\u5728\u8fdb\u5165Lucene\u4e4b\u524d\uff0c\u5bf9\u4e0a\u8ff0\u7d22\u5f15\u521b\u5efa\u548c\u641c\u7d22\u8fc7\u7a0b\u6240\u4e00\u4e2a\u603b\u7ed3\uff0c\u5982\u56fe\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Lucene \u7d22\u5f15\u521b\u5efa\u548c\u641c\u7d22\u8fc7\u7a0b\" src=\"http:\/\/hi.csdn.net\/attachment\/201002\/1\/3634917_1265048535cS3A.jpg\" style=\"width: 544px;height: 372px\" \/>\n<\/p>\n<h2>\n\t\u7d22\u5f15\u8fc7\u7a0b<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t\u6709\u4e00\u7cfb\u5217\u88ab\u7d22\u5f15\u6587\u4ef6\n\t<\/li>\n<li>\n\t\t\u88ab\u7d22\u5f15\u6587\u4ef6\u7ecf\u8fc7\u8bed\u6cd5\u5206\u6790\u548c\u8bed\u8a00\u5904\u7406\u5f62\u6210\u4e00\u7cfb\u5217\u8bcd(Term) \u3002\n\t<\/li>\n<li>\n\t\t\u7ecf\u8fc7\u7d22\u5f15\u521b\u5efa\u5f62\u6210\u8bcd\u5178\u548c\u53cd\u5411\u7d22\u5f15\u8868\u3002\n\t<\/li>\n<li>\n\t\t\u901a\u8fc7\u7d22\u5f15\u5b58\u50a8\u5c06\u7d22\u5f15\u5199\u5165\u786c\u76d8\u3002\n\t<\/li>\n<\/ul>\n<h2>\n\t\u641c\u7d22\u8fc7\u7a0b<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t\u7528\u6237\u8f93\u5165\u67e5\u8be2\u8bed\u53e5\u3002\n\t<\/li>\n<li>\n\t\t\u5bf9\u67e5\u8be2\u8bed\u53e5\u7ecf\u8fc7\u8bed\u6cd5\u5206\u6790\u548c\u8bed\u8a00\u5206\u6790\u5f97\u5230\u4e00\u7cfb\u5217\u8bcd(Term) \u3002\n\t<\/li>\n<li>\n\t\t\u901a\u8fc7\u8bed\u6cd5\u5206\u6790\u5f97\u5230\u4e00\u4e2a\u67e5\u8be2\u6811\u3002\n\t<\/li>\n<li>\n\t\t\u901a\u8fc7\u7d22\u5f15\u5b58\u50a8\u5c06\u7d22\u5f15\u8bfb\u5165\u5230\u5185\u5b58\u3002\n\t<\/li>\n<li>\n\t\t\u5229\u7528\u67e5\u8be2\u6811\u641c\u7d22\u7d22\u5f15\uff0c\u4ece\u800c\u5f97\u5230\u6bcf\u4e2a\u8bcd(Term) \u7684\u6587\u6863\u94fe\u8868\uff0c\u5bf9\u6587\u6863\u94fe\u8868\u8fdb\u884c\u4ea4\uff0c\u5dee\uff0c\u5e76\u5f97\u5230\u7ed3\u679c\u6587\u6863\u3002\n\t<\/li>\n<li>\n\t\t\u5c06\u641c\u7d22\u5230\u7684\u7ed3\u679c\u6587\u6863\u5bf9\u67e5\u8be2\u7684\u76f8\u5173\u6027\u8fdb\u884c\u6392\u5e8f\u3002\n\t<\/li>\n<li>\n\t\t\u8fd4\u56de\u67e5\u8be2\u7ed3\u679c\u7ed9\u7528\u6237\u3002\n\t<\/li>\n<\/ul>\n<h2>\n\t\u53c2\u8003\u8d44\u6599<br \/>\n<\/h2>\n<ul>\n<li>\n\t\t<a href=\"http:\/\/www.lucene.com.cn\/about.htm\" name=\"\u5f00\u653e\u6e90\u4ee3\u7801\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ceLucene\" target=\"_blank\" title=\"\u5f00\u653e\u6e90\u4ee3\u7801\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ceLucene\">\u5f00\u653e\u6e90\u4ee3\u7801\u7684\u5168\u6587\u68c0\u7d22\u5f15\u64ceLucene<\/a>\n\t<\/li>\n<\/ul>\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=1830\">\u8be6\u89e3 Lucene \u5bf9 Term\u7684\u6743\u91cd(Term weight) \u8ba1\u7b97<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u7ba1\u4f60\u662f\u7528\u767e\u5ea6\u8fd8\u662f\u8c37\u6b4c\uff0c\u90fd\u6709\u4e00\u5957\u6743\u91cd\u7b97\u6cd5\u3002\u4ee5\u767e\u5ea6\u4e3a\u4f8b\uff0c\u6743\u91cd\u8d8a\u9ad8\uff0c\u641c\u7d22\u51fa\u6765\u7684\u7ed3\u679c\u6392\u540d\u5c31\u8d8a\u9760\u524d\u3002\u540c\u7406 Lucene [&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,1445,540,1452],"class_list":["post-1830","post","type-post","status-publish","format-standard","hentry","category-java","tag-lucene","tag-lucene-","tag-1445","tag-540","tag-1452"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1830","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=1830"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1830\/revisions"}],"predecessor-version":[{"id":1831,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1830\/revisions\/1831"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}