Skip to content

Commit 10820f3

Browse files
algolia-botkai687
andcommitted
feat(specs): add info and link about indexing rate limits (generated)
algolia/api-clients-automation#4136 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]>
1 parent e44634e commit 10820f3

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

Sources/Search/SearchClient.swift

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ open class SearchClient {
290290

291291
// Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency
292292
// and increases data integrity. - Actions are applied in the order they're specified. - Actions are equivalent to
293-
// the individual API requests of the same name.
293+
// the individual API requests of the same name. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
294294
//
295295
//
296296
// - parameter indexName: (path) Name of the index on which to perform the operation.
@@ -536,7 +536,8 @@ open class SearchClient {
536536
return body
537537
}
538538

539-
// Deletes only the records from an index while keeping settings, synonyms, and rules.
539+
// Deletes only the records from an index while keeping settings, synonyms, and rules. This operation is
540+
// resource-intensive and subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
540541
// Required API Key ACLs:
541542
// - deleteIndex
542543
//
@@ -1047,9 +1048,10 @@ open class SearchClient {
10471048
return body
10481049
}
10491050

1050-
// This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the
1051-
// [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch`
1052-
// operation](#tag/Records/operation/batch).
1051+
// This operation doesn't accept empty filters. This operation is resource-intensive. You should only use it if you
1052+
// can't get the object IDs of the records you want to delete. It's more efficient to get a list of object IDs with
1053+
// the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch`
1054+
// operation](#tag/Records/operation/batch). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
10531055
// Required API Key ACLs:
10541056
// - deleteIndex
10551057
//
@@ -2538,7 +2540,8 @@ open class SearchClient {
25382540
}
25392541

25402542
// Adds, updates, or deletes records in multiple indices with a single API request. - Actions are applied in the
2541-
// order they are specified. - Actions are equivalent to the individual API requests of the same name.
2543+
// order they are specified. - Actions are equivalent to the individual API requests of the same name. This
2544+
// operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
25422545
//
25432546
//
25442547
// - parameter batchParams: (body)
@@ -2587,19 +2590,19 @@ open class SearchClient {
25872590
}
25882591

25892592
// Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are
2590-
// overwritten, except for their analytics data. - If the destination index doesn't exist yet, it'll be created.
2591-
// **Copy** - Copying a source index that doesn't exist creates a new index with 0 records and default settings. -
2592-
// The API keys of the source index are merged with the existing keys in the destination index. - You can't copy the
2593-
// `enableReRanking`, `mode`, and `replicas` settings. - You can't copy to a destination index that already has
2594-
// replicas. - Be aware of the [size
2593+
// overwritten, except for their analytics data. - If the destination index doesn't exist yet, it'll be created. -
2594+
// This operation is resource-intensive. **Copy** - Copying a source index that doesn't exist creates a new index
2595+
// with 0 records and default settings. - The API keys of the source index are merged with the existing keys in the
2596+
// destination index. - You can't copy the `enableReRanking`, `mode`, and `replicas` settings. - You can't copy to a
2597+
// destination index that already has replicas. - Be aware of the [size
25952598
// limits](https://www.algolia.com/doc/guides/scaling/algolia-service-limits/#application-record-and-index-limits).
25962599
// -
25972600
// Related guide: [Copy indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/copy-indices/)
25982601
// **Move** - Moving a source index that doesn't exist is ignored without returning an error. - When moving an
25992602
// index, the analytics data keeps its original name, and a new set of analytics data is started for the new name.
26002603
// To access the original analytics in the dashboard, create an index with the original name. - If the destination
26012604
// index has replicas, moving will overwrite the existing index and copy the data to the replica indices. - Related
2602-
// guide: [Move indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/move-indices/).
2605+
// guide: [Move indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/move-indices/). This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
26032606
// Required API Key ACLs:
26042607
// - addObject
26052608
//
@@ -2674,27 +2677,25 @@ open class SearchClient {
26742677
// Adds new attributes to a record, or updates existing ones. - If a record with the specified object ID doesn't
26752678
// exist, a new record is added to the index **if** `createIfNotExists` is true. - If the index doesn't exist yet,
26762679
// this method creates a new index. - You can use any first-level attribute but not nested attributes. If you
2677-
// specify a nested attribute, the engine treats it as a replacement for its first-level ancestor. To update an
2678-
// attribute without pushing the entire record, you can use these built-in operations. These operations can be
2679-
// helpful if you don't have access to your initial data. - Increment: increment a numeric attribute - Decrement:
2680-
// decrement a numeric attribute - Add: append a number or string element to an array attribute - Remove: remove all
2681-
// matching number or string elements from an array attribute made of numbers or strings - AddUnique: add a number
2682-
// or
2683-
// string element to an array attribute made of numbers or strings only if it's not already present - IncrementFrom:
2684-
// increment a numeric integer attribute only if the provided value matches the current value, and otherwise ignore
2685-
// the whole object update. For example, if you pass an IncrementFrom value of 2 for the version attribute, but the
2686-
// current value of the attribute is 1, the engine ignores the update. If the object doesn't exist, the engine only
2687-
// creates it if you pass an IncrementFrom value of 0. - IncrementSet: increment a numeric integer attribute only if
2688-
// the provided value is greater than the current value, and otherwise ignore the whole object update. For example,
2689-
// if you pass an IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1,
2690-
// the
2680+
// specify a nested attribute, this operation replaces its first-level ancestor. To update an attribute without
2681+
// pushing the entire record, you can use these built-in operations. These operations can be helpful if you don't
2682+
// have access to your initial data. - Increment: increment a numeric attribute - Decrement: decrement a numeric
2683+
// attribute - Add: append a number or string element to an array attribute - Remove: remove all matching number or
2684+
// string elements from an array attribute made of numbers or strings - AddUnique: add a number or string element to
2685+
// an array attribute made of numbers or strings only if it's not already present - IncrementFrom: increment a
2686+
// numeric integer attribute only if the provided value matches the current value, and otherwise ignore the whole
2687+
// object update. For example, if you pass an IncrementFrom value of 2 for the version attribute, but the current
2688+
// value of the attribute is 1, the engine ignores the update. If the object doesn't exist, the engine only creates
2689+
// it if you pass an IncrementFrom value of 0. - IncrementSet: increment a numeric integer attribute only if the
2690+
// provided value is greater than the current value, and otherwise ignore the whole object update. For example, if
2691+
// you pass an IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1, the
26912692
// engine updates the object. If the object doesn't exist yet, the engine only creates it if you pass an
26922693
// IncrementSet
26932694
// value greater than 0. You can specify an operation by providing an object with the attribute to update as the
26942695
// key
26952696
// and its value being an object with the following properties: - _operation: the operation to apply on the
26962697
// attribute - value: the right-hand side argument to the operation, for example, increment or decrement step, value
2697-
// to add or remove.
2698+
// to add or remove. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
26982699
// Required API Key ACLs:
26992700
// - addObject
27002701
//
@@ -2947,7 +2948,8 @@ open class SearchClient {
29472948
// index.
29482949
// - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of
29492950
// a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace
2950-
// multiple records, use the [`batch` operation](#tag/Records/operation/batch).
2951+
// multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to
2952+
// [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
29512953
// Required API Key ACLs:
29522954
// - addObject
29532955
//
@@ -3114,7 +3116,7 @@ open class SearchClient {
31143116
}
31153117

31163118
// Create or update multiple rules. If a rule with the specified object ID doesn't exist, Algolia creates a new
3117-
// one. Otherwise, existing rules are replaced.
3119+
// one. Otherwise, existing rules are replaced. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
31183120
// Required API Key ACLs:
31193121
// - editSettings
31203122
//
@@ -3291,7 +3293,7 @@ open class SearchClient {
32913293
}
32923294

32933295
// If a synonym with the `objectID` doesn't exist, Algolia adds a new one. Otherwise, existing synonyms are
3294-
// replaced.
3296+
// replaced. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
32953297
// Required API Key ACLs:
32963298
// - editSettings
32973299
//

0 commit comments

Comments
 (0)