// Tells the search domain to start indexing its documents using the latest
// indexing options. This operation must be invoked to activate options whose
// OptionStatus is RequiresIndexDocuments.
Tells the search domain to start indexing its documents using the latest
indexing options. This operation must be invoked to activate options whose
OptionStatus is RequiresIndexDocuments.
// Tells the search domain to start indexing its documents using the latest // indexing options . This operation must be invoked to activate options whose // OptionStatus is RequiresIndexDocuments .
func (c *Client) IndexDocuments(ctx context.Context, params *IndexDocumentsInput, optFns ...func(*Options)) (*IndexDocumentsOutput, error) {
	if params == nil {
		params = &IndexDocumentsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "IndexDocuments", params, optFns, addOperationIndexDocumentsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*IndexDocumentsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) IndexDocuments ( ctx context . Context , params * IndexDocumentsInput , optFns ... func ( * Options ) ) ( * IndexDocumentsOutput , error ) { if params == nil { params = & IndexDocumentsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationIndexDocumentsMiddlewares ) if err != nil { return nil , err } out := result . ( * IndexDocumentsOutput ) out . ResultMetadata = metadata return out , nil }
Tells the search domain to start indexing its documents using the latest
indexing options.
Tells the search domain to start indexing its documents using the latest indexing options .