Bulk insert documents in Azure AI Search using JavaScript
This sample creates and loads a search index using bulk insert operations with the good-books sample dataset. It demonstrates efficient document indexing patterns for large datasets.
What's in this sample
| File | Description |
|---|---|
package.json |
Project file that defines dependencies |
bulk_insert_books.js |
Main script that creates index and bulk inserts documents |
good-books-index.json |
Index schema definition for the books dataset |
Documentation
This sample is the JavaScript version of the bulk-insert content used in Tutorial: Add search to web apps. You can substitute this code to create a JavaScript version of the sample app. You can also run this code on its own to create a good-books index on your search service.
Next step
You can learn more about Azure AI Search on the official documentation site.