Nutch index源代码解析(1)

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

? }

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