// Adds one or more documents to an index. The BatchPutDocument operation enables
// you to ingest inline documents or a set of documents stored in an Amazon S3
// bucket. Use this operation to ingest your text and unstructured text into an
// index, add custom attributes to the documents, and to attach an access control
// list to the documents added to the index. The documents are indexed
// asynchronously. You can see the progress of the batch using AWS CloudWatch. Any
// error messages related to processing the batch are sent to your AWS CloudWatch
// log.
Adds one or more documents to an index. The BatchPutDocument operation enables
you to ingest inline documents or a set of documents stored in an Amazon S3
bucket. Use this operation to ingest your text and unstructured text into an
index, add custom attributes to the documents, and to attach an access control
list to the documents added to the index. The documents are indexed
asynchronously. You can see the progress of the batch using AWS CloudWatch. Any
error messages related to processing the batch are sent to your AWS CloudWatch
log.
// Adds one or more documents to an index . The BatchPutDocument operation enables // you to ingest inline documents or a set of documents stored in an Amazon S3 // bucket . Use this operation to ingest your text and unstructured text into an // index add custom attributes to the documents and to attach an access control // list to the documents added to the index . The documents are indexed // asynchronously . You can see the progress of the batch using AWS CloudWatch . Any // error messages related to processing the batch are sent to your AWS CloudWatch // log .
func (c *Client) BatchPutDocument(ctx context.Context, params *BatchPutDocumentInput, optFns ...func(*Options)) (*BatchPutDocumentOutput, error) {
	if params == nil {
		params = &BatchPutDocumentInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "BatchPutDocument", params, optFns, addOperationBatchPutDocumentMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*BatchPutDocumentOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) BatchPutDocument ( ctx context . Context , params * BatchPutDocumentInput , optFns ... func ( * Options ) ) ( * BatchPutDocumentOutput , error ) { if params == nil { params = & BatchPutDocumentInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationBatchPutDocumentMiddlewares ) if err != nil { return nil , err } out := result . ( * BatchPutDocumentOutput ) out . ResultMetadata = metadata return out , nil }
Adds one or more documents to an index.
Adds one or more documents to an index .