Revision: 2861
http://archive-access.svn.sourceforge.net/archive-access/?rev=2861&view=rev
Author: binzino
Date: 2009-10-28 21:49:56 +0000 (Wed, 28 Oct 2009)
Log Message:
-----------
Need to explicitly set the score, otherwise it will remain the default value of 0, which is then put into the Lucene index as the 'boost' value. And a boost value of 0 makes the documents never show up in a search.
Modified Paths:
--------------
trunk/archive-access/projects/nutchwax/archive/src/java/org/archive/nutchwax/IndexerMapReduce.java
Modified: trunk/archive-access/projects/nutchwax/archive/src/java/org/archive/nutchwax/IndexerMapReduce.java
===================================================================
--- trunk/archive-access/projects/nutchwax/archive/src/java/org/archive/nutchwax/IndexerMapReduce.java 2009-10-28 21:24:26 UTC (rev 2860)
+++ trunk/archive-access/projects/nutchwax/archive/src/java/org/archive/nutchwax/IndexerMapReduce.java 2009-10-28 21:49:56 UTC (rev 2861)
@@ -113,6 +113,8 @@
// skip documents discarded by indexing filters
if (doc == null) return;
+ doc.setScore( 1.0f );
+
output.collect(key, doc);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|