Skip to content

Commit 4e67438

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 734ae49 commit 4e67438

File tree

1 file changed

+45
-30
lines changed

1 file changed

+45
-30
lines changed

src/main/scala/algoliasearch/api/SearchClient.scala

Lines changed: 45 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ class SearchClient(
230230

231231
/** Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency
232232
* and increases data integrity. - Actions are applied in the order they're specified. - Actions are equivalent to
233-
* the individual API requests of the same name.
233+
* the individual API requests of the same name. This operation is subject to [indexing rate
234+
* limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
234235
*
235236
* @param indexName
236237
* Name of the index on which to perform the operation.
@@ -340,7 +341,9 @@ class SearchClient(
340341
execute[BrowseResponse](request, requestOptions)
341342
}
342343

343-
/** Deletes only the records from an index while keeping settings, synonyms, and rules.
344+
/** Deletes only the records from an index while keeping settings, synonyms, and rules. This operation is
345+
* resource-intensive and subject to [indexing rate
346+
* limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
344347
*
345348
* Required API Key ACLs:
346349
* - deleteIndex
@@ -534,9 +537,11 @@ class SearchClient(
534537
execute[DeleteApiKeyResponse](request, requestOptions)
535538
}
536539

537-
/** This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the
538-
* [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch`
539-
* operation](#tag/Records/operation/batch).
540+
/** This operation doesn't accept empty filters. This operation is resource-intensive. You should only use it if you
541+
* 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
542+
* the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch`
543+
* operation](#tag/Records/operation/batch). This operation is subject to [indexing rate
544+
* limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
540545
*
541546
* Required API Key ACLs:
542547
* - deleteIndex
@@ -1128,7 +1133,9 @@ class SearchClient(
11281133
}
11291134

11301135
/** Adds, updates, or deletes records in multiple indices with a single API request. - Actions are applied in the
1131-
* order they are specified. - Actions are equivalent to the individual API requests of the same name.
1136+
* order they are specified. - Actions are equivalent to the individual API requests of the same name. This operation
1137+
* is subject to [indexing rate
1138+
* limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
11321139
*/
11331140
def multipleBatch(batchParams: BatchParams, requestOptions: Option[RequestOptions] = None)(implicit
11341141
ec: ExecutionContext
@@ -1145,11 +1152,11 @@ class SearchClient(
11451152
}
11461153

11471154
/** Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are
1148-
* overwritten, except for their analytics data. - If the destination index doesn't exist yet, it'll be created.
1149-
* **Copy** - Copying a source index that doesn't exist creates a new index with 0 records and default settings. -
1150-
* The API keys of the source index are merged with the existing keys in the destination index. - You can't copy the
1151-
* `enableReRanking`, `mode`, and `replicas` settings. - You can't copy to a destination index that already has
1152-
* replicas. - Be aware of the [size
1155+
* overwritten, except for their analytics data. - If the destination index doesn't exist yet, it'll be created. -
1156+
* This operation is resource-intensive. **Copy** - Copying a source index that doesn't exist creates a new index
1157+
* with 0 records and default settings. - The API keys of the source index are merged with the existing keys in the
1158+
* destination index. - You can't copy the `enableReRanking`, `mode`, and `replicas` settings. - You can't copy to a
1159+
* destination index that already has replicas. - Be aware of the [size
11531160
* limits](https://www.algolia.com/doc/guides/scaling/algolia-service-limits/#application-record-and-index-limits). -
11541161
* Related guide: [Copy
11551162
* indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/copy-indices/)
@@ -1159,6 +1166,8 @@ class SearchClient(
11591166
* replicas, moving will overwrite the existing index and copy the data to the replica indices. - Related guide:
11601167
* [Move
11611168
* indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/move-indices/).
1169+
* This operation is subject to [indexing rate
1170+
* limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
11621171
*
11631172
* Required API Key ACLs:
11641173
* - addObject
@@ -1186,23 +1195,24 @@ class SearchClient(
11861195
/** Adds new attributes to a record, or updates existing ones. - If a record with the specified object ID doesn't
11871196
* exist, a new record is added to the index **if** `createIfNotExists` is true. - If the index doesn't exist yet,
11881197
* this method creates a new index. - You can use any first-level attribute but not nested attributes. If you specify
1189-
* a nested attribute, the engine treats it as a replacement for its first-level ancestor. To update an attribute
1190-
* without pushing the entire record, you can use these built-in operations. These operations can be helpful if you
1191-
* don't have access to your initial data. - Increment: increment a numeric attribute - Decrement: decrement a
1192-
* numeric attribute - Add: append a number or string element to an array attribute - Remove: remove all matching
1193-
* number or string elements from an array attribute made of numbers or strings - AddUnique: add a number or string
1194-
* element to an array attribute made of numbers or strings only if it's not already present - IncrementFrom:
1195-
* increment a numeric integer attribute only if the provided value matches the current value, and otherwise ignore
1196-
* the whole object update. For example, if you pass an IncrementFrom value of 2 for the version attribute, but the
1197-
* current value of the attribute is 1, the engine ignores the update. If the object doesn't exist, the engine only
1198-
* creates it if you pass an IncrementFrom value of 0. - IncrementSet: increment a numeric integer attribute only if
1199-
* the provided value is greater than the current value, and otherwise ignore the whole object update. For example,
1200-
* if you pass an IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1, the
1201-
* engine updates the object. If the object doesn't exist yet, the engine only creates it if you pass an IncrementSet
1202-
* value greater than 0. You can specify an operation by providing an object with the attribute to update as the key
1203-
* and its value being an object with the following properties: - _operation: the operation to apply on the attribute
1204-
* \- value: the right-hand side argument to the operation, for example, increment or decrement step, value to add or
1205-
* remove.
1198+
* a nested attribute, this operation replaces its first-level ancestor. To update an attribute without pushing the
1199+
* entire record, you can use these built-in operations. These operations can be helpful if you don't have access to
1200+
* your initial data. - Increment: increment a numeric attribute - Decrement: decrement a numeric attribute - Add:
1201+
* append a number or string element to an array attribute - Remove: remove all matching number or string elements
1202+
* from an array attribute made of numbers or strings - AddUnique: add a number or string element to an array
1203+
* attribute made of numbers or strings only if it's not already present - IncrementFrom: increment a numeric integer
1204+
* attribute only if the provided value matches the current value, and otherwise ignore the whole object update. For
1205+
* example, if you pass an IncrementFrom value of 2 for the version attribute, but the current value of the attribute
1206+
* is 1, the engine ignores the update. If the object doesn't exist, the engine only creates it if you pass an
1207+
* IncrementFrom value of 0. - IncrementSet: increment a numeric integer attribute only if the provided value is
1208+
* greater than the current value, and otherwise ignore the whole object update. For example, if you pass an
1209+
* IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1, the engine updates
1210+
* the object. If the object doesn't exist yet, the engine only creates it if you pass an IncrementSet value greater
1211+
* than 0. You can specify an operation by providing an object with the attribute to update as the key and its value
1212+
* being an object with the following properties: - _operation: the operation to apply on the attribute - value: the
1213+
* right-hand side argument to the operation, for example, increment or decrement step, value to add or remove. This
1214+
* operation is subject to [indexing rate
1215+
* limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
12061216
*
12071217
* Required API Key ACLs:
12081218
* - addObject
@@ -1307,7 +1317,9 @@ class SearchClient(
13071317
* record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index.
13081318
* \- If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of
13091319
* a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace
1310-
* multiple records, use the [`batch` operation](#tag/Records/operation/batch).
1320+
* multiple records, use the [`batch` operation](#tag/Records/operation/batch). This operation is subject to
1321+
* [indexing rate
1322+
* limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
13111323
*
13121324
* Required API Key ACLs:
13131325
* - addObject
@@ -1367,7 +1379,8 @@ class SearchClient(
13671379
}
13681380

13691381
/** Create or update multiple rules. If a rule with the specified object ID doesn't exist, Algolia creates a new one.
1370-
* Otherwise, existing rules are replaced.
1382+
* Otherwise, existing rules are replaced. This operation is subject to [indexing rate
1383+
* limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
13711384
*
13721385
* Required API Key ACLs:
13731386
* - editSettings
@@ -1436,6 +1449,8 @@ class SearchClient(
14361449
}
14371450

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

0 commit comments

Comments
 (0)