Search
Create search view
Create a search view. Search view is updated with collection data changes every 10 seconds.
Note: Search view can't be created with the links. Use PUT/PATCH for links management.
post/_fabric/{fabric}/_api/search/view
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.
Request body
Example request
{
"name": "new_collection_view",
"links": {
"[collection-name]": {
"fields": {
"[field-name]": {
"size": 4,
"distanceType": "L2",
"indexConfig": {
"type": "hnsw",
"maxSize": 100000,
"nLinks": 8,
"efConstruction": 8,
"efSearch": 8,
"nProbe": 8,
"sample": 0.1
},
"quantizationConfig": {
"type": "none",
"bits": 8
}
}
}
}
}
}Response
Successfully created search view.
Example response
{
"globallyUniqueId": "h83A7584E8AA9/81730851",
"id": "81730851",
"name": "new_collection_view",
"primarySort": [
{
"field": "attribute1",
"direction": "asc"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.