Skip to content

Commit fbefb88

Browse files
authored
Improve documentation (missing configs, etc.) (#1843)
* fix(docs): correct configuration defaults and class references in adoc files Fix inaccurate default values, wrong config key names, and a nonexistent class reference in the documentation: - protocols: add missing "file" to default - redirections.allowed → http.allow.redirects (default false, not true) - fetchInterval.error: -1, not 44640 - cacheConfigParamName → robots.cache.spec - errorcacheConfigParamName → robots.error.cache.spec - http.accept and http.accept.language: add actual defaults - protocol.md.prefix: default is "protocol.", not empty - FrontierSpout → Spout (class doesn't exist) * fix(docs): correct errors, broken links, and outdated references across documentation - Fix wrong package names: org.apache.storm.crawler → org.apache.stormcrawler - Fix outdated import: backtype.storm.Config → org.apache.storm.Config - Fix non-existent class reference: StatusStreamBolt → DummyIndexer - Fix method signature to match actual code (MetadataTransfer.getMetaForOutlink) - Fix broken internal links (StatusStream, Configuration, HTTPProtocol anchors) - Fix Selenium protocol links pointing to core/ instead of external/selenium/ - Fix incorrect GitHub line number references for crawler-default.yaml - Fix incomplete references ("See blog post", "See example", "See default") - Fix Storm UI URL protocol: https → http - Fix TikaParser → ParserBolt (actual class name) - Remove undocumented/unimplemented http.store.responsetime config entry - Replace unexplained %HEAP-MEM% placeholder with concrete 2g value - Fix typos: anonynmous, asomething, extra commas, grammar - Fix AsciiDoc link syntax in powered-by.adoc * docs: add 27 missing config keys and 9 undocumented core classes Configuration tables in configuration.adoc now cover all keys from crawler-default.yaml, including robots, protocol, OkHttp, parsing, sitemap, scheduling, and indexing options. Internals documentation now covers: - FeedParserBolt, URLPartitionerBolt, StatusEmitterBolt - FileSpout, MemorySpout, AbstractQueryingSpout - AdaptiveScheduler (with config example) - DelegatorProtocol (with config example) - SelfURLFilter Also fixes missing default values for indexer.text.fieldname and indexer.url.fieldname. * docs: add external module configuration reference for all 11 modules Add configuration tables for OpenSearch, Solr, SQL, URLFrontier, Tika, AWS, AI/LLM, Playwright, Language ID, WARC, and common spout options. Each module section includes all key config options with defaults and descriptions, plus links to the module source for full setup details. The Language ID module (which had no README) now has its parse filter configuration documented for the first time. * docs: add extending and operating guide with 12 how-to topics New extending.adoc covers: - Writing custom URL filters, parse filters, protocols, bolts/spouts with complete code examples and registration instructions - Politeness and rate limiting: queue modes, crawl-delay handling, robots.txt compliance - Error handling and retry logic: status lifecycle, retry mechanism, custom fetch intervals - Monitoring and metrics: fetcher metrics, MetricsConsumer setup - Scaling and tuning: thread config, queue sizing, connection pooling - Security: SSL/TLS, basic auth, proxy auth * Address review comments
1 parent d6c07fd commit fbefb88

8 files changed

Lines changed: 726 additions & 56 deletions

File tree

‎core/src/main/resources/crawler-default.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ config:
8282
metadata.track.path: true
8383
metadata.track.depth: true
8484

85-
# Agent name info - given here as an example. Do not be an anonynmous coward, use your real information!
85+
# Agent name info - given here as an example. Do not be an anonymous coward, use your real information!
8686
# The full user agent value sent as part of the HTTP requests
8787
# is built from the elements below. Only the agent.name is mandatory,
8888
# it is also used to parse the robots.txt directives.

‎docs/src/main/asciidoc/architecture.adoc‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Black arrows show the *main data flow*, gray arrows represent URLs *taken from t
2929

3030
The crawl begins with the *Frontier*, which is responsible for scheduling,
3131
prioritization, politeness, and retry logic. URLs are emitted by a
32-
`FrontierSpout` and partitioned by the `URLPartitioner`, typically using the
32+
`Spout` (e.g., `AggregationSpout`, `SQLSpout`) and partitioned by the `URLPartitioner`, typically using the
3333
host as a key to enforce politeness constraints.
3434

3535
The `Fetcher` retrieves web resources and emits both the fetched content and
3636
associated metadata such as HTTP status codes, headers, and MIME types. Based
3737
on the content type, documents are routed to specialized parsers, including
38-
`SiteMapParser`, `JSoupParser` for HTML content, and `TikaParser` for binary
38+
`SiteMapParser`, `JSoupParser` for HTML content, and `ParserBolt` (Tika module) for binary
3939
formats via Apache Tika.
4040

4141
Parsed content is then sent to the `Indexer` and persisted by the `Storage`
@@ -74,7 +74,7 @@ They allow fine-grained control over how extracted data and outgoing links are
7474
processed.
7575

7676
Parse Filters are applied within the parsing bolts, following parsing by
77-
`SiteMapParser`, `JSoupParser`, or `TikaParser`. They can modify extracted text,
77+
`SiteMapParser`, `JSoupParser`, or `ParserBolt` (Tika). They can modify extracted text,
7878
metadata, and links before the content is indexed or new URLs are emitted.
7979

8080
Common Parse Filters include:

‎docs/src/main/asciidoc/configuration.adoc‎

Lines changed: 262 additions & 31 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)