website logo
⌘K
πŸ–οΈIntroduction to hyper cloud
🍎Getting Started
😍What's New
Legacy Get Migration Guide
Blueberry Migration Guide
πŸ’ͺWorkshops
Deno Workshops
NodeJS Workshops
⚑Quickstarts
NodeJS Quickstarts
πŸ”ŒAPI Reference (hyper cloud)
🍎Basics
⚑hyper connect
πŸ”‘JWT Auth
πŸ’ΎData API
🏎️Cache API
πŸ”ŽSearch API
πŸ—„οΈStorage API
πŸ€“Queue API
πŸ”“Sign In
⚑Applications
βš™οΈSettings
πŸ”‘App Keys
πŸ‘₯Teams
Switching Between Accounts
Application Services
Application Service Instances
Adding a Queue Service
Adding a Search Service
Subscriptions
πŸ€‘Upgrade
πŸ“•Terminology
Parameters
πŸ’³Billing
Payment and Pricing Terms
πŸ’ΌLegal
Terms of Service
Acceptable Use Policy
Privacy Policy
πŸ•ΆοΈHyper Vision
Docs powered byΒ archbeeΒ 

Bulk Documents

7min

POST /{appname}/search/{servicename}/_bulk

Index multiple documents in one batch call to the server.

Parameters

Path Parameters

  • appname - string - the name of your hyper cloud application.
  • servicename - string - the name of your hyper cloud service. see ο»ΏParameters.

Request Body

The id or _id property is required for each document in the request body.

Example

Node.js
Curl
|
import { connect } from 'hyper-connect'

const hyper = connect(process.env.HYPER)

const doc1 = {
  _id: 'book-1',
  type: 'book',
  name: 'Dune',
  author: 'Frank Herbert',
  published: '1965',
}

const doc2 = {
  _id: 'book-2',
  type: 'book',
  name: 'The Hobbit',
  author: 'J.R.R Tolkien',
  published: '1937',
}

const result = await hyper.search.load([doc1, doc2])

console.log(result)
ο»Ώ

Responses

Status Code

Description

Example Response

200

Success

{"ok": true, "results": []}

500

Error

{"ok": false, "msg": "..."}

Need Help?

You can always reach out to our support team for any additional assistance on slack.

ο»Ώ

Updated 15 Oct 2022
Did this page help you?
Yes
No
PREVIOUS
Remove Search Document
NEXT
Storage API
Docs powered byΒ archbeeΒ 
TABLE OF CONTENTS
POST /{appname}/search/{servicename}/_bulk
Parameters
Path Parameters
Request Body
Example
Responses
Need Help?