Skip to content

Commit

Permalink
feat(specs): add info and link about indexing rate limits (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4136

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
  • Loading branch information
algolia-bot and kai687 committed Nov 20, 2024
1 parent 734ae49 commit 4e67438
Showing 1 changed file with 45 additions and 30 deletions.
75 changes: 45 additions & 30 deletions src/main/scala/algoliasearch/api/SearchClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ class SearchClient(

/** Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency
* and increases data integrity. - Actions are applied in the order they're specified. - Actions are equivalent to
* the individual API requests of the same name.
* 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).
*
* @param indexName
* Name of the index on which to perform the operation.
Expand Down Expand Up @@ -340,7 +341,9 @@ class SearchClient(
execute[BrowseResponse](request, requestOptions)
}

/** Deletes only the records from an index while keeping settings, synonyms, and rules.
/** Deletes only the records from an index while keeping settings, synonyms, and rules. This operation is
* 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).
*
* Required API Key ACLs:
* - deleteIndex
Expand Down Expand Up @@ -534,9 +537,11 @@ class SearchClient(
execute[DeleteApiKeyResponse](request, requestOptions)
}

/** This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the
* [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch`
* operation](#tag/Records/operation/batch).
/** This operation doesn't accept empty filters. This operation is resource-intensive. You should only use it if you
* 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
* the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch`
* 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).
*
* Required API Key ACLs:
* - deleteIndex
Expand Down Expand Up @@ -1128,7 +1133,9 @@ class SearchClient(
}

/** Adds, updates, or deletes records in multiple indices with a single API request. - Actions are applied in the
* order they are specified. - Actions are equivalent to the individual API requests of the same name.
* order they are specified. - Actions are equivalent to 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).
*/
def multipleBatch(batchParams: BatchParams, requestOptions: Option[RequestOptions] = None)(implicit
ec: ExecutionContext
Expand All @@ -1145,11 +1152,11 @@ class SearchClient(
}

/** Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are
* overwritten, except for their analytics data. - If the destination index doesn't exist yet, it'll be created.
* **Copy** - Copying a source index that doesn't exist creates a new index with 0 records and default settings. -
* The API keys of the source index are merged with the existing keys in the destination index. - You can't copy the
* `enableReRanking`, `mode`, and `replicas` settings. - You can't copy to a destination index that already has
* replicas. - Be aware of the [size
* overwritten, except for their analytics data. - If the destination index doesn't exist yet, it'll be created. -
* This operation is resource-intensive. **Copy** - Copying a source index that doesn't exist creates a new index
* with 0 records and default settings. - The API keys of the source index are merged with the existing keys in the
* destination index. - You can't copy the `enableReRanking`, `mode`, and `replicas` settings. - You can't copy to a
* destination index that already has replicas. - Be aware of the [size
* limits](https://www.algolia.com/doc/guides/scaling/algolia-service-limits/#application-record-and-index-limits). -
* Related guide: [Copy
* indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/copy-indices/)
Expand All @@ -1159,6 +1166,8 @@ class SearchClient(
* 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).
*
* Required API Key ACLs:
* - addObject
Expand Down Expand Up @@ -1186,23 +1195,24 @@ class SearchClient(
/** Adds new attributes to a record, or updates existing ones. - If a record with the specified object ID doesn't
* exist, a new record is added to the index **if** `createIfNotExists` is true. - If the index doesn't exist yet,
* this method creates a new index. - You can use any first-level attribute but not nested attributes. If you specify
* a nested attribute, the engine treats it as a replacement for its first-level ancestor. To update an attribute
* without pushing the entire record, you can use these built-in operations. These operations can be helpful if you
* don't have access to your initial data. - Increment: increment a numeric attribute - Decrement: decrement a
* numeric attribute - Add: append a number or string element to an array attribute - Remove: remove all matching
* number or string elements from an array attribute made of numbers or strings - AddUnique: add a number or string
* element to an array attribute made of numbers or strings only if it's not already present - IncrementFrom:
* increment a numeric integer attribute only if the provided value matches the current value, and otherwise ignore
* the whole object update. For example, if you pass an IncrementFrom value of 2 for the version attribute, but the
* current value of the attribute is 1, the engine ignores the update. If the object doesn't exist, the engine only
* creates it if you pass an IncrementFrom value of 0. - IncrementSet: increment a numeric integer attribute only if
* the provided value is greater than the current value, and otherwise ignore the whole object update. For example,
* if you pass an IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1, the
* engine updates the object. If the object doesn't exist yet, the engine only creates it if you pass an IncrementSet
* value greater than 0. You can specify an operation by providing an object with the attribute to update as the key
* and its value being an object with the following properties: - _operation: the operation to apply on the attribute
* \- value: the right-hand side argument to the operation, for example, increment or decrement step, value to add or
* remove.
* a nested attribute, this operation replaces its first-level ancestor. To update an attribute without pushing the
* entire record, you can use these built-in operations. These operations can be helpful if you don't have access to
* your initial data. - Increment: increment a numeric attribute - Decrement: decrement a numeric attribute - Add:
* append a number or string element to an array attribute - Remove: remove all matching number or string elements
* from an array attribute made of numbers or strings - AddUnique: add a number or string element to an array
* attribute made of numbers or strings only if it's not already present - IncrementFrom: increment a numeric integer
* attribute only if the provided value matches the current value, and otherwise ignore the whole object update. For
* example, if you pass an IncrementFrom value of 2 for the version attribute, but the current value of the attribute
* is 1, the engine ignores the update. If the object doesn't exist, the engine only creates it if you pass an
* IncrementFrom value of 0. - IncrementSet: increment a numeric integer attribute only if the provided value is
* greater than the current value, and otherwise ignore the whole object update. For example, if you pass an
* IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1, the engine updates
* the object. If the object doesn't exist yet, the engine only creates it if you pass an IncrementSet value greater
* than 0. You can specify an operation by providing an object with the attribute to update as the key and its value
* being an object with the following properties: - _operation: the operation to apply on the attribute - value: the
* right-hand side argument to the operation, for example, increment or decrement step, value 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).
*
* Required API Key ACLs:
* - addObject
Expand Down Expand Up @@ -1307,7 +1317,9 @@ class SearchClient(
* record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index.
* \- If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of
* a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace
* multiple records, use the [`batch` operation](#tag/Records/operation/batch).
* multiple records, use the [`batch` 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).
*
* Required API Key ACLs:
* - addObject
Expand Down Expand Up @@ -1367,7 +1379,8 @@ class SearchClient(
}

/** Create or update multiple rules. If a rule with the specified object ID doesn't exist, Algolia creates a new one.
* Otherwise, existing rules are replaced.
* 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).
*
* Required API Key ACLs:
* - editSettings
Expand Down Expand Up @@ -1436,6 +1449,8 @@ class SearchClient(
}

/** If a synonym with the `objectID` doesn't exist, Algolia adds a new one. Otherwise, existing synonyms 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).
*
* Required API Key ACLs:
* - editSettings
Expand Down

0 comments on commit 4e67438

Please sign in to comment.