Skip to content

Commit 068fdac

Browse files
authored
feat(specs): add info and link about indexing rate limits (#4136)
1 parent 6c7d64c commit 068fdac

File tree

10 files changed

+30
-6
lines changed

10 files changed

+30
-6
lines changed

specs/search/paths/manage_indices/operationIndex.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ post:
1010
1111
- Existing destination indices are overwritten, except for their analytics data.
1212
- If the destination index doesn't exist yet, it'll be created.
13+
- This operation is resource-intensive.
1314
1415
**Copy**
1516
@@ -28,6 +29,7 @@ post:
2829
- If the destination index has replicas, moving will overwrite the existing index and copy the data to the replica indices.
2930
- Related guide: [Move indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/move-indices/).
3031
32+
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).
3133
parameters:
3234
- $ref: '../../../common/parameters.yml#/IndexName'
3335
requestBody:

specs/search/paths/objects/batch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ post:
1010
1111
- Actions are applied in the order they're specified.
1212
- Actions are equivalent to the individual API requests of the same name.
13+
14+
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).
1315
parameters:
1416
- $ref: '../../../common/parameters.yml#/IndexName'
1517
x-codegen-request-body-name: batchWriteParams

specs/search/paths/objects/clearObjects.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ post:
55
x-acl:
66
- deleteIndex
77
summary: Delete all records from an index
8-
description: Deletes only the records from an index while keeping settings, synonyms, and rules.
8+
description: |
9+
Deletes only the records from an index while keeping settings, synonyms, and rules.
10+
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).
911
parameters:
1012
- $ref: '../../../common/parameters.yml#/IndexName'
1113
responses:

specs/search/paths/objects/deleteBy.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@ post:
44
operationId: deleteBy
55
x-acl:
66
- deleteIndex
7-
summary: Delete records matching a query
7+
summary: Delete records matching a filter
88
description: |
9-
This operation doesn't accept empty queries or filters.
9+
This operation doesn't accept empty filters.
1010
11+
This operation is resource-intensive.
12+
You should only use it if you can't get the object IDs of the records you want to delete.
1113
It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse),
1214
and then delete the records using the [`batch` operation](#tag/Records/operation/batch).
15+
16+
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).
17+
externalDocs:
18+
url: https://support.algolia.com/hc/en-us/articles/16385098766353-Should-I-use-the-deleteby-method-for-deleting-records-matching-a-query-
19+
description: Should I use the deleteBy method for deleting records.
1320
parameters:
1421
- $ref: '../../../common/parameters.yml#/IndexName'
1522
requestBody:

specs/search/paths/objects/multipleBatch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ post:
77
88
- Actions are applied in the order they are specified.
99
- Actions are equivalent to the individual API requests of the same name.
10+
11+
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).
1012
summary: Batch indexing operations on multiple indices
1113
requestBody:
1214
required: true

specs/search/paths/objects/objects.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ post:
1414
1515
To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject).
1616
To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
17+
18+
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).
1719
summary: Add or replace a record
1820
parameters:
1921
- $ref: '../../../common/parameters.yml#/IndexName'
@@ -51,7 +53,6 @@ post:
5153
$ref: '../../../common/responses/MethodNotAllowed.yml'
5254
'404':
5355
$ref: '../../../common/responses/IndexNotFound.yml'
54-
5556
delete:
5657
tags:
5758
- Indices

specs/search/paths/objects/partialUpdate.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ post:
1313
a new record is added to the index **if** `createIfNotExists` is true.
1414
- If the index doesn't exist yet, this method creates a new index.
1515
- You can use any first-level attribute but not nested attributes.
16-
If you specify a nested attribute, the engine treats it as a replacement for its first-level ancestor.
16+
If you specify a nested attribute, this operation replaces its first-level ancestor.
1717
18-
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.
18+
To update an attribute without pushing the entire record, you can use these built-in operations.
19+
These operations can be helpful if you don't have access to your initial data.
1920
2021
- Increment: increment a numeric attribute
2122
- Decrement: decrement a numeric attribute
@@ -29,6 +30,8 @@ post:
2930
3031
- _operation: the operation to apply on the attribute
3132
- value: the right-hand side argument to the operation, for example, increment or decrement step, value to add or remove.
33+
34+
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).
3235
parameters:
3336
- $ref: '../../../common/parameters.yml#/IndexName'
3437
- $ref: '../../../common/parameters.yml#/ObjectID'

specs/search/paths/rules/saveRules.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ post:
1010
1111
If a rule with the specified object ID doesn't exist, Algolia creates a new one.
1212
Otherwise, existing rules are replaced.
13+
14+
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).
1315
x-codegen-request-body-name: rules
1416
parameters:
1517
- $ref: '../../../common/parameters.yml#/IndexName'

specs/search/paths/synonyms/saveSynonyms.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ post:
88
description: |
99
If a synonym with the `objectID` doesn't exist, Algolia adds a new one.
1010
Otherwise, existing synonyms are replaced.
11+
12+
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).
1113
parameters:
1214
- $ref: '../../../common/parameters.yml#/IndexName'
1315
- $ref: '../../../common/parameters.yml#/ForwardToReplicas'

specs/search/spec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ tags:
161161
Records are individual items in your index.
162162
When they match a search query, they're returned as search results, in the order determined by your ranking.
163163
Records are schemaless JSON objects.
164+
When adding or updating many records, check the [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
164165
externalDocs:
165166
url: https://www.algolia.com/doc/guides/sending-and-managing-data/prepare-your-data/
166167
description: |

0 commit comments

Comments
 (0)