Skip to main content

AmazonCloudSearchCommitter

Commit documents to Amazon CloudSearch.

committer/amazoncloudsearchJavadoc: AmazonCloudSearchCommitter

Notesโ€‹

Commits crawled documents to an Amazon CloudSearch index. Supports field mappings, optional ID normalization for Amazon CloudSearch compatibility, and AWS credential configuration via explicit keys or environment variables.

Examplesโ€‹

The following example uses the minimum required settings to configure the Amazon CloudSearch Committer. This example relies on environment variables for AWS keys.

class: AmazonCloudSearchCommitter
serviceEndpoint: search-example-xyz.some-region.cloudsearch.amazonaws.com

Usageโ€‹

Full configuration skeleton, with every option and its default
class: AmazonCloudSearchCommitter
accessKey: string
fieldMappings: {}
fixBadIds: false
proxySettings:
credentials:
password: string
passwordKey: {}
username: string
host:
name: string
port: 0
realm: string
scheme: string
queue:
class: FsQueue
batchSize: 0
commitLeftoversOnInit: false
maxPerFolder: 0
onCommitFailure:
ignoreErrors: false
maxRetries: 0
retryDelay: 0
splitBatch: OFF
restrictions:
- fieldMatcher: {}
valueMatcher: {}
secretKey: string
serviceEndpoint: string
signingRegion: string
sourceIdField: string
targetContentField: string

Propertiesโ€‹

PropertyTypeRequiredDefault
accessKeystringNo-
fieldMappingsRecord<string, string>No-
fixBadIdsbooleanNofalse
proxySettingsProxySettingsNoProxySettings
queueCommitterQueueNoFsQueue
restrictionsPropertyMatcher[]No-
secretKeystringNo-
serviceEndpointstringNo-
signingRegionstringNo-
sourceIdFieldstringNo-
targetContentFieldstringNocontent

Property Detailsโ€‹

accessKeyโ€‹

Amazon CloudSearch access key. Leave blank to take it from the environment.

fieldMappingsโ€‹

Mapping of source fields to target ones (index field name).

fixBadIdsโ€‹

Forces references to fit into an Amazon CloudSearch id field. Truncate references that are too long and append a hash code to it to keep uniqueness. It will also convert invalid characters to underscore. This approach is not 100% collision-free (uniqueness), but it should safely cover the vast majority of cases.

proxySettingsโ€‹

Configures an optional HTTP proxy for outbound connections. Leave unset to connect directly.

queueโ€‹

Configures the committer queue used to batch documents before sending them to the target system. Adjust queue settings to tune throughput and memory usage.

restrictionsโ€‹

Defines filter conditions that restrict which documents this committer processes. Documents not matching the restrictions are ignored by this committer.

secretKeyโ€‹

Amazon CloudSearch secret key. Leave blank to take it from the environment.

serviceEndpointโ€‹

Amazon CloudSearch service endpoint.

signingRegionโ€‹

Amazon CloudSearch signing region.

sourceIdFieldโ€‹

Document field name containing the value that will be stored in the Amazon CloudSearch "id" field. Default is the document reference.

targetContentFieldโ€‹

Amazon CloudSearch field name to store the document content. Default is "content".