Skip to content

Commit 3cfad82

Browse files
author
Alan Plum
committed
Add ArangoSearch cache option
Fixes DE-433.
1 parent 50b9957 commit 3cfad82

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ This driver uses semantic versioning:
1414
- A change in the major version (e.g. 1.Y.Z -> 2.0.0) indicates _breaking_
1515
changes that require changes in your code to upgrade.
1616

17+
## [Unreleased]
18+
19+
### Added
20+
21+
- Added support for new ArangoDB 3.9.5 `cache` field in ArangoSearch types
22+
1723
## [8.0.0] - 2022-10-25
1824

1925
This is a major release and breaks backwards compatibility.
@@ -1552,6 +1558,7 @@ For a detailed list of changes between pre-release versions of v7 see the
15521558

15531559
Graph methods now only return the relevant part of the response body.
15541560

1561+
[unreleased]: https://github.com/arangodb/arangojs/compare/v8.0.0...HEAD
15551562
[8.0.0]: https://github.com/arangodb/arangojs/compare/v7.8.0...v8.0.0
15561563
[7.8.0]: https://github.com/arangodb/arangojs/compare/v7.7.0...v7.8.0
15571564
[7.7.0]: https://github.com/arangodb/arangojs/compare/v7.6.1...v7.7.0

src/view.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ export type ArangoSearchViewLinkOptions = {
161161
* Default: `false`
162162
*/
163163
inBackground?: boolean;
164+
/**
165+
* (Enterprise Edition only.) If set to `true`, then field normalization
166+
* values are always cached in memory.
167+
*
168+
* Default: `false`
169+
*/
170+
cache?: boolean;
164171
};
165172

166173
/**
@@ -291,6 +298,13 @@ export type CreateArangoSearchViewOptions =
291298
* Default: `"lz4"`
292299
*/
293300
compression?: Compression;
301+
/**
302+
* (Enterprise Edition only.) If set to `true`, then stored values are
303+
* always cached in memory.
304+
*
305+
* Default: `false`
306+
*/
307+
cache?: boolean;
294308
}[];
295309
};
296310

@@ -394,6 +408,7 @@ export type ArangoSearchViewLink = {
394408
nested?: Record<string, ArangoSearchViewLink>;
395409
trackListPositions: boolean;
396410
storeValues: "none" | "id";
411+
cache: boolean;
397412
};
398413

399414
/**
@@ -415,6 +430,7 @@ export type ArangoSearchViewProperties = ArangoSearchViewDescription & {
415430
storedValues: {
416431
fields: string[];
417432
compression: Compression;
433+
cache: boolean;
418434
}[];
419435
links: Record<string, Omit<ArangoSearchViewLink, "nested">>;
420436
};

0 commit comments

Comments
 (0)