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

Generator: hostCount >= maxCount comparison wrong

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.13
    • Fix Version/s: 1.15
    • Component/s: generator
    • Labels:
      None

      Description

      In the Generator.Selector.reduce function, there is a comparison of hostCount[1] to maxCount, to determine whether or not to push the current URL to the next segment. The purpose is to honor generate.max.count.

      Sebastian noticed that it should test if (hostCount[1] > maxCount) rather than ">=".  As it stands, the code sometimes puts one less url into a segment than it should.

        Attachments

          Activity

            People

            • Assignee:
              snagel Sebastian Nagel
              Reporter:
              xoffey@gmail.com Michael Coffey

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment