File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ const documents = [
7171 { book_id: 42 , title: " The Hitchhiker's Guide to the Galaxy" },
7272]
7373
74- await index .addOrReplaceDocuments (documents) // { "updateId": 0 }
74+ await index .addDocuments (documents) // { "updateId": 0 }
7575```
7676
7777With the ` updateId ` , you can check the status (` processed ` or ` failed ` ) of your documents addition thanks to this [ method] ( #update-status ) .
@@ -145,7 +145,7 @@ let myDocuments = await index.getDocuments({ offset: 4, limit: 20 })
145145#### Add documents <!-- omit in toc -->
146146
147147``` javascript
148- index .addOrReplaceDocuments ([{ book_id: 2 , title: ' Madame Bovary' }])
148+ index .addDocuments ([{ book_id: 2 , title: ' Madame Bovary' }])
149149```
150150
151151Response:
You can’t perform that action at this time.
0 commit comments