Hi,

I'm trying to store a new meta data field in my implementation of 
ScoringFilter, using Nutch 0.9. The meta data is only available after 
parsing, but passScoreAfterParsing doesn't offer write access to the meta 
data (i.e. you can call set methods but the values will not be written).

So I'm trying to use distributeScoreToOutlink(). I thought returning 
an "adjust" value like this should work, but none of the meta fields I add 
every appear in Selector.map() in Generator.java (I patched Generator.java 
to display the meta data for debugging purposes):

adjust = new CrawlDatum();
adjust.setStatus(CrawlDatum.STATUS_LINKED);
MapWritable myMetaData = new MapWritable();
myMetaData.put(new Text("foo"), new FloatWritable(9.9f));
adjust.setMetaData(myMetaData);

What am I doing wrong? Note that setting meta data on the outlink pages in 
distributeScoreToOutlink works fine, but I want to set values for the 
original page.

Regards
 Daniel

-- 
http://www.danielnaber.de

Reply via email to