Class GenericRecrawlableResolver
- All Implemented Interfaces:
Configurable<GenericRecrawlableResolverConfig>,RecrawlableResolver
Relies on both sitemap directives and custom instructions for establishing the minimum frequency between each document recrawl.
Sitemap support:
Provided crawler support for sitemaps has not been disabled, this class tries to honor last modified and frequency directives found in sitemap files.
By default, existing sitemap directives take precedence over custom ones.
You chose to have sitemap directives be considered last or even disable
sitemap directives using the
GenericRecrawlableResolverConfig.setSitemapSupport(SitemapSupport)
method.
Custom recrawl frequencies:
You can chose to have some of your crawled documents be re-crawled less
frequently than others by specifying custom minimum frequencies with
(GenericRecrawlableResolverConfig.setMinFrequencies(Collection)).
Minimum frequencies are processed in the order specified.
- Since:
- 2.5.0
-
Field Summary
Fields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()booleanisRecrawlable(WebCrawlerEntry prevData) Whether a document recrawlable or not.toString()
-
Constructor Details
-
GenericRecrawlableResolver
public GenericRecrawlableResolver()
-
-
Method Details
-
isRecrawlable
Description copied from interface:RecrawlableResolverWhether a document recrawlable or not.- Specified by:
isRecrawlablein interfaceRecrawlableResolver- Parameters:
prevData- data about previously crawled document (if any)- Returns:
trueif recrawlable
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<GenericRecrawlableResolverConfig>
-