读书人

Nutch index源代码解析(1)

发布时间: 2013-03-17 13:48:31 作者: rapoo

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);

? }

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

读书人网 >软件开发

热点推荐