arangojs 7.8.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +264 -3
- package/CONTRIBUTING.md +1 -1
- package/MIGRATING.md +126 -2
- package/README.md +7 -13
- package/analyzer.d.ts +531 -253
- package/analyzer.d.ts.map +1 -1
- package/analyzer.js +9 -8
- package/analyzer.js.map +1 -1
- package/aql.d.ts +122 -139
- package/aql.d.ts.map +1 -1
- package/aql.js +146 -148
- package/aql.js.map +1 -1
- package/collection.d.ts +311 -310
- package/collection.d.ts.map +1 -1
- package/collection.js +163 -96
- package/collection.js.map +1 -1
- package/connection.d.ts +65 -52
- package/connection.d.ts.map +1 -1
- package/connection.js +142 -140
- package/connection.js.map +1 -1
- package/cursor.d.ts +108 -26
- package/cursor.d.ts.map +1 -1
- package/cursor.js +24 -23
- package/cursor.js.map +1 -1
- package/database.d.ts +298 -330
- package/database.d.ts.map +1 -1
- package/database.js +178 -252
- package/database.js.map +1 -1
- package/documents.d.ts +3 -4
- package/documents.d.ts.map +1 -1
- package/documents.js +0 -1
- package/documents.js.map +1 -1
- package/error.d.ts +3 -6
- package/error.d.ts.map +1 -1
- package/error.js +5 -7
- package/error.js.map +1 -1
- package/foxx-manifest.d.ts +7 -8
- package/foxx-manifest.d.ts.map +1 -1
- package/foxx-manifest.js +1 -1
- package/foxx-manifest.js.map +1 -1
- package/graph.d.ts +38 -56
- package/graph.d.ts.map +1 -1
- package/graph.js +59 -63
- package/graph.js.map +1 -1
- package/index.d.ts +6 -8
- package/index.d.ts.map +1 -1
- package/index.js +1 -6
- package/index.js.map +1 -1
- package/indexes.d.ts +348 -127
- package/indexes.d.ts.map +1 -1
- package/indexes.js +1 -3
- package/indexes.js.map +1 -1
- package/lib/blob.d.ts +0 -2
- package/lib/blob.d.ts.map +1 -1
- package/lib/blob.js +0 -1
- package/lib/blob.js.map +1 -1
- package/lib/btoa.d.ts +1 -3
- package/lib/btoa.d.ts.map +1 -1
- package/lib/btoa.js +3 -5
- package/lib/btoa.js.map +1 -1
- package/lib/btoa.web.d.ts +1 -3
- package/lib/btoa.web.d.ts.map +1 -1
- package/lib/btoa.web.js +4 -6
- package/lib/btoa.web.js.map +1 -1
- package/lib/codes.d.ts +2 -2
- package/lib/codes.d.ts.map +1 -1
- package/lib/codes.js +3 -3
- package/lib/codes.js.map +1 -1
- package/lib/errback.d.ts +0 -2
- package/lib/errback.d.ts.map +1 -1
- package/lib/errback.js.map +1 -1
- package/lib/joinPath.d.ts +0 -2
- package/lib/joinPath.d.ts.map +1 -1
- package/lib/joinPath.js +0 -2
- package/lib/joinPath.js.map +1 -1
- package/lib/joinPath.web.d.ts +1 -3
- package/lib/joinPath.web.d.ts.map +1 -1
- package/lib/joinPath.web.js +7 -4
- package/lib/joinPath.web.js.map +1 -1
- package/lib/multipart.d.ts +0 -4
- package/lib/multipart.d.ts.map +1 -1
- package/lib/multipart.js +16 -37
- package/lib/multipart.js.map +1 -1
- package/lib/multipart.web.d.ts +0 -2
- package/lib/multipart.web.d.ts.map +1 -1
- package/lib/multipart.web.js +0 -2
- package/lib/multipart.web.js.map +1 -1
- package/lib/normalizeUrl.d.ts +0 -2
- package/lib/normalizeUrl.d.ts.map +1 -1
- package/lib/normalizeUrl.js +0 -2
- package/lib/normalizeUrl.js.map +1 -1
- package/lib/omit.d.ts +1 -3
- package/lib/omit.d.ts.map +1 -1
- package/lib/omit.js +1 -2
- package/lib/omit.js.map +1 -1
- package/lib/querystringify.d.ts +4 -0
- package/lib/querystringify.d.ts.map +1 -0
- package/lib/querystringify.js +20 -0
- package/lib/querystringify.js.map +1 -0
- package/lib/querystringify.web.d.ts +2 -0
- package/lib/querystringify.web.d.ts.map +1 -0
- package/lib/querystringify.web.js +30 -0
- package/lib/querystringify.web.js.map +1 -0
- package/lib/request.d.ts +0 -1
- package/lib/request.d.ts.map +1 -1
- package/lib/request.js +6 -3
- package/lib/request.js.map +1 -1
- package/lib/request.node.d.ts +2 -8
- package/lib/request.node.d.ts.map +1 -1
- package/lib/request.node.js +16 -7
- package/lib/request.node.js.map +1 -1
- package/lib/request.web.d.ts +2 -3
- package/lib/request.web.d.ts.map +1 -1
- package/lib/request.web.js +26 -29
- package/lib/request.web.js.map +1 -1
- package/lib/xhr.d.ts +1 -3
- package/lib/xhr.d.ts.map +1 -1
- package/lib/xhr.js +0 -2
- package/lib/xhr.js.map +1 -1
- package/package.json +5 -6
- package/route.d.ts +1 -2
- package/route.d.ts.map +1 -1
- package/route.js +1 -2
- package/route.js.map +1 -1
- package/transaction.d.ts +31 -6
- package/transaction.d.ts.map +1 -1
- package/transaction.js +13 -6
- package/transaction.js.map +1 -1
- package/view.d.ts +237 -181
- package/view.d.ts.map +1 -1
- package/view.js +17 -25
- package/view.js.map +1 -1
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/lib/error.d.ts +0 -18
- package/lib/error.d.ts.map +0 -1
- package/lib/error.js +0 -18
- package/lib/error.js.map +0 -1
package/indexes.d.ts
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
* import type {
|
|
4
4
|
* FulltextIndex,
|
|
5
5
|
* GeoIndex,
|
|
6
|
-
* HashIndex,
|
|
7
6
|
* PersistentIndex,
|
|
8
7
|
* PrimaryIndex,
|
|
9
|
-
* SkiplistIndex,
|
|
10
8
|
* TtlIndex,
|
|
9
|
+
* ZkdIndex,
|
|
11
10
|
* } from "arangojs/indexes";
|
|
12
11
|
* ```
|
|
13
12
|
*
|
|
@@ -15,20 +14,16 @@
|
|
|
15
14
|
*
|
|
16
15
|
* @packageDocumentation
|
|
17
16
|
*/
|
|
17
|
+
import { AnalyzerFeature } from "./analyzer";
|
|
18
|
+
import { Compression, Direction, TierConsolidationPolicy } from "./view";
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* When using the RocksDB storage engine, this index type behaves identically
|
|
22
|
-
* to {@link EnsurePersistentIndexOptions}.
|
|
23
|
-
*
|
|
24
|
-
* @deprecated Hash indexes have been deprecated in ArangoDB 3.9 and should be
|
|
25
|
-
* replaced with persistent indexes.
|
|
20
|
+
* Options for creating a persistent index.
|
|
26
21
|
*/
|
|
27
|
-
export declare type
|
|
22
|
+
export declare type EnsurePersistentIndexOptions = {
|
|
28
23
|
/**
|
|
29
24
|
* Type of this index.
|
|
30
25
|
*/
|
|
31
|
-
type: "
|
|
26
|
+
type: "persistent";
|
|
32
27
|
/**
|
|
33
28
|
* An array of attribute paths.
|
|
34
29
|
*/
|
|
@@ -52,7 +47,8 @@ export declare type EnsureHashIndexOptions = {
|
|
|
52
47
|
*/
|
|
53
48
|
sparse?: boolean;
|
|
54
49
|
/**
|
|
55
|
-
* If set to `false`,
|
|
50
|
+
* If set to `false`, inserting duplicate index values from the same
|
|
51
|
+
* document will lead to a unique constraint error if this is a unique index.
|
|
56
52
|
*
|
|
57
53
|
* Default: `true`
|
|
58
54
|
*/
|
|
@@ -71,108 +67,18 @@ export declare type EnsureHashIndexOptions = {
|
|
|
71
67
|
* Default: `false`
|
|
72
68
|
*/
|
|
73
69
|
inBackground?: boolean;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* (MMFiles only.) Options for creating a skiplist index.
|
|
77
|
-
*
|
|
78
|
-
* When using the RocksDB storage engine, this index type behaves identically
|
|
79
|
-
* to {@link EnsurePersistentIndexOptions}.
|
|
80
|
-
*
|
|
81
|
-
* @deprecated Skiplist indexes have been deprecated in ArangoDB 3.9 and should
|
|
82
|
-
* be replaced with persistent indexes.
|
|
83
|
-
*/
|
|
84
|
-
export declare type EnsureSkiplistIndexOptions = {
|
|
85
|
-
/**
|
|
86
|
-
* Type of this index.
|
|
87
|
-
*/
|
|
88
|
-
type: "skiplist";
|
|
89
70
|
/**
|
|
90
|
-
*
|
|
91
|
-
|
|
92
|
-
fields: string[];
|
|
93
|
-
/**
|
|
94
|
-
* A unique name for this index.
|
|
95
|
-
*/
|
|
96
|
-
name?: string;
|
|
97
|
-
/**
|
|
98
|
-
* If set to `true`, a unique index will be created.
|
|
71
|
+
* If set to `true`, an in-memory hash cache will be put in front of the
|
|
72
|
+
* persistent index.
|
|
99
73
|
*
|
|
100
74
|
* Default: `false`
|
|
101
75
|
*/
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* If set to `true`, the index will omit documents that do not contain at
|
|
105
|
-
* least one of the attribute paths in `fields` and these documents will be
|
|
106
|
-
* ignored for uniqueness checks.
|
|
107
|
-
*
|
|
108
|
-
* Default: `false`
|
|
109
|
-
*/
|
|
110
|
-
sparse?: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* If set to `false`, array values will not be deduplicated.
|
|
113
|
-
*
|
|
114
|
-
* Default: `true`
|
|
115
|
-
*/
|
|
116
|
-
deduplicate?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* If set to `false`, index selectivity estimates will be disabled for this
|
|
119
|
-
* index.
|
|
120
|
-
*
|
|
121
|
-
* Default: `true`
|
|
122
|
-
*/
|
|
123
|
-
estimates?: boolean;
|
|
76
|
+
cacheEnabled?: boolean;
|
|
124
77
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* Default: `false`
|
|
78
|
+
* An array of attribute paths that will be stored in the index but can not
|
|
79
|
+
* be used for index lookups or sorting but can avoid full document lookups.
|
|
129
80
|
*/
|
|
130
|
-
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Options for creating a persistent index.
|
|
134
|
-
*/
|
|
135
|
-
export declare type EnsurePersistentIndexOptions = {
|
|
136
|
-
/**
|
|
137
|
-
* Type of this index.
|
|
138
|
-
*/
|
|
139
|
-
type: "persistent";
|
|
140
|
-
/**
|
|
141
|
-
* An array of attribute paths.
|
|
142
|
-
*/
|
|
143
|
-
fields: string[];
|
|
144
|
-
/**
|
|
145
|
-
* A unique name for this index.
|
|
146
|
-
*/
|
|
147
|
-
name?: string;
|
|
148
|
-
/**
|
|
149
|
-
* If set to `true`, a unique index will be created.
|
|
150
|
-
*
|
|
151
|
-
* Default: `false`
|
|
152
|
-
*/
|
|
153
|
-
unique?: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* If set to `true`, the index will omit documents that do not contain at
|
|
156
|
-
* least one of the attribute paths in `fields` and these documents will be
|
|
157
|
-
* ignored for uniqueness checks.
|
|
158
|
-
*
|
|
159
|
-
* Default: `false`
|
|
160
|
-
*/
|
|
161
|
-
sparse?: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* If set to `false`, index selectivity estimates will be disabled for this
|
|
164
|
-
* index.
|
|
165
|
-
*
|
|
166
|
-
* Default: `true`
|
|
167
|
-
*/
|
|
168
|
-
estimates?: boolean;
|
|
169
|
-
/**
|
|
170
|
-
* If set to `true`, the index will be created in the background to reduce
|
|
171
|
-
* the write-lock duration for the collection during index creation.
|
|
172
|
-
*
|
|
173
|
-
* Default: `false`
|
|
174
|
-
*/
|
|
175
|
-
inBackground?: boolean;
|
|
81
|
+
storedValues?: string[];
|
|
176
82
|
};
|
|
177
83
|
/**
|
|
178
84
|
* Options for creating a geo index.
|
|
@@ -188,6 +94,12 @@ export declare type EnsureGeoIndexOptions = {
|
|
|
188
94
|
* Default: `false`
|
|
189
95
|
*/
|
|
190
96
|
geoJson?: false;
|
|
97
|
+
/**
|
|
98
|
+
* If set to `true`, the index will use pre-3.10 rules for parsing
|
|
99
|
+
* GeoJSON polygons. This option is always implicitly `true` when using
|
|
100
|
+
* ArangoDB 3.9 or lower.
|
|
101
|
+
*/
|
|
102
|
+
legacyPolygons?: boolean;
|
|
191
103
|
/**
|
|
192
104
|
* Attribute paths for the document's latitude and longitude values.
|
|
193
105
|
*/
|
|
@@ -214,6 +126,12 @@ export declare type EnsureGeoIndexOptions = {
|
|
|
214
126
|
* Default: `false`
|
|
215
127
|
*/
|
|
216
128
|
geoJson?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* If set to `true`, the index will use pre-3.10 rules for parsing
|
|
131
|
+
* GeoJSON polygons. This option is always implicitly `true` when using
|
|
132
|
+
* ArangoDB 3.9 or lower.
|
|
133
|
+
*/
|
|
134
|
+
legacyPolygons?: boolean;
|
|
217
135
|
/**
|
|
218
136
|
* An array containing the attribute path for an array containing two values,
|
|
219
137
|
* the first of which will be interpreted as the latitude, the second as the
|
|
@@ -235,6 +153,9 @@ export declare type EnsureGeoIndexOptions = {
|
|
|
235
153
|
};
|
|
236
154
|
/**
|
|
237
155
|
* Options for creating a fulltext index.
|
|
156
|
+
*
|
|
157
|
+
* @deprecated Fulltext indexes have been deprecated in ArangoDB 3.10 and
|
|
158
|
+
* should be replaced with ArangoSearch.
|
|
238
159
|
*/
|
|
239
160
|
export declare type EnsureFulltextIndexOptions = {
|
|
240
161
|
/**
|
|
@@ -310,6 +231,264 @@ export declare type EnsureZkdIndexOptions = {
|
|
|
310
231
|
* A unique name for this index.
|
|
311
232
|
*/
|
|
312
233
|
name?: string;
|
|
234
|
+
/**
|
|
235
|
+
* If set to `true`, a unique index will be created.
|
|
236
|
+
*
|
|
237
|
+
* Default: `false`
|
|
238
|
+
*/
|
|
239
|
+
unique?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* If set to `true`, the index will be created in the background to reduce
|
|
242
|
+
* the write-lock duration for the collection during index creation.
|
|
243
|
+
*
|
|
244
|
+
* Default: `false`
|
|
245
|
+
*/
|
|
246
|
+
inBackground?: boolean;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* (Enterprise Edition only.) Options for a nested field in an inverted index.
|
|
250
|
+
*/
|
|
251
|
+
export declare type InvertedIndexNestedFieldOptions = {
|
|
252
|
+
/**
|
|
253
|
+
* An attribute path.
|
|
254
|
+
*/
|
|
255
|
+
name: string;
|
|
256
|
+
/**
|
|
257
|
+
* Name of the Analyzer to apply to the values of this field.
|
|
258
|
+
*
|
|
259
|
+
* Defaults to the `analyzer` specified on the parent options or on the index
|
|
260
|
+
* itself.
|
|
261
|
+
*/
|
|
262
|
+
analyzer?: string;
|
|
263
|
+
/**
|
|
264
|
+
* List of Analyzer features to enable for this field's Analyzer.
|
|
265
|
+
*
|
|
266
|
+
* Defaults to the features of the Analyzer.
|
|
267
|
+
*/
|
|
268
|
+
features?: AnalyzerFeature[];
|
|
269
|
+
/**
|
|
270
|
+
* If set to `true` array values will be indexed using the same behavior as
|
|
271
|
+
* ArangoSearch Views. This option only applies when using the index in a
|
|
272
|
+
* SearchAlias View.
|
|
273
|
+
*
|
|
274
|
+
* Defaults to the value of `searchField` specified on the index itself.
|
|
275
|
+
*/
|
|
276
|
+
searchField?: boolean;
|
|
277
|
+
/**
|
|
278
|
+
* Sub-objects to index to allow querying for co-occurring values.
|
|
279
|
+
*/
|
|
280
|
+
nested?: (string | InvertedIndexNestedFieldOptions)[];
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Options for an attribute path in an inverted index.
|
|
284
|
+
*/
|
|
285
|
+
export declare type InvertedIndexFieldOptions = {
|
|
286
|
+
/**
|
|
287
|
+
* An attribute path.
|
|
288
|
+
*/
|
|
289
|
+
name: string;
|
|
290
|
+
/**
|
|
291
|
+
* Name of the Analyzer to apply to the values of this field.
|
|
292
|
+
*
|
|
293
|
+
* Defaults to the `analyzer` specified on the index itself.
|
|
294
|
+
*/
|
|
295
|
+
analyzer?: string;
|
|
296
|
+
/**
|
|
297
|
+
* List of Analyzer features to enable for this field's Analyzer.
|
|
298
|
+
*
|
|
299
|
+
* Defaults to the features of the Analyzer.
|
|
300
|
+
*/
|
|
301
|
+
features?: AnalyzerFeature[];
|
|
302
|
+
/**
|
|
303
|
+
* If set to `true`, all document attributes are indexed, excluding any
|
|
304
|
+
* sub-attributes configured in the `fields` array. The `analyzer` and
|
|
305
|
+
* `features` properties apply to the sub-attributes. This option only
|
|
306
|
+
* applies when using the index in a SearchAlias View.
|
|
307
|
+
*
|
|
308
|
+
* Defaults to the value of `includeAllFields` specified on the index itself.
|
|
309
|
+
*/
|
|
310
|
+
includeAllFields?: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* If set to `true` array values will be indexed using the same behavior as
|
|
313
|
+
* ArangoSearch Views. This option only applies when using the index in a
|
|
314
|
+
* SearchAlias View.
|
|
315
|
+
*
|
|
316
|
+
* Defaults to the value of `searchField` specified on the index itself.
|
|
317
|
+
*/
|
|
318
|
+
searchField?: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* If set to `true`, the position of values in array values are tracked and
|
|
321
|
+
* need to be specified in queries. Otherwise all values in an array are
|
|
322
|
+
* treated as equivalent. This option only applies when using the index in a
|
|
323
|
+
* SearchAlias View.
|
|
324
|
+
*
|
|
325
|
+
* Defaults to the value of `trackListPositions` specified on the index
|
|
326
|
+
* itself.
|
|
327
|
+
*/
|
|
328
|
+
trackListPositions?: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* (Enterprise Edition only.) Sub-objects to index to allow querying for
|
|
331
|
+
* co-occurring values.
|
|
332
|
+
*/
|
|
333
|
+
nested?: (string | InvertedIndexNestedFieldOptions)[];
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* Options for defining a stored value on an inverted index.
|
|
337
|
+
*/
|
|
338
|
+
export declare type InvertedIndexStoredValueOptions = {
|
|
339
|
+
/**
|
|
340
|
+
* The attribute paths to store.
|
|
341
|
+
*/
|
|
342
|
+
fields: string[];
|
|
343
|
+
/**
|
|
344
|
+
* How the attribute values should be compressed.
|
|
345
|
+
*
|
|
346
|
+
* Default: `"lz4"`
|
|
347
|
+
*/
|
|
348
|
+
compression?: Compression;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* Options for defining a primary sort field on an inverted index.
|
|
352
|
+
*/
|
|
353
|
+
export declare type InvertedIndexPrimarySortFieldOptions = {
|
|
354
|
+
/**
|
|
355
|
+
* The attribute path to sort by.
|
|
356
|
+
*/
|
|
357
|
+
field: string;
|
|
358
|
+
/**
|
|
359
|
+
* The sorting direction.
|
|
360
|
+
*/
|
|
361
|
+
direction: Direction;
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Options for creating an inverted index.
|
|
365
|
+
*/
|
|
366
|
+
export declare type EnsureInvertedIndexOptions = {
|
|
367
|
+
/**
|
|
368
|
+
* Type of this index.
|
|
369
|
+
*/
|
|
370
|
+
type: "inverted";
|
|
371
|
+
/**
|
|
372
|
+
* An array of attribute paths or objects specifying options for the fields.
|
|
373
|
+
*/
|
|
374
|
+
fields: (string | InvertedIndexFieldOptions)[];
|
|
375
|
+
/**
|
|
376
|
+
* A unique name for this index.
|
|
377
|
+
*/
|
|
378
|
+
name?: string;
|
|
379
|
+
/**
|
|
380
|
+
* If set to `true` array values will by default be indexed using the same
|
|
381
|
+
* behavior as ArangoSearch Views. This option only applies when using the
|
|
382
|
+
* index in a SearchAlias View.
|
|
383
|
+
*
|
|
384
|
+
* Default: `false`
|
|
385
|
+
*/
|
|
386
|
+
searchField?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* An array of attribute paths that will be stored in the index but can not
|
|
389
|
+
* be used for index lookups or sorting but can avoid full document lookups.
|
|
390
|
+
*/
|
|
391
|
+
storedValues?: InvertedIndexStoredValueOptions[];
|
|
392
|
+
/**
|
|
393
|
+
* Primary sort order to optimize AQL queries using a matching sort order.
|
|
394
|
+
*/
|
|
395
|
+
primarySort?: {
|
|
396
|
+
/**
|
|
397
|
+
* An array of fields to sort the index by.
|
|
398
|
+
*/
|
|
399
|
+
fields: InvertedIndexPrimarySortFieldOptions[];
|
|
400
|
+
/**
|
|
401
|
+
* How the primary sort data should be compressed.
|
|
402
|
+
*
|
|
403
|
+
* Default: `"lz4"`
|
|
404
|
+
*/
|
|
405
|
+
compression?: Compression;
|
|
406
|
+
};
|
|
407
|
+
/**
|
|
408
|
+
* Name of the default Analyzer to apply to the values of indexed fields.
|
|
409
|
+
*
|
|
410
|
+
* Default: `"identity"`
|
|
411
|
+
*/
|
|
412
|
+
analyzer?: string;
|
|
413
|
+
/**
|
|
414
|
+
* List of Analyzer features to enable for the default Analyzer.
|
|
415
|
+
*
|
|
416
|
+
* Defaults to the Analyzer's features.
|
|
417
|
+
*/
|
|
418
|
+
features?: AnalyzerFeature[];
|
|
419
|
+
/**
|
|
420
|
+
* If set to `true`, all document attributes are indexed, excluding any
|
|
421
|
+
* sub-attributes configured in the `fields` array. The `analyzer` and
|
|
422
|
+
* `features` properties apply to the sub-attributes. This option only
|
|
423
|
+
* applies when using the index in a SearchAlias View.
|
|
424
|
+
*
|
|
425
|
+
* Default: `false`
|
|
426
|
+
*/
|
|
427
|
+
includeAllFields?: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* If set to `true`, the position of values in array values are tracked and
|
|
430
|
+
* need to be specified in queries. Otherwise all values in an array are
|
|
431
|
+
* treated as equivalent. This option only applies when using the index in a
|
|
432
|
+
* SearchAlias View.
|
|
433
|
+
*
|
|
434
|
+
* Default: `false`
|
|
435
|
+
*/
|
|
436
|
+
trackListPositions?: boolean;
|
|
437
|
+
/**
|
|
438
|
+
* The number of threads to use for indexing the fields.
|
|
439
|
+
*
|
|
440
|
+
* Default: `2`
|
|
441
|
+
*/
|
|
442
|
+
parallelism?: number;
|
|
443
|
+
/**
|
|
444
|
+
* Wait at least this many commits between removing unused files in the
|
|
445
|
+
* ArangoSearch data directory.
|
|
446
|
+
*
|
|
447
|
+
* Default: `2`
|
|
448
|
+
*/
|
|
449
|
+
cleanupIntervalStep?: number;
|
|
450
|
+
/**
|
|
451
|
+
* Wait at least this many milliseconds between committing View data store
|
|
452
|
+
* changes and making documents visible to queries.
|
|
453
|
+
*
|
|
454
|
+
* Default: `1000`
|
|
455
|
+
*/
|
|
456
|
+
commitIntervalMsec?: number;
|
|
457
|
+
/**
|
|
458
|
+
* Wait at least this many milliseconds between applying
|
|
459
|
+
* `consolidationPolicy` to consolidate View data store and possibly release
|
|
460
|
+
* space on the filesystem.
|
|
461
|
+
*
|
|
462
|
+
* Default: `1000`
|
|
463
|
+
*/
|
|
464
|
+
consolidationIntervalMsec?: number;
|
|
465
|
+
/**
|
|
466
|
+
* The consolidation policy to apply for selecting which segments should be
|
|
467
|
+
* merged.
|
|
468
|
+
*
|
|
469
|
+
* Default: `{ type: "tier" }`
|
|
470
|
+
*/
|
|
471
|
+
consolidationPolicy?: TierConsolidationPolicy;
|
|
472
|
+
/**
|
|
473
|
+
* Maximum number of writers (segments) cached in the pool.
|
|
474
|
+
*
|
|
475
|
+
* Default: `64`
|
|
476
|
+
*/
|
|
477
|
+
writeBufferIdle?: number;
|
|
478
|
+
/**
|
|
479
|
+
* Maximum number of concurrent active writers (segments) that perform a
|
|
480
|
+
* transaction.
|
|
481
|
+
*
|
|
482
|
+
* Default: `0` (disabled)
|
|
483
|
+
*/
|
|
484
|
+
writeBufferActive?: number;
|
|
485
|
+
/**
|
|
486
|
+
* Maximum memory byte size per writer (segment) before a writer (segment)
|
|
487
|
+
* flush is triggered.
|
|
488
|
+
*
|
|
489
|
+
* Default: `33554432` (32 MiB)
|
|
490
|
+
*/
|
|
491
|
+
writeBufferSizeMax?: number;
|
|
313
492
|
/**
|
|
314
493
|
* If set to `true`, the index will be created in the background to reduce
|
|
315
494
|
* the write-lock duration for the collection during index creation.
|
|
@@ -325,7 +504,7 @@ export declare type GenericIndex = {
|
|
|
325
504
|
/**
|
|
326
505
|
* A unique name for this index.
|
|
327
506
|
*/
|
|
328
|
-
name
|
|
507
|
+
name: string;
|
|
329
508
|
/**
|
|
330
509
|
* A unique identifier for this index.
|
|
331
510
|
*/
|
|
@@ -346,21 +525,10 @@ export declare type GenericIndex = {
|
|
|
346
525
|
export declare type PersistentIndex = GenericIndex & {
|
|
347
526
|
type: "persistent";
|
|
348
527
|
fields: string[];
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
export declare type SkiplistIndex = GenericIndex & {
|
|
354
|
-
type: "skiplist";
|
|
355
|
-
fields: string[];
|
|
356
|
-
};
|
|
357
|
-
/**
|
|
358
|
-
* An object representing a hash index.
|
|
359
|
-
*/
|
|
360
|
-
export declare type HashIndex = GenericIndex & {
|
|
361
|
-
type: "hash";
|
|
362
|
-
fields: string[];
|
|
363
|
-
selectivityEstimate: number;
|
|
528
|
+
cacheEnabled: boolean;
|
|
529
|
+
deduplicate: boolean;
|
|
530
|
+
estimates: boolean;
|
|
531
|
+
storedValues?: string[];
|
|
364
532
|
};
|
|
365
533
|
/**
|
|
366
534
|
* An object representing a primary index.
|
|
@@ -372,6 +540,9 @@ export declare type PrimaryIndex = GenericIndex & {
|
|
|
372
540
|
};
|
|
373
541
|
/**
|
|
374
542
|
* An object representing a fulltext index.
|
|
543
|
+
*
|
|
544
|
+
* @deprecated Fulltext indexes have been deprecated in ArangoDB 3.10 and
|
|
545
|
+
* should be replaced with ArangoSearch.
|
|
375
546
|
*/
|
|
376
547
|
export declare type FulltextIndex = GenericIndex & {
|
|
377
548
|
type: "fulltext";
|
|
@@ -385,6 +556,7 @@ export declare type GeoIndex = GenericIndex & {
|
|
|
385
556
|
type: "geo";
|
|
386
557
|
fields: [string] | [string, string];
|
|
387
558
|
geoJson: boolean;
|
|
559
|
+
legacyPolygons: boolean;
|
|
388
560
|
bestIndexedLevel: number;
|
|
389
561
|
worstIndexedLevel: number;
|
|
390
562
|
maxNumCoverCells: number;
|
|
@@ -399,17 +571,67 @@ export declare type TtlIndex = GenericIndex & {
|
|
|
399
571
|
selectivityEstimate: number;
|
|
400
572
|
};
|
|
401
573
|
/**
|
|
402
|
-
* An object representing a
|
|
574
|
+
* An object representing a ZKD index.
|
|
403
575
|
*/
|
|
404
576
|
export declare type ZkdIndex = GenericIndex & {
|
|
405
577
|
type: "zkd";
|
|
406
578
|
fields: string[];
|
|
407
579
|
fieldValueTypes: "double";
|
|
408
580
|
};
|
|
581
|
+
/**
|
|
582
|
+
* (Enterprise Edition only.) An object representing a nested field in an
|
|
583
|
+
* inverted index.
|
|
584
|
+
*/
|
|
585
|
+
export declare type InvertedIndexNestedField = {
|
|
586
|
+
name: string;
|
|
587
|
+
analyzer?: string;
|
|
588
|
+
features?: AnalyzerFeature[];
|
|
589
|
+
searchField?: boolean;
|
|
590
|
+
nested?: InvertedIndexNestedField[];
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* An object representing an inverted index.
|
|
594
|
+
*/
|
|
595
|
+
export declare type InvertedIndex = GenericIndex & {
|
|
596
|
+
type: "inverted";
|
|
597
|
+
fields: {
|
|
598
|
+
name: string;
|
|
599
|
+
analyzer?: string;
|
|
600
|
+
features?: AnalyzerFeature[];
|
|
601
|
+
includeAllFields?: boolean;
|
|
602
|
+
searchField?: boolean;
|
|
603
|
+
trackListPositions?: boolean;
|
|
604
|
+
nested?: InvertedIndexNestedField[];
|
|
605
|
+
}[];
|
|
606
|
+
searchField: boolean;
|
|
607
|
+
storedValues: {
|
|
608
|
+
fields: string[];
|
|
609
|
+
compression: Compression;
|
|
610
|
+
}[];
|
|
611
|
+
primarySort: {
|
|
612
|
+
fields: {
|
|
613
|
+
field: string;
|
|
614
|
+
direction: Direction;
|
|
615
|
+
}[];
|
|
616
|
+
compression: Compression;
|
|
617
|
+
};
|
|
618
|
+
analyzer: string;
|
|
619
|
+
features: AnalyzerFeature[];
|
|
620
|
+
includeAllFields: boolean;
|
|
621
|
+
trackListPositions: boolean;
|
|
622
|
+
parallelism: number;
|
|
623
|
+
cleanupIntervalStep: number;
|
|
624
|
+
commitIntervalMsec: number;
|
|
625
|
+
consolidationIntervalMsec: number;
|
|
626
|
+
consolidationPolicy: Required<TierConsolidationPolicy>;
|
|
627
|
+
writeBufferIdle: number;
|
|
628
|
+
writeBufferActive: number;
|
|
629
|
+
writeBufferSizeMax: number;
|
|
630
|
+
};
|
|
409
631
|
/**
|
|
410
632
|
* An object representing an index.
|
|
411
633
|
*/
|
|
412
|
-
export declare type Index = GeoIndex | FulltextIndex | PersistentIndex | PrimaryIndex |
|
|
634
|
+
export declare type Index = GeoIndex | FulltextIndex | PersistentIndex | PrimaryIndex | TtlIndex | ZkdIndex | InvertedIndex;
|
|
413
635
|
export declare type ObjectWithId = {
|
|
414
636
|
[key: string]: any;
|
|
415
637
|
id: string;
|
|
@@ -424,7 +646,6 @@ export declare type ObjectWithName = {
|
|
|
424
646
|
export declare type IndexSelector = ObjectWithId | ObjectWithName | string;
|
|
425
647
|
/**
|
|
426
648
|
* @internal
|
|
427
|
-
* @hidden
|
|
428
649
|
*/
|
|
429
650
|
export declare function _indexHandle(selector: IndexSelector, collectionName: string): string;
|
|
430
651
|
//# sourceMappingURL=indexes.d.ts.map
|
package/indexes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../src/indexes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"indexes.d.ts","sourceRoot":"","sources":["../src/indexes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAEzE;;GAEG;AACH,oBAAY,4BAA4B,GAAG;IACzC;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,oBAAY,qBAAqB,GAC7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
9
|
* TtlIndex,
|
|
10
|
+
* ZkdIndex,
|
|
12
11
|
* } from "arangojs/indexes";
|
|
13
12
|
* ```
|
|
14
13
|
*
|
|
@@ -20,7 +19,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
20
19
|
exports._indexHandle = void 0;
|
|
21
20
|
/**
|
|
22
21
|
* @internal
|
|
23
|
-
* @hidden
|
|
24
22
|
*/
|
|
25
23
|
function _indexHandle(selector, collectionName) {
|
|
26
24
|
if (typeof selector !== "string") {
|