arango_create_index
Create indexes on ArangoDB collections to improve query performance. Supports persistent, hash, skiplist, TTL, fulltext, and geo index types.
Instructions
Create an index on a collection (persistent, hash, skiplist, ttl, fulltext, geo).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Name of the collection to create index on | |
| type | No | Type of index to create | persistent |
| fields | Yes | Field paths to index | |
| unique | No | Whether the index should enforce uniqueness | |
| sparse | No | Whether the index should be sparse (ignore null values) | |
| deduplicate | No | Whether to deduplicate index entries | |
| name | No | Custom name for the index | |
| in_background | No | Whether to create index in background | |
| ttl | No | TTL seconds (expireAfter) for TTL index | |
| expireAfter | No | Alias for ttl (expireAfter) | |
| minLength | No | Minimum length for fulltext index | |
| geoJson | No | If true, fields are in GeoJSON format for geo index | |
| database | No | Database override |