Skip to content

maxPagesToFetch is misleading #137

@cmacdonald

Description

@cmacdonald

Hello,

We have a use-case where some URLs are prioritised (boosted), but the crawler terminates after XX URLs are fetched. To implement this, we planned to use the CrawlConfig.maxPagesToFetch, whose javadoc states "Maximum number of pages to fetch". However, this documentation and variable name is misleading, as it actually limits the number of URLs to schedule (i.e. be added to the frontier). If you agree, I would propose renaming this option and adding another that limits the number fetched. If all URLs have equal priority, then the two options will be equivalent in semantics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions