You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Doğacan Güney (JIRA)" <ji...@apache.org> on 2009/01/29 20:13:59 UTC
[jira] Closed: (NUTCH-682) SOLR indexer does not set boost on the
document
[ https://issues.apache.org/jira/browse/NUTCH-682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doğacan Güney closed NUTCH-682.
-------------------------------
Resolution: Fixed
This is obviously correct. Can't believe I missed that :)
Committed in rev. 738970.
Thanks!
> SOLR indexer does not set boost on the document
> -----------------------------------------------
>
> Key: NUTCH-682
> URL: https://issues.apache.org/jira/browse/NUTCH-682
> Project: Nutch
> Issue Type: Bug
> Components: injector
> Affects Versions: 1.0.0
> Reporter: julien nioche
> Fix For: 1.0.0
>
>
> the method org.apache.nutch.indexer.solr.SolrWriter.write(NutchDocument doc) should call the method setDocumentBoost as illustrated below :
> for(final Entry<String, List<String>> e : doc) {
> for (final String val : e.getValue()) {
> inputDoc.addField(e.getKey(), val);
> }
> }
> inputDoc.setDocumentBoost(doc.getScore());
> as done by the LuceneWriter.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.