Actions7
- Document & Key-Value Actions
- Search Actions
Search → Create Index
AI-generatedSummary
Upserts a search index definition into Couchbase using the provided JSON configuration.
Inputs
- indexDefinition (required) — A JSON object defining the search index, including its type, source, fields, and settings, as per Couchbase Search documentation.
Output shape
a single record with a static message
The operation returns a fixed success message regardless of the input definition; errors from Couchbase are thrown as node errors.
Examples
Example 1: Create a full-text search index on a JSON field
Provide the indexDefinition JSON, e.g., { "type": "fulltext", "source": { "type": "gsl", "query": "SELECT * FROM default" }, "plan": { "name": "my-index", "params": { "indexName": "my-index" } } }