@delali/narsil 0.3.1-next.72 → 0.3.1-next.74
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/README.md +2 -2
- package/dist/adapters/filesystem.mjs +1 -1
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/{capabilities-D6gjjQyA.d.ts → capabilities-CAMzmkAg.d.ts} +19 -4
- package/dist/{chunk-P2ZZN32C.mjs → chunk-2E35UM3G.mjs} +2 -12
- package/dist/chunk-3DDUNI6N.mjs +48 -0
- package/dist/{chunk-KZTI25D3.mjs → chunk-4MQ5F4IL.mjs} +1 -1
- package/dist/{chunk-HVJYTKK7.mjs → chunk-BVBIQQKG.mjs} +947 -1327
- package/dist/{chunk-2X2ZQOAB.mjs → chunk-CTOSGRM7.mjs} +101 -21
- package/dist/{chunk-7QMTA7AA.mjs → chunk-CUZOX6CN.mjs} +7784 -4276
- package/dist/chunk-I23G3IZC.mjs +593 -0
- package/dist/{chunk-RV77FR2F.mjs → chunk-I64LXKO3.mjs} +0 -1
- package/dist/chunk-KEHK2O6P.mjs +13 -0
- package/dist/{chunk-CVPA5Q7R.mjs → chunk-LX4JERXI.mjs} +9 -6
- package/dist/{chunk-EDMCZLSJ.mjs → chunk-NOZUQM7J.mjs} +193 -13
- package/dist/{chunk-LCCL6EEH.mjs → chunk-PO53FV4Q.mjs} +93 -94
- package/dist/chunk-T5ZWEWVD.mjs +658 -0
- package/dist/{chunk-Y52WZWAU.mjs → chunk-TVFLHM7M.mjs} +4 -4
- package/dist/{chunk-QR4OKRVY.mjs → chunk-VKX2BPXD.mjs} +147 -642
- package/dist/{chunk-3HQPUCCT.mjs → chunk-XW25X6AU.mjs} +66 -237
- package/dist/{chunk-M6XF5HDE.mjs → chunk-Z3DQPOJQ.mjs} +127 -30
- package/dist/{client-C2TiW29y.d.ts → client-C-I70ArH.d.ts} +77 -26
- package/dist/client.d.ts +9 -9
- package/dist/client.mjs +44 -22
- package/dist/{config-BLguB-om.d.ts → config-C6Iw5rCX.d.ts} +11 -4
- package/dist/{config-C7Ip8Ife.d.ts → config-DJPH3IQB.d.ts} +11 -2
- package/dist/direct-executor-KFAGILJC.mjs +17 -0
- package/dist/distribution/coordinator/etcd.d.ts +29 -16
- package/dist/distribution/coordinator/etcd.mjs +162 -75
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/transport/grpc.d.ts +2 -2
- package/dist/distribution/transport/grpc.mjs +22 -2
- package/dist/distribution/transport/in-memory.d.ts +2 -2
- package/dist/distribution/transport/in-memory.mjs +6 -3
- package/dist/distribution/transport/tcp.d.ts +2 -2
- package/dist/distribution/transport/tcp.mjs +40 -16
- package/dist/distribution.d.ts +9 -9
- package/dist/distribution.mjs +647 -366
- package/dist/embeddings/openai.mjs +1 -1
- package/dist/{engine-Dm4446j1.d.ts → engine-B8eRPO7m.d.ts} +97 -188
- package/dist/index.browser.mjs +12132 -8592
- package/dist/index.d.ts +27 -8
- package/dist/index.mjs +15 -14
- package/dist/{memory-CKHTU1CL.d.ts → memory-DJEwWoCi.d.ts} +1204 -968
- package/dist/partial-words-DTIHO8G4.d.ts +19 -0
- package/dist/partial-words.d.ts +22 -0
- package/dist/partial-words.mjs +11 -0
- package/dist/pattern.mjs +1 -1
- package/dist/persistence/durability/checkpoint-worker.d.ts +57 -29
- package/dist/persistence/durability/checkpoint-worker.mjs +26 -16
- package/dist/react.d.ts +7 -7
- package/dist/react.mjs +0 -1
- package/dist/{schema-BBOCdhND.d.ts → schema-DgyDijhf.d.ts} +6 -2
- package/dist/server.d.ts +11 -11
- package/dist/server.mjs +212 -32
- package/dist/{tasks-BECd0b__.d.ts → tasks-BVmAKYBh.d.ts} +3 -3
- package/dist/{thread-IBSIZZ6W.mjs → thread-W6DPKEF6.mjs} +82 -21
- package/dist/{types-BQDlIvfS.d.ts → types-B3b68nfF.d.ts} +1 -1
- package/dist/{types-D5OwhtsQ.d.ts → types-Cb9kiY5P.d.ts} +1 -1
- package/dist/{types-BiUmaiWT.d.ts → types-ChrVy4lH.d.ts} +1 -1
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +4 -3
- package/dist/workers/entry.mjs +4 -4
- package/package.json +15 -7
- package/dist/chunk-3L4U6EJQ.mjs +0 -49
- package/dist/chunk-IFBKLBGB.mjs +0 -7
- package/dist/chunk-XZ4PAREY.mjs +0 -25
- package/dist/direct-executor-SVCHXR74.mjs +0 -14
- package/dist/serialization/crc32-worker.d.ts +0 -20
- package/dist/serialization/crc32-worker.mjs +0 -62
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An app passes an object of this type to {@link registerPartialWordSearch}
|
|
3
|
+
* to give the engine its partial-word search code. The engine uses that code
|
|
4
|
+
* to match each query word inside the longer words of a field whose type
|
|
5
|
+
* includes `partial`, whenever a query has {@link QueryParams.partialWords}
|
|
6
|
+
* set.
|
|
7
|
+
*
|
|
8
|
+
* A Node process loads this code by itself. A browser bundle contains it only
|
|
9
|
+
* when the app imports `partialWordSearch` from `@delali/narsil/partial-words`,
|
|
10
|
+
* so a bundler can leave it out of an app that has no `partial` field.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
interface PartialWordSearch {
|
|
15
|
+
/** The engine checks that this name is `'partialWords'` when an app registers the object. */
|
|
16
|
+
readonly name: 'partialWords';
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type { PartialWordSearch as P };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { P as PartialWordSearch } from './partial-words-DTIHO8G4.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This object contains the partial-word search code. A browser app has to
|
|
5
|
+
* pass it to {@link registerPartialWordSearch} before the app creates or
|
|
6
|
+
* loads an index with a `partial` field.
|
|
7
|
+
*
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { registerPartialWordSearch } from '@delali/narsil'
|
|
10
|
+
* import { partialWordSearch } from '@delali/narsil/partial-words'
|
|
11
|
+
*
|
|
12
|
+
* registerPartialWordSearch(partialWordSearch)
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* A Node process loads that code by itself, so only a browser app has to make
|
|
16
|
+
* this call.
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
declare const partialWordSearch: PartialWordSearch;
|
|
21
|
+
|
|
22
|
+
export { PartialWordSearch, partialWordSearch };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { partialWordSearchModule } from './chunk-T5ZWEWVD.mjs';
|
|
2
|
+
import './chunk-I23G3IZC.mjs';
|
|
3
|
+
import './chunk-Z3DQPOJQ.mjs';
|
|
4
|
+
import './chunk-KEHK2O6P.mjs';
|
|
5
|
+
import './chunk-LJYTW7GT.mjs';
|
|
6
|
+
import './chunk-I64LXKO3.mjs';
|
|
7
|
+
|
|
8
|
+
// src/partial-words/index.ts
|
|
9
|
+
var partialWordSearch = partialWordSearchModule;
|
|
10
|
+
|
|
11
|
+
export { partialWordSearch };
|
package/dist/pattern.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { P as PartitionConfig, d as ScoringMode, V as VectorIndexConfig } from '../../schema-
|
|
1
|
+
import { P as PartitionConfig, d as ScoringMode, V as VectorIndexConfig } from '../../schema-DgyDijhf.js';
|
|
2
2
|
import '../../adapters-79OIa4xm.js';
|
|
3
3
|
|
|
4
|
-
interface
|
|
5
|
-
|
|
6
|
-
docIds: Uint32Array;
|
|
7
|
-
runs: Uint32Array;
|
|
4
|
+
interface FrozenTokenTableData {
|
|
5
|
+
blob: Uint8Array;
|
|
8
6
|
offsets: Uint32Array;
|
|
9
|
-
|
|
7
|
+
payloadSlots: Uint32Array;
|
|
8
|
+
documentFrequencies: Uint32Array;
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
interface IndexMetadata {
|
|
@@ -60,6 +59,32 @@ interface IndexEmbeddingMetadata {
|
|
|
60
59
|
*/
|
|
61
60
|
type SerializedSurfaceForms = Record<string, number | [number, string]>;
|
|
62
61
|
|
|
62
|
+
interface PatternIndexArrays {
|
|
63
|
+
fieldPath: string;
|
|
64
|
+
docIds: Uint32Array;
|
|
65
|
+
runs: Uint32Array;
|
|
66
|
+
offsets: Uint32Array;
|
|
67
|
+
postings: Uint32Array;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
interface PartialSpellings {
|
|
71
|
+
fields: string[];
|
|
72
|
+
tokens: string[];
|
|
73
|
+
spellings: string[];
|
|
74
|
+
counts: number[];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface PartialWordTableData {
|
|
78
|
+
fields: string[];
|
|
79
|
+
spellings: Uint8Array;
|
|
80
|
+
spellingOffsets: Uint32Array;
|
|
81
|
+
spellingTokens: Uint32Array;
|
|
82
|
+
spellingCounts: Uint32Array;
|
|
83
|
+
runs: Uint32Array;
|
|
84
|
+
runOffsets: Uint32Array;
|
|
85
|
+
runEntries: Uint32Array;
|
|
86
|
+
}
|
|
87
|
+
|
|
63
88
|
interface SegmentPayload {
|
|
64
89
|
documentCount: number;
|
|
65
90
|
docIds: string[];
|
|
@@ -68,7 +93,7 @@ interface SegmentPayload {
|
|
|
68
93
|
postingOffsets: Uint32Array;
|
|
69
94
|
postingDocIds: Uint32Array;
|
|
70
95
|
postingFrequencies: Uint16Array;
|
|
71
|
-
postingFieldIndices:
|
|
96
|
+
postingFieldIndices: Uint16Array;
|
|
72
97
|
positionOffsets: Uint32Array | null;
|
|
73
98
|
positionValues: Uint32Array | null;
|
|
74
99
|
fieldLengthNames: string[];
|
|
@@ -76,6 +101,7 @@ interface SegmentPayload {
|
|
|
76
101
|
totalFieldLengths: Record<string, number>;
|
|
77
102
|
docFrequencies: Record<string, number>;
|
|
78
103
|
surfaceForms: SerializedSurfaceForms | null;
|
|
104
|
+
partialSpellings: PartialSpellings | null;
|
|
79
105
|
numeric: Array<{
|
|
80
106
|
fieldPath: string;
|
|
81
107
|
docIds: Uint32Array;
|
|
@@ -110,7 +136,7 @@ interface SegmentPostingColumns {
|
|
|
110
136
|
postingOffsets: Uint32Array;
|
|
111
137
|
postingDocIds: Uint32Array;
|
|
112
138
|
postingFrequencies: Uint16Array;
|
|
113
|
-
postingFieldIndices:
|
|
139
|
+
postingFieldIndices: Uint16Array;
|
|
114
140
|
positionOffsets: Uint32Array | null;
|
|
115
141
|
positionValues: Uint32Array | null;
|
|
116
142
|
}
|
|
@@ -132,6 +158,7 @@ interface SegmentColumns extends SegmentPostingColumns {
|
|
|
132
158
|
interface EncodedDocumentTableData {
|
|
133
159
|
blob: Uint8Array;
|
|
134
160
|
offsets: Uint32Array;
|
|
161
|
+
discardedFields?: readonly string[];
|
|
135
162
|
}
|
|
136
163
|
|
|
137
164
|
interface ExternalIdTableData {
|
|
@@ -146,13 +173,6 @@ interface SurfaceTableData {
|
|
|
146
173
|
counts: Uint32Array;
|
|
147
174
|
}
|
|
148
175
|
|
|
149
|
-
interface FrozenTokenTableData {
|
|
150
|
-
blob: Uint8Array;
|
|
151
|
-
offsets: Uint32Array;
|
|
152
|
-
payloadSlots: Uint32Array;
|
|
153
|
-
documentFrequencies: Uint32Array;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
176
|
interface SharedSegmentSnapshot extends Omit<SegmentColumns, 'surfaceForms'> {
|
|
157
177
|
segmentId: string;
|
|
158
178
|
tokenTable: FrozenTokenTableData;
|
|
@@ -160,18 +180,7 @@ interface SharedSegmentSnapshot extends Omit<SegmentColumns, 'surfaceForms'> {
|
|
|
160
180
|
documentTable: EncodedDocumentTableData;
|
|
161
181
|
/** The surface forms packed flat, or null where the segment holds none. */
|
|
162
182
|
surfaceTable: SurfaceTableData | null;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
interface CapturedFrozenSegment {
|
|
166
|
-
snapshot: SharedSegmentSnapshot;
|
|
167
|
-
tombstonedDocIds: string[];
|
|
168
|
-
}
|
|
169
|
-
interface CapturedWholePartition {
|
|
170
|
-
partitionId: number;
|
|
171
|
-
totalPartitions: number;
|
|
172
|
-
docCount: number;
|
|
173
|
-
liveTail: Uint8Array | null;
|
|
174
|
-
frozen: CapturedFrozenSegment[];
|
|
183
|
+
partialWords: PartialWordTableData | null;
|
|
175
184
|
}
|
|
176
185
|
|
|
177
186
|
interface PartitionCheckpoint {
|
|
@@ -180,9 +189,13 @@ interface PartitionCheckpoint {
|
|
|
180
189
|
primaryTerm: number;
|
|
181
190
|
}
|
|
182
191
|
|
|
183
|
-
interface
|
|
184
|
-
id: number;
|
|
192
|
+
interface FileRef {
|
|
185
193
|
key: string;
|
|
194
|
+
bytes: number;
|
|
195
|
+
checksum: number;
|
|
196
|
+
}
|
|
197
|
+
interface SegmentRef extends FileRef {
|
|
198
|
+
id: number;
|
|
186
199
|
docCount: number;
|
|
187
200
|
tombstoneCount: number;
|
|
188
201
|
}
|
|
@@ -192,6 +205,20 @@ interface PartitionManifestEntry {
|
|
|
192
205
|
segments: SegmentRef[];
|
|
193
206
|
}
|
|
194
207
|
|
|
208
|
+
interface CapturedSegment {
|
|
209
|
+
snapshot: SharedSegmentSnapshot;
|
|
210
|
+
keep: Uint8Array;
|
|
211
|
+
}
|
|
212
|
+
interface CapturedWholePartition {
|
|
213
|
+
partitionId: number;
|
|
214
|
+
docCount: number;
|
|
215
|
+
segments: CapturedSegment[];
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface PriorCheckpoint {
|
|
219
|
+
checkpoint: PartitionCheckpoint[];
|
|
220
|
+
partitions: PartitionManifestEntry[];
|
|
221
|
+
}
|
|
195
222
|
interface CheckpointSegmentsWritten {
|
|
196
223
|
checkpoint: PartitionCheckpoint[];
|
|
197
224
|
partitions: PartitionManifestEntry[];
|
|
@@ -202,6 +229,7 @@ interface CheckpointWorkerRequest {
|
|
|
202
229
|
metadata: IndexMetadata;
|
|
203
230
|
targets: PartitionCheckpoint[];
|
|
204
231
|
compactionThreshold: number;
|
|
232
|
+
prior: PriorCheckpoint | null;
|
|
205
233
|
capturedPartitions?: CapturedWholePartition[];
|
|
206
234
|
}
|
|
207
235
|
interface CheckpointWorkerSuccess {
|
|
@@ -1,29 +1,38 @@
|
|
|
1
|
-
import { CHECKPOINT_WORKER_HEARTBEAT_MS, createDurableDirectory, writeCheckpointSegments } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
import { CHECKPOINT_WORKER_HEARTBEAT_MS, createDurableDirectory, writeCheckpointSegments, directoryCheckpointStore } from '../../chunk-CUZOX6CN.mjs';
|
|
2
|
+
import '../../chunk-CTOSGRM7.mjs';
|
|
3
3
|
import '../../chunk-GCM3JFVA.mjs';
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-M6XF5HDE.mjs';
|
|
4
|
+
import '../../chunk-LX4JERXI.mjs';
|
|
5
|
+
import '../../chunk-BVBIQQKG.mjs';
|
|
6
|
+
import '../../chunk-VKX2BPXD.mjs';
|
|
7
|
+
import '../../chunk-4MQ5F4IL.mjs';
|
|
8
|
+
import '../../chunk-3DDUNI6N.mjs';
|
|
10
9
|
import '../../chunk-TGP5M5R7.mjs';
|
|
11
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-PO53FV4Q.mjs';
|
|
12
11
|
import '../../chunk-ZJ4CSAB2.mjs';
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-IFBKLBGB.mjs';
|
|
16
|
-
import '../../chunk-3HQPUCCT.mjs';
|
|
12
|
+
import '../../chunk-2E35UM3G.mjs';
|
|
13
|
+
import '../../chunk-XW25X6AU.mjs';
|
|
17
14
|
import '../../chunk-ZKRV5M2P.mjs';
|
|
15
|
+
import '../../chunk-T5ZWEWVD.mjs';
|
|
16
|
+
import '../../chunk-I23G3IZC.mjs';
|
|
17
|
+
import '../../chunk-Z3DQPOJQ.mjs';
|
|
18
|
+
import '../../chunk-KEHK2O6P.mjs';
|
|
18
19
|
import '../../chunk-U2BKYEC7.mjs';
|
|
19
20
|
import '../../chunk-LJYTW7GT.mjs';
|
|
20
21
|
import '../../chunk-POWOTUKJ.mjs';
|
|
21
|
-
import '../../chunk-
|
|
22
|
+
import '../../chunk-I64LXKO3.mjs';
|
|
22
23
|
|
|
23
24
|
// src/persistence/durability/rebuild.ts
|
|
24
|
-
async function rebuildSegmentsFromDurable(root, metadata, targets, compactionThreshold, capturedPartitions = []) {
|
|
25
|
+
async function rebuildSegmentsFromDurable(root, metadata, targets, compactionThreshold, prior, capturedPartitions = []) {
|
|
25
26
|
const directory = createDurableDirectory(root);
|
|
26
|
-
return writeCheckpointSegments({
|
|
27
|
+
return writeCheckpointSegments({
|
|
28
|
+
store: directoryCheckpointStore(directory),
|
|
29
|
+
directory,
|
|
30
|
+
metadata,
|
|
31
|
+
targets,
|
|
32
|
+
compactionThreshold,
|
|
33
|
+
prior,
|
|
34
|
+
capturedPartitions
|
|
35
|
+
});
|
|
27
36
|
}
|
|
28
37
|
|
|
29
38
|
// src/persistence/durability/checkpoint-worker.ts
|
|
@@ -49,6 +58,7 @@ async function handleRequest(raw) {
|
|
|
49
58
|
request.metadata,
|
|
50
59
|
request.targets,
|
|
51
60
|
request.compactionThreshold,
|
|
61
|
+
request.prior ?? null,
|
|
52
62
|
request.capturedPartitions
|
|
53
63
|
);
|
|
54
64
|
return { type: "success", segments };
|
package/dist/react.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { N as NarsilError, L as ListParams,
|
|
2
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './memory-
|
|
3
|
-
import { e as TaskRecord, d as TaskProgress, b as ImportResult, c as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
-
export { I as ImportError, f as TaskStatus, g as TaskType } from './tasks-
|
|
1
|
+
import { N as NarsilError, L as ListParams, h as ListResult, I as IndexInfo, g as IndexStats, Q as QueryParams, j as PreflightResult, e as QueryResult, k as SuggestParams, l as SuggestResult } from './memory-DJEwWoCi.js';
|
|
2
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './memory-DJEwWoCi.js';
|
|
3
|
+
import { e as TaskRecord, d as TaskProgress, b as ImportResult, c as TaskListQuery, T as TaskListPage } from './tasks-BVmAKYBh.js';
|
|
4
|
+
export { I as ImportError, f as TaskStatus, g as TaskType } from './tasks-BVmAKYBh.js';
|
|
5
5
|
import { ReactNode, ReactElement } from 'react';
|
|
6
|
-
import {
|
|
7
|
-
import { N as NarsilClient, I as ImportSource } from './client-
|
|
8
|
-
import { A as AnyDocument } from './schema-
|
|
6
|
+
import { N as Narsil } from './engine-B8eRPO7m.js';
|
|
7
|
+
import { N as NarsilClient, I as ImportSource } from './client-C-I70ArH.js';
|
|
8
|
+
import { A as AnyDocument } from './schema-DgyDijhf.js';
|
|
9
9
|
import './adapters-79OIa4xm.js';
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/react.mjs
CHANGED
|
@@ -74,7 +74,6 @@ var ErrorCodes = {
|
|
|
74
74
|
SNAPSHOT_SYNC_UNAUTHORIZED: "SNAPSHOT_SYNC_UNAUTHORIZED",
|
|
75
75
|
SNAPSHOT_SYNC_REQUEST_INVALID: "SNAPSHOT_SYNC_REQUEST_INVALID",
|
|
76
76
|
SNAPSHOT_SYNC_INDEX_NOT_FOUND: "SNAPSHOT_SYNC_INDEX_NOT_FOUND",
|
|
77
|
-
SNAPSHOT_SYNC_TOO_LARGE: "SNAPSHOT_SYNC_TOO_LARGE",
|
|
78
77
|
SNAPSHOT_SYNC_CAPACITY_EXHAUSTED: "SNAPSHOT_SYNC_CAPACITY_EXHAUSTED",
|
|
79
78
|
SNAPSHOT_SYNC_SNAPSHOT_FAILED: "SNAPSHOT_SYNC_SNAPSHOT_FAILED",
|
|
80
79
|
SNAPSHOT_SYNC_DECODE_FAILED: "SNAPSHOT_SYNC_DECODE_FAILED",
|
|
@@ -23,8 +23,12 @@ type AnyDocument = Record<string, unknown> & {
|
|
|
23
23
|
* `in`, `nin`, `startsWith`, and `endsWith` on that field from the index,
|
|
24
24
|
* comparing case folds for any of those tests that sets `caseFold`. The engine
|
|
25
25
|
* raises `DOC_VALIDATION_FAILED` for a value longer than
|
|
26
|
-
* {@link IndexConfig.patternValueLimit} in such a field.
|
|
27
|
-
*
|
|
26
|
+
* {@link IndexConfig.patternValueLimit} in such a field. For a query with
|
|
27
|
+
* {@link QueryParams.partialWords} set, the engine also matches each query
|
|
28
|
+
* word inside the longer words of a field whose type includes `partial`. It
|
|
29
|
+
* raises `CONFIG_INVALID` for such a field in an index whose `surfaceForms`
|
|
30
|
+
* setting is false, because it matches inside the original spellings of
|
|
31
|
+
* words, which it records only while that setting is on.
|
|
28
32
|
*
|
|
29
33
|
* @public
|
|
30
34
|
*/
|
package/dist/server.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './memory-
|
|
2
|
-
import { b as ServerOptions, N as NarsilServer } from './capabilities-
|
|
3
|
-
export { A as ASYNC_IMPORT_CAPABILITY, C as CorsOptions, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, R as REBUILD_ANALYSIS_CAPABILITY, c as RequestContext, d as RequestDenial, S as SERVER_CAPABILITIES, e as ServerLimits, T as TASK_CANCEL_CAPABILITY, a as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
4
|
-
import {
|
|
5
|
-
import { d as TaskProgress, b as ImportResult, h as TaskStore, e as TaskRecord } from './tasks-
|
|
6
|
-
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, i as CreateIndexRequest, H as HttpIndexConfig, I as ImportError, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, f as TaskStatus, g as TaskType } from './tasks-
|
|
7
|
-
import './schema-
|
|
1
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './memory-DJEwWoCi.js';
|
|
2
|
+
import { b as ServerOptions, N as NarsilServer } from './capabilities-CAMzmkAg.js';
|
|
3
|
+
export { A as ASYNC_IMPORT_CAPABILITY, C as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, R as REBUILD_ANALYSIS_CAPABILITY, c as RequestContext, d as RequestDenial, S as SERVER_CAPABILITIES, e as ServerLimits, T as TASK_CANCEL_CAPABILITY, a as TASK_FILTER_CAPABILITY } from './capabilities-CAMzmkAg.js';
|
|
4
|
+
import { N as Narsil } from './engine-B8eRPO7m.js';
|
|
5
|
+
import { d as TaskProgress, b as ImportResult, h as TaskStore, e as TaskRecord } from './tasks-BVmAKYBh.js';
|
|
6
|
+
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, i as CreateIndexRequest, H as HttpIndexConfig, I as ImportError, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, f as TaskStatus, g as TaskType } from './tasks-BVmAKYBh.js';
|
|
7
|
+
import './schema-DgyDijhf.js';
|
|
8
8
|
import './adapters-79OIa4xm.js';
|
|
9
|
-
import './config-
|
|
10
|
-
import './config-
|
|
11
|
-
import './types-
|
|
12
|
-
import './types-
|
|
9
|
+
import './config-C6Iw5rCX.js';
|
|
10
|
+
import './config-DJPH3IQB.js';
|
|
11
|
+
import './types-ChrVy4lH.js';
|
|
12
|
+
import './types-Cb9kiY5P.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* What a running task reports back while it works, and how it learns that a
|