Class GoogleCloudSearchCommitter

All Implemented Interfaces:
BatchConsumer, Committer, Configurable<GoogleCloudSearchCommitterConfig>, AutoCloseable

public class GoogleCloudSearchCommitter extends AbstractBatchCommitter<GoogleCloudSearchCommitterConfig>

Commits documents to Google Cloud Search using the official Google API client. The client root URL is configurable, which makes it possible to run the committer against a local mock server during development and tests.

Raw vs text upload

Text uploads use the committer request content (the parsed/extracted plain text). Raw uploads instead send the original, unparsed document content, which must be captured ahead of time (since parsing normally discards it) into the "binaryContent" metadata field — e.g., using a BinaryContentTransformer pre-parse handler.

ACL mapping

Metadata fields can optionally be mapped to Google Cloud Search ACL principals (readers, denied readers, owners) via GoogleCloudSearchCommitterConfig.setAclMappings(java.util.List), and ACL inheritance from a parent item can be configured via GoogleCloudSearchCommitterConfig.setAclInheritance(GoogleCloudSearchCommitterConfig.AclInheritanceMapping).