Skip to main content

GenericRecrawlableResolver

Determines whether a previously crawled document should be re-crawled.

Notes

Determines whether a previously crawled document should be re-crawled on the current run, based on minimum recrawl frequency rules per content type or reference pattern, with optional sitemap directive support.

Examples

The following example ensures PDFs are re-crawled no more frequently than once a month, while HTML news can be re-crawled frequently at every half hour. For the rest, it relies on the website sitemap directives (if any).

class: GenericRecrawlableResolver
sitemapSupport: LAST
minFrequencies:
- applyTo: CONTENT_TYPE
value: monthly
matcher:
pattern: application/pdf
- applyTo: REFERENCE
value: "1800000"
matcher:
method: REGEX
pattern: .*latest-news.*\.html

Usage

Full configuration skeleton, with every option and its default
class: GenericRecrawlableResolver
minFrequencies:
- applyTo: CONTENT_TYPE
matcher: {}
value: string
sitemapSupport: FIRST

Properties

PropertyTypeRequiredDefault
minFrequenciesMinFrequency[]No-
sitemapSupportenumNoFIRST

Property Details

minFrequencies

A list of minimum recrawl frequency rules. Each rule specifies a frequency value (e.g., hourly, daily, monthly, or milliseconds) and a matcher applied to either the document reference or content type to determine when a document is eligible to be re-crawled.

sitemapSupport

Controls how sitemap recrawl directives (frequency and last-modified) interact with the configured minimum frequency rules. Supported values are FIRST (sitemap takes precedence, default), LAST (minimum frequency rules take precedence), and NEVER (sitemap directives are ignored).

Allowed Values

  • FIRST
  • LAST
  • NEVER