You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NewClient creates a new API client with {{#hasRegionalHost}}appID, apiKey and region.{{/hasRegionalHost}}{{^hasRegionalHost}}appID and apiKey.{{/hasRegionalHost}}
// WithTransformation sets the region of the current algolia application to the configuration, this is required to be called if you wish to leverage the transformation pipeline (via the *WithTransformation methods).
37
+
func (s *SearchConfiguration) WithTransformation(region ingestion.Region) {
Helper: Similar to the `SaveObjects` method but requires a Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) to be created first, in order to transform records before indexing them to Algolia. The `region` must've been passed to the client's config at instantiation.
742
+
743
+
@param indexName string - the index name to save objects into.
744
+
@param objects []map[string]any - List of objects to save.
745
+
@param opts ...ChunkedBatchOption - Optional parameters for the request.
746
+
@return []BatchResponse - List of batch responses.
Helper: Similar to the `PartialUpdateObjects` method but requires a Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) to be created first, in order to transform records before indexing them to Algolia. The `region` must've been passed to the client instantiation method.
778
+
779
+
@param indexName string - the index name to save objects into.
780
+
@param objects []map[string]any - List of objects to save.
781
+
@param opts ...ChunkedBatchOption - Optional parameters for the request.
782
+
@return []BatchResponse - List of batch responses.
0 commit comments