首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

Nutch index源代码解析(1)

2013-03-17 
Nutch index源代码解析(一)? ? ? }? ? ? return? ? }? ? //将评分作为文档的权重? ? // apply boost to a

Nutch index源代码解析(一)

? ? ? }

? ? ? return;

? ? }

? ? //将评分作为文档的权重

? ? // apply boost to all indexed fields.

? ? doc.setWeight(boost);

? ? // store boost for use by explain and dedup

? ? doc.add("boost", Float.toString(boost));

?

? ? reporter.incrCounter("IndexerStatus", "Documents added", 1);

?

? ? NutchIndexAction action = new NutchIndexAction(doc, NutchIndexAction.ADD);

? ? output.collect(key, action);

? }

目前研究到此,后面的待续。。

热点排行