@@ -103,6 +103,7 @@ type EnsureGeoIndexOptions struct {
103103}
104104
105105// EnsureHashIndexOptions contains specific options for creating a hash index.
106+ // Note: "hash" and "skiplist" are only aliases for "persistent" with the RocksDB storage engine which is only storage engine since 3.7
106107type EnsureHashIndexOptions struct {
107108 // If true, then create a unique index.
108109 Unique bool
@@ -121,11 +122,16 @@ type EnsureHashIndexOptions struct {
121122}
122123
123124// EnsurePersistentIndexOptions contains specific options for creating a persistent index.
125+ // Note: "hash" and "skiplist" are only aliases for "persistent" with the RocksDB storage engine which is only storage engine since 3.7
124126type EnsurePersistentIndexOptions struct {
125127 // If true, then create a unique index.
126128 Unique bool
127129 // If true, then create a sparse index.
128130 Sparse bool
131+ // If true, de-duplication of array-values, before being added to the index, will be turned off.
132+ // This flag requires ArangoDB 3.2.
133+ // Note: this setting is only relevant for indexes with array fields (e.g. "fieldName[*]")
134+ NoDeduplicate bool
129135 // InBackground if true will not hold an exclusive collection lock for the entire index creation period (rocksdb only).
130136 InBackground bool
131137 // Name optional user defined name used for hints in AQL queries
@@ -135,6 +141,7 @@ type EnsurePersistentIndexOptions struct {
135141}
136142
137143// EnsureSkipListIndexOptions contains specific options for creating a skip-list index.
144+ // Note: "hash" and "skiplist" are only aliases for "persistent" with the RocksDB storage engine which is only storage engine since 3.7
138145type EnsureSkipListIndexOptions struct {
139146 // If true, then create a unique index.
140147 Unique bool
0 commit comments