Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-682

SOLR indexer does not set boost on the document

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0
    • Component/s: injector
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jnioche Julien Nioche
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: