The syntax of the method is:
IasCrawler.getCrawlConfig(CrawlId crawlId, Boolean fillInDefaults)
Where:
-
crawlId is a
CrawlId object that contains the name of the crawl
for which the configuration is to be returned.
-
fillInDefaults is a Boolean flag that, if set to
true, fills in the default value for any
setting that has not been specified. If a setting is a password,
true
returns the name but not the value. If the flag is set to
false, it does not modify the value for any
setting.
If you retrieve a crawl configuration that contains a
ModuleProperty for a password property, the crawl
configuration retrieves the value as a zero length list.
The method returns a
CrawlConfig object, which contains the following:
- sourceConfig - a
SourceConfig object that contains the seeds,
filters, and specific information about the systems from which content is
fetched or whether file properties from the native file system should be
gathered for file system crawls.
- manipulatorConfig - a
list of
ManipulatorConfig objects. Each
ManipulatorConfig specifies a manipulation that is
performed in a particular crawl.
- textExtractionConfig
- a
TextExtractionConfig object that contains the text
extraction options, such as whether text extraction should be enabled and the
number of retry attempts.
- outputConfig - an
OutputConfig object that contains the output
options, such as whether the records are written to a Record Store instance or
a record output file, the path of the output directory and the output format
(binary or XML).
- crawlthreads - a
property indicating the number of threads per crawl.
- loggingLevel - a
property indicating the logging level.
To get the configuration settings of a crawl: