Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-682 - SOLR indexer does not set boost on the document. Patch by julien nioche

Tacettin Guney29df588d3887
diff --git a/CHANGES.txt b/CHANGES.txt
index 470ed938f..35303e10e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -325,6 +325,9 @@ Unreleased changes (1.0-dev)
121. NUTCH-571 - parse-mp3 plugin doesn't always index album of mp3.
(Joseph Chen, dogacan)
+
+122. NUTCH-682 - SOLR indexer does not set boost on the document.
+ (julien nioche via dogacan)
Release 0.9 - 2007-04-02
diff --git a/src/java/org/apache/nutch/indexer/solr/SolrWriter.java b/src/java/org/apache/nutch/indexer/solr/SolrWriter.java
index 53ffa6e76..c42e0aa54 100644
--- a/src/java/org/apache/nutch/indexer/solr/SolrWriter.java
+++ b/src/java/org/apache/nutch/indexer/solr/SolrWriter.java
@@ -35,6 +35,7 @@ public class SolrWriter implements NutchIndexWriter {
inputDoc.addField(e.getKey(), val);
}
}
+ inputDoc.setDocumentBoost(doc.getScore());
inputDocs.add(inputDoc);
if (inputDocs.size() > commitSize) {
try {