Indexes
Create index
Create a new index.
Note: Indexing the system attribute _id is not supported for user-defined indexes. Manually creating an index using _id as an index attribute fails with an error.
post/_fabric/{fabric}/_api/index/general
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
The name of the fabric.
Query parameters
collectionstring required
The collection name.
Request body
Example request
{
"fields": [
"_key"
],
"name": "idx_1723573111790501888",
"type": "fulltext"
}Response
Successfully fetched existing index.
Example response
{
"code": 200,
"fields": [
"_key"
],
"id": "61862387",
"name": "idx_1723573111790501888",
"selectivityEstimate": 1,
"type": "fulltext",
"unique": true,
"expireAfter": 3600
}Changes
No recorded changes to this operation across all 1 revision of this API.