/[Apache-SVN]/lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher.java
ViewVC logotype

Diff of /lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher.java	2006/02/09 23:09:36	376477
+++ lucene/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher.java	2006/02/09 23:12:59	376478
@@ -235,6 +235,9 @@ public class Fetcher extends Configured
         byte[] signature = SignatureFactory.getSignature(getConf()).calculate(content, parse);
         metadata.set(SIGNATURE_KEY, StringUtil.toHexString(signature));
         datum.setSignature(signature);
+        // Ensure segment name and score are in parseData metadata
+        parse.getData().getContentMeta().set(SEGMENT_NAME_KEY, segmentName); 	 
+        parse.getData().getContentMeta().set(SCORE_KEY, Float.toString(datum.getScore()));        
       }
 
       try {

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26