Indexes
Create geo-spatial index
Create a geo index.
Note: Geo indexes are always sparse, meaning that documents that do not contain the index attributes or have non-numeric values in the index attributes are not indexed.
post/_fabric/{fabric}/_api/index/geo
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScripthttps://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/index/geo/post.tsA 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
Response
Successfully fetched existing geo index.
Example response
{
"code": 200,
"geoJson": true,
"fields": [
"_key"
],
"maxNumCoverCells": 8,
"worstIndexedLevel": 4,
"id": "61862387",
"name": "idx_1723573111790501888",
"selectivityEstimate": 1,
"sparse": true,
"type": "fulltext",
"unique": true
}Changes
No recorded changes to this operation across all 1 revision of this API.