Skip to content

Commit 3d3931b

Browse files
algolia-botkai687
andcommitted
fix(specs): different summaries for saveObject/addOrUpdate methods (generated)
algolia/api-clients-automation#4223 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]>
1 parent 6b888a9 commit 3d3931b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,10 @@ class SearchClient(
168168
}
169169

170170
/** If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added
171-
* to the index. To update _some_ attributes of an existing record, use the [`partial`
172-
* operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use
173-
* the [`batch` operation](#tag/Records/operation/batch).
171+
* to the index. If you want to use auto-generated object IDs, use the [`saveObject`
172+
* operation](#tag/Records/operation/saveObject). To update _some_ attributes of an existing record, use the
173+
* [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple
174+
* records, use the [`batch` operation](#tag/Records/operation/batch).
174175
*
175176
* Required API Key ACLs:
176177
* - addObject
@@ -1331,7 +1332,7 @@ class SearchClient(
13311332
execute[AddApiKeyResponse](request, requestOptions)
13321333
}
13331334

1334-
/** Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an
1335+
/** Adds a record to an index or replaces it. - If the record doesn't have an object ID, a new record with an
13351336
* auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing
13361337
* record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index.
13371338
* \- If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of

0 commit comments

Comments
 (0)