@@ -247,9 +247,17 @@ type ArangoSearchAnalyzerDefinition struct {
247
247
Type ArangoSearchAnalyzerType `json:"type,omitempty"`
248
248
Properties ArangoSearchAnalyzerProperties `json:"properties,omitempty"`
249
249
Features []ArangoSearchAnalyzerFeature `json:"features,omitempty"`
250
+ ArangoError
250
251
}
251
252
252
- // ArangoSearchViewProperties contains properties an an ArangoSearch view.
253
+ type ArangoSearchViewBase struct {
254
+ Type ViewType `json:"type,omitempty"`
255
+ Name string `json:"name,omitempty"`
256
+ ArangoID
257
+ ArangoError
258
+ }
259
+
260
+ // ArangoSearchViewProperties contains properties on an ArangoSearch view.
253
261
type ArangoSearchViewProperties struct {
254
262
// CleanupIntervalStep specifies the minimum number of commits to wait between
255
263
// removing unused files in the data directory.
@@ -294,12 +302,38 @@ type ArangoSearchViewProperties struct {
294
302
WriteBufferSizeMax * int64 `json:"writebufferSizeMax,omitempty"`
295
303
296
304
// Links contains the properties for how individual collections
297
- // are indexed in thie view.
305
+ // are indexed in the view.
298
306
// The key of the map are collection names.
299
307
Links ArangoSearchLinks `json:"links,omitempty"`
300
308
301
309
// PrimarySort describes how individual fields are sorted
302
310
PrimarySort []ArangoSearchPrimarySortEntry `json:"primarySort,omitempty"`
311
+
312
+ // PrimarySortCompression Defines how to compress the primary sort data (introduced in v3.7.1).
313
+ // ArangoDB v3.5 and v3.6 always compress the index using LZ4. This option is immutable.
314
+ PrimarySortCompression PrimarySortCompression `json:"primarySortCompression,omitempty"`
315
+
316
+ // StoredValues An array of objects to describe which document attributes to store in the View index (introduced in v3.7.1).
317
+ // It can then cover search queries, which means the data can be taken from the index directly and accessing the storage engine can be avoided.
318
+ // This option is immutable.
319
+ StoredValues []StoredValue `json:"storedValues,omitempty"`
320
+
321
+ ArangoSearchViewBase
322
+ }
323
+
324
+ // PrimarySortCompression Defines how to compress the primary sort data (introduced in v3.7.1)
325
+ type PrimarySortCompression string
326
+
327
+ const (
328
+ // PrimarySortCompressionLz4 (default): use LZ4 fast compression.
329
+ PrimarySortCompressionLz4 PrimarySortCompression = "lz4"
330
+ // PrimarySortCompressionNone disable compression to trade space for speed.
331
+ PrimarySortCompressionNone PrimarySortCompression = "none"
332
+ )
333
+
334
+ type StoredValue struct {
335
+ Fields []string `json:"fields,omitempty"`
336
+ Compression PrimarySortCompression `json:"compression,omitempty"`
303
337
}
304
338
305
339
// ArangoSearchSortDirection describes the sorting direction
@@ -368,10 +402,11 @@ type ArangoSearchConsolidationPolicyBytesAccum struct {
368
402
369
403
// ArangoSearchConsolidationPolicyTier contains fields used for ArangoSearchConsolidationPolicyTypeTier
370
404
type ArangoSearchConsolidationPolicyTier struct {
405
+ MinScore * int64 `json:"minScore,omitempty"`
371
406
// MinSegments specifies the minimum number of segments that will be evaluated as candidates for consolidation.
372
- MinSegments * int64 `json:"minSegments ,omitempty"`
407
+ MinSegments * int64 `json:"segmentsMin ,omitempty"`
373
408
// MaxSegments specifies the maximum number of segments that will be evaluated as candidates for consolidation.
374
- MaxSegments * int64 `json:"maxSegments ,omitempty"`
409
+ MaxSegments * int64 `json:"segmentsMax ,omitempty"`
375
410
// SegmentsBytesMax specifies the maxinum allowed size of all consolidated segments in bytes.
376
411
SegmentsBytesMax * int64 `json:"segmentsBytesMax,omitempty"`
377
412
// SegmentsBytesFloor defines the value (in bytes) to treat all smaller segments as equal for consolidation selection.
0 commit comments