@@ -103,6 +103,7 @@ type EnsureGeoIndexOptions struct {
103
103
}
104
104
105
105
// 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
106
107
type EnsureHashIndexOptions struct {
107
108
// If true, then create a unique index.
108
109
Unique bool
@@ -121,11 +122,16 @@ type EnsureHashIndexOptions struct {
121
122
}
122
123
123
124
// 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
124
126
type EnsurePersistentIndexOptions struct {
125
127
// If true, then create a unique index.
126
128
Unique bool
127
129
// If true, then create a sparse index.
128
130
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
129
135
// InBackground if true will not hold an exclusive collection lock for the entire index creation period (rocksdb only).
130
136
InBackground bool
131
137
// Name optional user defined name used for hints in AQL queries
@@ -135,6 +141,7 @@ type EnsurePersistentIndexOptions struct {
135
141
}
136
142
137
143
// 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
138
145
type EnsureSkipListIndexOptions struct {
139
146
// If true, then create a unique index.
140
147
Unique bool
0 commit comments