Skip to content

Commit

Permalink
NUTCH-682 - SOLR indexer does not set boost on the document. Patch by…
Browse files Browse the repository at this point in the history
… julien nioche

git-svn-id: https://svn.apache.org/repos/asf/lucene/nutch/trunk@738970 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Tacettin Guney committed Jan 29, 2009
1 parent 57102c5 commit 29df588
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/java/org/apache/nutch/indexer/solr/SolrWriter.java
Expand Up @@ -35,6 +35,7 @@ public void write(NutchDocument doc) throws IOException {
inputDoc.addField(e.getKey(), val);
}
}
inputDoc.setDocumentBoost(doc.getScore());
inputDocs.add(inputDoc);
if (inputDocs.size() > commitSize) {
try {
Expand Down

0 comments on commit 29df588

Please sign in to comment.