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
Copy file name to clipboardExpand all lines: Sources/Search/SearchClient.swift
+32-30Lines changed: 32 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -290,7 +290,7 @@ open class SearchClient {
290
290
291
291
// Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency
292
292
// 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).
294
294
//
295
295
//
296
296
// - parameter indexName: (path) Name of the index on which to perform the operation.
@@ -536,7 +536,8 @@ open class SearchClient {
536
536
return body
537
537
}
538
538
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).
540
541
// Required API Key ACLs:
541
542
// - deleteIndex
542
543
//
@@ -1047,9 +1048,10 @@ open class SearchClient {
1047
1048
return body
1048
1049
}
1049
1050
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).
1053
1055
// Required API Key ACLs:
1054
1056
// - deleteIndex
1055
1057
//
@@ -2538,7 +2540,8 @@ open class SearchClient {
2538
2540
}
2539
2541
2540
2542
// 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).
2542
2545
//
2543
2546
//
2544
2547
// - parameter batchParams: (body)
@@ -2587,19 +2590,19 @@ open class SearchClient {
2587
2590
}
2588
2591
2589
2592
// 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
// Related guide: [Copy indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/copy-indices/)
2598
2601
// **Move** - Moving a source index that doesn't exist is ignored without returning an error. - When moving an
2599
2602
// index, the analytics data keeps its original name, and a new set of analytics data is started for the new name.
2600
2603
// To access the original analytics in the dashboard, create an index with the original name. - If the destination
2601
2604
// index has replicas, moving will overwrite the existing index and copy the data to the replica indices. - Related
// 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).
2603
2606
// Required API Key ACLs:
2604
2607
// - addObject
2605
2608
//
@@ -2674,27 +2677,25 @@ open class SearchClient {
2674
2677
// Adds new attributes to a record, or updates existing ones. - If a record with the specified object ID doesn't
2675
2678
// exist, a new record is added to the index **if** `createIfNotExists` is true. - If the index doesn't exist yet,
2676
2679
// 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
2691
2692
// engine updates the object. If the object doesn't exist yet, the engine only creates it if you pass an
2692
2693
// IncrementSet
2693
2694
// value greater than 0. You can specify an operation by providing an object with the attribute to update as the
2694
2695
// key
2695
2696
// and its value being an object with the following properties: - _operation: the operation to apply on the
2696
2697
// 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).
2698
2699
// Required API Key ACLs:
2699
2700
// - addObject
2700
2701
//
@@ -2947,7 +2948,8 @@ open class SearchClient {
2947
2948
// index.
2948
2949
// - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of
2949
2950
// 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
// 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).
3118
3120
// Required API Key ACLs:
3119
3121
// - editSettings
3120
3122
//
@@ -3291,7 +3293,7 @@ open class SearchClient {
3291
3293
}
3292
3294
3293
3295
// 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).
0 commit comments