@delali/narsil 0.3.1-next.156 → 0.3.1-next.157
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/dist/{analysis-change-5BQOQ4BF.mjs → analysis-change-CKEMM2MC.mjs} +9 -9
- package/dist/{react-native/chunks/analysis-change-entry-SCVWK6OU.mjs → analysis-change-entry-SEDMJ6MW.mjs} +1 -1
- package/dist/browser/{analysis-change-435CUEPZ.mjs → analysis-change-ZKGJFENM.mjs} +38 -29
- package/dist/{analysis-change-entry-TXX6JSMX.mjs → browser/analysis-change-entry-5BFUVMHJ.mjs} +1 -1
- package/dist/browser/{chunk-BHFQATSC.mjs → chunk-25MTVDYD.mjs} +1 -1
- package/dist/browser/{chunk-IZXVW2ZJ.mjs → chunk-3NLMB5CC.mjs} +2 -2
- package/dist/browser/{chunk-23XRXIBW.mjs → chunk-5YWB3E2W.mjs} +8 -1
- package/dist/browser/chunk-AI5UI46D.mjs +12 -0
- package/dist/browser/{chunk-2CFI5VVV.mjs → chunk-BLT4RHCJ.mjs} +2 -2
- package/dist/browser/{chunk-4NGKC4H4.mjs → chunk-C26SPCGQ.mjs} +7 -6
- package/dist/browser/{chunk-6LWDPLTB.mjs → chunk-C4FJ3WDY.mjs} +1 -1
- package/dist/browser/{chunk-MGI4BCXC.mjs → chunk-CXNTHHA7.mjs} +2 -2
- package/dist/browser/{chunk-STOWQFT3.mjs → chunk-DUH6QUVU.mjs} +547 -2
- package/dist/browser/chunk-EKMGCRSR.mjs +61 -0
- package/dist/browser/{chunk-SSTPBZZX.mjs → chunk-GFAZPSWK.mjs} +5 -5
- package/dist/browser/{chunk-3SSRJMFN.mjs → chunk-HUCSHDTB.mjs} +1 -1
- package/dist/browser/{chunk-K4Q6KX3R.mjs → chunk-K3IPRX6D.mjs} +48 -17
- package/dist/browser/{chunk-MOG4OVDK.mjs → chunk-MY2XKH22.mjs} +1 -12
- package/dist/browser/{chunk-3V7DNNZL.mjs → chunk-N23GL72Q.mjs} +178 -801
- package/dist/browser/{chunk-NQAME3RK.mjs → chunk-UATIJ4KU.mjs} +2 -2
- package/dist/browser/{chunk-2TI4SSUP.mjs → chunk-UKOWD2K5.mjs} +3 -3
- package/dist/browser/{chunk-7U3WVJUP.mjs → chunk-UTMHUHUV.mjs} +2 -2
- package/dist/browser/{chunk-EA63E3D2.mjs → chunk-V43N6TZO.mjs} +5 -5
- package/dist/browser/{chunk-CRE3G7F3.mjs → chunk-VY5KW3HN.mjs} +3 -3
- package/dist/browser/{chunk-WI4MR75E.mjs → chunk-X7TXYUKO.mjs} +1 -1
- package/dist/browser/{chunk-KZWSX6BH.mjs → chunk-Y6IBAUNO.mjs} +2 -86
- package/dist/browser/{cold-module-2EHCIV4K.mjs → cold-module-YNUUDNOM.mjs} +12 -10
- package/dist/browser/{durability-wiring-A7BVG2DW.mjs → durability-wiring-GVZEE46O.mjs} +64 -21
- package/dist/browser/{engine-hooks-E4UD67JD.mjs → engine-hooks-HBVS6YM4.mjs} +5 -4
- package/dist/browser/{geo-index-HHWGMNIS.mjs → geo-index-OTV7VPIR.mjs} +2 -1
- package/dist/browser/{import-DXYB6756.mjs → import-5ESVMFDJ.mjs} +6 -5
- package/dist/browser/{module-NIYMEA5R.mjs → module-NDSQLPMQ.mjs} +11 -9
- package/dist/{release-BH3DKW3T.mjs → browser/release-HYXPVJVS.mjs} +0 -1
- package/dist/browser/{restore-hooks-YPN4ZFCY.mjs → restore-hooks-IE3GGYHG.mjs} +8 -7
- package/dist/browser/{restore-queue-G3RQGL3Y.mjs → restore-queue-LQBBTODR.mjs} +3 -3
- package/dist/browser/{retention-ZWVMNC3Q.mjs → retention-TY3L3BFN.mjs} +7 -6
- package/dist/browser/{snapshot-VEQNIE6C.mjs → snapshot-5FHPPCNZ.mjs} +16 -14
- package/dist/browser/{start-BM442C6R.mjs → start-2UZTOBG5.mjs} +8 -7
- package/dist/browser/{write-2EVMZWDE.mjs → write-ULXAN5B4.mjs} +10 -8
- package/dist/{capabilities-Da4ywVVl.d.ts → capabilities-D3AoBJoF.d.ts} +2 -2
- package/dist/{chunk-K5QFDYST.mjs → chunk-24FNVRKB.mjs} +1 -1
- package/dist/{chunk-DP5C7YFQ.mjs → chunk-2ROUFMQX.mjs} +2 -2
- package/dist/{chunk-PWC4VB3Q.mjs → chunk-4B7JIGQD.mjs} +2 -2
- package/dist/{chunk-FAKFUDZZ.mjs → chunk-4LMSZAK6.mjs} +14 -3
- package/dist/{chunk-6I6AYAXS.mjs → chunk-4ZTHGTVX.mjs} +2 -2
- package/dist/{chunk-QOW2JPUI.mjs → chunk-BNL5OPRV.mjs} +6 -6
- package/dist/{chunk-3HYC4JRF.mjs → chunk-C7XQYG6U.mjs} +2 -2
- package/dist/{chunk-WX4LAO6M.mjs → chunk-CQZXZ75V.mjs} +3 -97
- package/dist/{chunk-4KKXNJM6.mjs → chunk-CWS55TEX.mjs} +2 -2
- package/dist/{chunk-2UV4QBHW.mjs → chunk-EYD7K3H6.mjs} +5 -5
- package/dist/{chunk-EFBDHH5P.mjs → chunk-FEZVDOWX.mjs} +160 -245
- package/dist/{chunk-XAXKV65G.mjs → chunk-FUD5XSZ5.mjs} +1 -1
- package/dist/{chunk-JDJBQLRO.mjs → chunk-GPWMUPCA.mjs} +10 -10
- package/dist/{chunk-25KDNIZZ.mjs → chunk-IIRIG7H5.mjs} +1 -1
- package/dist/{chunk-TZTRKM33.mjs → chunk-JSV6OQ4C.mjs} +1 -1
- package/dist/{chunk-NF4DT3IH.mjs → chunk-JTYPJF3T.mjs} +8 -1
- package/dist/chunk-KCQYFO4K.mjs +62 -0
- package/dist/{chunk-CSLGFPFQ.mjs → chunk-LDNCLRZU.mjs} +1 -1
- package/dist/{chunk-MQOJIO5B.mjs → chunk-MW6BR4QP.mjs} +2 -2
- package/dist/{react-native/chunks/chunk-MUWD2H2S.mjs → chunk-MWD5VPN7.mjs} +2 -2
- package/dist/{chunk-XXHN7J46.mjs → chunk-ODYKO5TO.mjs} +1 -1
- package/dist/{chunk-RDXO6JST.mjs → chunk-OG7UGJ6F.mjs} +2 -2
- package/dist/{chunk-FYOVBEMM.mjs → chunk-OQLD2BSW.mjs} +2 -2
- package/dist/{chunk-I53G4JAU.mjs → chunk-OYABFKTW.mjs} +2 -2
- package/dist/{chunk-TZ3355VS.mjs → chunk-P5LANSH6.mjs} +1 -1
- package/dist/{chunk-P5ZI2P2W.mjs → chunk-PIH5SJ4N.mjs} +3 -3
- package/dist/{chunk-HFPMMRQT.mjs → chunk-PSZI4O24.mjs} +51 -4
- package/dist/{chunk-L6V6BST3.mjs → chunk-PV2CG7EJ.mjs} +3 -552
- package/dist/{chunk-SA5LOGO3.mjs → chunk-PWGYQXML.mjs} +1 -1
- package/dist/{chunk-BWZ3P4MU.mjs → chunk-QLDABJZM.mjs} +3 -3
- package/dist/{chunk-JWRUUCWD.mjs → chunk-RCX4WNLC.mjs} +2 -2
- package/dist/{chunk-DWEPMFJE.mjs → chunk-RIHIVFIQ.mjs} +5 -5
- package/dist/{chunk-FNGAM5B7.mjs → chunk-RWURUDSP.mjs} +8 -8
- package/dist/{chunk-I2KPOLOZ.mjs → chunk-SMOOSIAW.mjs} +3 -3
- package/dist/{chunk-TGS5UXBE.mjs → chunk-SOI6LTHM.mjs} +3 -3
- package/dist/{chunk-YTWZVGCB.mjs → chunk-UD5HIS4U.mjs} +1 -1
- package/dist/{chunk-46KY2PJD.mjs → chunk-UJDJB3NE.mjs} +37 -29
- package/dist/{chunk-Z2KAFCRT.mjs → chunk-VSLSGASN.mjs} +2 -2
- package/dist/{chunk-VTTRFF2C.mjs → chunk-VZ2ONHEE.mjs} +9 -5
- package/dist/chunk-W5EB5XKI.mjs +741 -0
- package/dist/{chunk-7LXHHCXZ.mjs → chunk-W7OSSKH5.mjs} +46 -16
- package/dist/{chunk-ZKP7G7TV.mjs → chunk-XXJZMTZT.mjs} +1 -1
- package/dist/{chunk-FRBFVQFN.mjs → chunk-ZPZ3YGXV.mjs} +4 -4
- package/dist/{client-DRv7UVeY.d.ts → client-kqSMevVi.d.ts} +15 -3
- package/dist/client.d.ts +6 -6
- package/dist/client.mjs +4 -0
- package/dist/{cold-module-6MO2XJF2.mjs → cold-module-VOJXMNZB.mjs} +13 -12
- package/dist/{config-DMwffLKn.d.ts → config-B4v_Htpu.d.ts} +1 -1
- package/dist/{config-CoSig5Ox.d.ts → config-CTP01fns.d.ts} +1 -1
- package/dist/{direct-executor-FTMYY3TI.mjs → direct-executor-V5DRIECI.mjs} +5 -5
- package/dist/distribution.d.ts +4 -4
- package/dist/distribution.mjs +72 -64
- package/dist/{durability-wiring-VIF5MOSY.mjs → durability-wiring-3TD62MBI.mjs} +38 -30
- package/dist/{engine-CFxPYqEk.d.ts → engine-CkPn2PWE.d.ts} +1 -1
- package/dist/{engine-hooks-EGUGNZYE.mjs → engine-hooks-HA3SBOBR.mjs} +8 -8
- package/dist/{import-XKDPJQDP.mjs → import-GPKLTSKA.mjs} +8 -8
- package/dist/index.browser.mjs +4 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +7 -7
- package/dist/index.react-native.mjs +3 -3
- package/dist/{long-query-thread-YA4IAYSY.mjs → long-query-thread-QDFQSJD6.mjs} +13 -13
- package/dist/{module-FQ4JWNQJ.mjs → module-JYHFTVPS.mjs} +12 -11
- package/dist/{paged-partition-archive-PXW5XAYU.mjs → paged-partition-archive-RLRGOXDX.mjs} +14 -14
- package/dist/partial-words.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +13 -12
- package/dist/query-suggestions/merge-worker.mjs +9 -9
- package/dist/query-suggestions.browser.mjs +9 -8
- package/dist/query-suggestions.d.ts +1 -1
- package/dist/query-suggestions.mjs +17 -17
- package/dist/react-native/chunks/{analysis-change-LT5QBQ3H.mjs → analysis-change-QUVDNABS.mjs} +37 -29
- package/dist/{browser/analysis-change-entry-HZXKPPGV.mjs → react-native/chunks/analysis-change-entry-OC4XASBF.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-KV46CT4D.mjs → chunk-4AV5PPH6.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-GXX3DQXP.mjs → chunk-4COWCEY7.mjs} +188 -163
- package/dist/react-native/chunks/{chunk-G43IPIDG.mjs → chunk-4NWR3NGS.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-3JWDECAZ.mjs → chunk-5MSX5FRT.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-6WA3C3DV.mjs → chunk-6OFDUYVX.mjs} +8 -1
- package/dist/react-native/chunks/{chunk-NB3LP33V.mjs → chunk-6ZELFCK5.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-4JYO3JD2.mjs → chunk-BITYFZSZ.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-ZXZFN7FI.mjs → chunk-DMIFXZ3Q.mjs} +1 -1
- package/dist/{chunk-KF4EXSM4.mjs → react-native/chunks/chunk-IAENKE2D.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-ZLWVW734.mjs → chunk-KSBYEMCB.mjs} +1 -1
- package/dist/react-native/chunks/chunk-KU646XXT.mjs +164 -0
- package/dist/react-native/chunks/{chunk-MIP4SOR6.mjs → chunk-OCSLSH27.mjs} +164 -244
- package/dist/react-native/chunks/chunk-OXM66LO6.mjs +62 -0
- package/dist/react-native/chunks/{chunk-VWUDIOT6.mjs → chunk-TORU2OHQ.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-PDRWWPKV.mjs → chunk-WVWJNUMN.mjs} +48 -18
- package/dist/react-native/chunks/{chunk-UQ4OAXKU.mjs → chunk-WW2X2AEI.mjs} +4 -4
- package/dist/react-native/chunks/{chunk-QUKQNI3H.mjs → chunk-ZNZ6CPAZ.mjs} +2 -87
- package/dist/react-native/chunks/{chunk-TP6KCKER.mjs → chunk-ZVQMBF2H.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-POPDAGH6.mjs → chunk-ZWAIN4GG.mjs} +6 -6
- package/dist/react-native/chunks/{cold-module-KVZYUGRY.mjs → cold-module-N6KFNNZA.mjs} +9 -8
- package/dist/react-native/chunks/{durability-wiring-34OYO32E.mjs → durability-wiring-RN64S2TL.mjs} +63 -21
- package/dist/react-native/chunks/{engine-hooks-M7JV46NH.mjs → engine-hooks-CWA5CKCA.mjs} +4 -4
- package/dist/react-native/chunks/{import-H6AQREWI.mjs → import-5UAWBRJP.mjs} +4 -4
- package/dist/react-native/chunks/{module-LBZPGOWH.mjs → module-6RP4ZCBW.mjs} +8 -7
- package/dist/react-native/chunks/{release-D7ZTIANM.mjs → release-2SIHZWDO.mjs} +0 -1
- package/dist/react-native/chunks/{restore-hooks-IBGIY3DR.mjs → restore-hooks-ENFMDTWC.mjs} +7 -7
- package/dist/react-native/chunks/{restore-queue-ZZX54AH7.mjs → restore-queue-4R6AASE5.mjs} +3 -3
- package/dist/react-native/chunks/{retention-EW4TTDFB.mjs → retention-5GTFT3GR.mjs} +6 -6
- package/dist/react-native/chunks/{snapshot-REYVIN3X.mjs → snapshot-5LGPQXFS.mjs} +15 -14
- package/dist/react-native/chunks/{start-BQK6KN3R.mjs → start-ZQJVZ5DN.mjs} +7 -7
- package/dist/react-native/chunks/{write-FQAYCZF5.mjs → write-6BRYIIZ7.mjs} +7 -6
- package/dist/react-native/partial-words.mjs +2 -2
- package/dist/react-native/query-suggestions.mjs +8 -8
- package/dist/react-native/sync.mjs +44 -10
- package/dist/react.d.ts +7 -7
- package/dist/{browser/release-76MXRPGV.mjs → release-SMR4WJD4.mjs} +0 -1
- package/dist/{restore-hooks-CDERDEF4.mjs → restore-hooks-HXLIEB4A.mjs} +12 -12
- package/dist/{restore-queue-7NNSTROA.mjs → restore-queue-LZH7LMLR.mjs} +3 -3
- package/dist/{retention-QSVBBNRM.mjs → retention-3K7ARGAG.mjs} +12 -12
- package/dist/server.d.ts +10 -8
- package/dist/server.mjs +37 -29
- package/dist/{snapshot-RH4NSKIZ.mjs → snapshot-O7ICP7NJ.mjs} +24 -23
- package/dist/{start-MCKCOGIW.mjs → start-S4PFP6RS.mjs} +14 -14
- package/dist/sync/filesystem.d.ts +2 -2
- package/dist/sync/indexeddb.d.ts +2 -2
- package/dist/sync.browser.mjs +44 -10
- package/dist/sync.d.ts +3 -3
- package/dist/sync.mjs +44 -10
- package/dist/{tasks-qrJojgST.d.ts → tasks-CoNjxbop.d.ts} +2 -2
- package/dist/{thread-O4SBJJJS.mjs → thread-YLJ3ZPQ3.mjs} +12 -12
- package/dist/{types-BZCGjfLn.d.ts → types-DPMjfOr_.d.ts} +1 -1
- package/dist/workers/entry.mjs +5 -5
- package/dist/{write-3FK7NG3Y.mjs → write-2OBJGLFS.mjs} +11 -10
- package/openapi.json +71 -0
- package/package.json +7 -7
- package/dist/chunk-BU4SAIC4.mjs +0 -196
- package/dist/react-native/chunks/chunk-DNXOMPAQ.mjs +0 -191
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { loadVectorField, VECTOR_FILE_ENVELOPE_VERSION, GRAPH_PART_ENVELOPE_VERSION } from './chunk-
|
|
1
|
+
import { loadVectorField, VECTOR_FILE_ENVELOPE_VERSION, GRAPH_PART_ENVELOPE_VERSION } from './chunk-P5LANSH6.mjs';
|
|
2
2
|
import { defaultQuantizationFor } from './chunk-MATMVH65.mjs';
|
|
3
3
|
import { DEFAULT_VECTOR_METRIC } from './chunk-VD7J552I.mjs';
|
|
4
4
|
import { gunzip, gzip } from './chunk-ZXNNR73R.mjs';
|
|
5
5
|
import { SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES } from './chunk-WZ7YV54N.mjs';
|
|
6
|
-
import { decodeSegmentManifest } from './chunk-
|
|
6
|
+
import { decodeSegmentManifest } from './chunk-CWS55TEX.mjs';
|
|
7
7
|
import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
8
|
-
import { readSegmentFile, STABLE_HEAD_ATTEMPTS } from './chunk-
|
|
9
|
-
import { manifestKey, segmentsPrefix, vectorFileKey, graphPartKey } from './chunk-
|
|
10
|
-
import { storedStateToWire, storedStateFromWire } from './chunk-
|
|
11
|
-
import { VERSION, rulesOfStoredSynonyms, engineVersionParts, packChecksummedEnvelope, packEnvelopeWithChecksum } from './chunk-
|
|
12
|
-
import { decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays } from './chunk-
|
|
8
|
+
import { readSegmentFile, STABLE_HEAD_ATTEMPTS } from './chunk-BNL5OPRV.mjs';
|
|
9
|
+
import { manifestKey, segmentsPrefix, vectorFileKey, graphPartKey } from './chunk-JTYPJF3T.mjs';
|
|
10
|
+
import { storedStateToWire, storedStateFromWire } from './chunk-ODYKO5TO.mjs';
|
|
11
|
+
import { VERSION, rulesOfStoredSynonyms, engineVersionParts, packChecksummedEnvelope, packEnvelopeWithChecksum } from './chunk-FEZVDOWX.mjs';
|
|
12
|
+
import { decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays } from './chunk-VZ2ONHEE.mjs';
|
|
13
13
|
import { readHeader, HEADER_SIZE, writeHeader, checksumOfChunks } from './chunk-3OH67G7R.mjs';
|
|
14
14
|
import { crc32 } from './chunk-7GXJUJ24.mjs';
|
|
15
|
-
import { isQuantizationMode, isStorageMode } from './chunk-
|
|
16
|
-
import { flattenSchema, requireValidFieldTypes } from './chunk-BU4SAIC4.mjs';
|
|
15
|
+
import { flattenSchema, requireValidFieldTypes, isQuantizationMode, isStorageMode } from './chunk-W5EB5XKI.mjs';
|
|
17
16
|
import { DEFAULT_BM25_B, DEFAULT_BM25_K1 } from './chunk-FB6463IN.mjs';
|
|
18
17
|
import { VECTOR_PATTERN } from './chunk-L5ORED7V.mjs';
|
|
19
18
|
import { VALID_HNSW_METRICS } from './chunk-U476IXKQ.mjs';
|
|
@@ -1289,23 +1288,50 @@ function removeFromPartition(manager, partitionId, docIds) {
|
|
|
1289
1288
|
}
|
|
1290
1289
|
}
|
|
1291
1290
|
async function attachPagedSegment(directory, ref, partitionId, manager, options) {
|
|
1292
|
-
const { checkPagedSegmentFully, createPagedFrozenSegment, openPagedSnapshot, pagedListingOf } = await import('./module-
|
|
1291
|
+
const { checkPagedSegmentFully, createPagedFrozenSegment, openPagedSnapshot, pagedListingOf } = await import('./module-JYHFTVPS.mjs');
|
|
1293
1292
|
if (options.decodesEveryDocument) await checkPagedSegmentFully(directory, ref);
|
|
1294
1293
|
const snapshot = openPagedSnapshot(await pagedListingOf(directory, ref));
|
|
1295
1294
|
requireAgreedSchema(options.schema, snapshot.schema, ref.key);
|
|
1296
1295
|
const segment = createPagedFrozenSegment(snapshot);
|
|
1297
1296
|
removeFromPartition(manager, partitionId, snapshot.tombstones);
|
|
1298
1297
|
options.writeRecords?.loadPagedSegment(manager.indexName, partitionId, segment);
|
|
1299
|
-
if (snapshot.documentCount > 0)
|
|
1300
|
-
|
|
1298
|
+
if (snapshot.documentCount > 0) {
|
|
1299
|
+
manager.attachFrozenSegment(partitionId, segment);
|
|
1300
|
+
return segment;
|
|
1301
|
+
}
|
|
1302
|
+
segment.paged?.close();
|
|
1303
|
+
return null;
|
|
1304
|
+
}
|
|
1305
|
+
function documentsHeldBefore(manager, partitionId) {
|
|
1306
|
+
const held = manager.partitionAt(partitionId);
|
|
1307
|
+
return held === void 0 ? [] : [...held.docIds()];
|
|
1308
|
+
}
|
|
1309
|
+
function removeDocumentsMissingFromLoadedSegments(manager, partitionId, heldBefore, loaded) {
|
|
1310
|
+
const absent = heldBefore.filter(
|
|
1311
|
+
(docId) => manager.partitionIdOf(docId) === partitionId && !loaded.some((segment) => segment.hasDocument(docId))
|
|
1312
|
+
);
|
|
1313
|
+
if (absent.length === 0) return;
|
|
1314
|
+
manager.beginBatchRemove();
|
|
1315
|
+
try {
|
|
1316
|
+
for (const docId of absent) manager.remove(docId);
|
|
1317
|
+
} finally {
|
|
1318
|
+
manager.endBatchRemove();
|
|
1319
|
+
}
|
|
1301
1320
|
}
|
|
1302
1321
|
async function loadPartitionSegments(store, partition, manager, options) {
|
|
1322
|
+
const heldBefore = documentsHeldBefore(manager, partition.partitionId);
|
|
1323
|
+
const loaded = await attachPartitionSegments(store, partition, manager, options);
|
|
1324
|
+
removeDocumentsMissingFromLoadedSegments(manager, partition.partitionId, heldBefore, loaded);
|
|
1325
|
+
}
|
|
1326
|
+
async function attachPartitionSegments(store, partition, manager, options) {
|
|
1327
|
+
const loaded = [];
|
|
1303
1328
|
const { directory } = store;
|
|
1304
1329
|
for (const ref of partition.segments) {
|
|
1305
1330
|
if (manager.config.textStorage === "disk" && directory !== void 0) {
|
|
1306
|
-
const { isPagedSegmentFile } = await import('./module-
|
|
1331
|
+
const { isPagedSegmentFile } = await import('./module-JYHFTVPS.mjs');
|
|
1307
1332
|
if (await isPagedSegmentFile(directory, ref.key)) {
|
|
1308
|
-
await attachPagedSegment(directory, ref, partition.partitionId, manager, options);
|
|
1333
|
+
const paged = await attachPagedSegment(directory, ref, partition.partitionId, manager, options);
|
|
1334
|
+
if (paged !== null) loaded.push(paged);
|
|
1309
1335
|
await yieldToEventLoop();
|
|
1310
1336
|
continue;
|
|
1311
1337
|
}
|
|
@@ -1316,9 +1342,13 @@ async function loadPartitionSegments(store, partition, manager, options) {
|
|
|
1316
1342
|
const segment = createSharedFrozenSegment(shareSegmentArrays(contents.arrays, manager.partialWordAnalysis));
|
|
1317
1343
|
removeWhatTheSegmentReplaces(manager, segment, contents);
|
|
1318
1344
|
options.writeRecords?.loadSegment(manager.indexName, partition.partitionId, segment, contents);
|
|
1319
|
-
if (contents.arrays.documentCount > 0)
|
|
1345
|
+
if (contents.arrays.documentCount > 0) {
|
|
1346
|
+
manager.attachFrozenSegment(partition.partitionId, segment);
|
|
1347
|
+
loaded.push(segment);
|
|
1348
|
+
}
|
|
1320
1349
|
await yieldToEventLoop();
|
|
1321
1350
|
}
|
|
1351
|
+
return loaded;
|
|
1322
1352
|
}
|
|
1323
1353
|
|
|
1324
1354
|
// src/persistence/durability/segment/load.ts
|
|
@@ -1359,7 +1389,7 @@ async function loadSegmentedCheckpoint(store, indexName, manifest, deps, decodes
|
|
|
1359
1389
|
(field) => deps.vectorIndexes.get(field.fieldPath)?.storage === "disk" && field.files.some((file) => file.headOffset !== void 0)
|
|
1360
1390
|
);
|
|
1361
1391
|
if (!decodesEveryDocument && directory !== void 0 && opensVectorsOnDemand) {
|
|
1362
|
-
const { startReadingOpeningSectionsAhead } = await import('./module-
|
|
1392
|
+
const { startReadingOpeningSectionsAhead } = await import('./module-JYHFTVPS.mjs');
|
|
1363
1393
|
await startReadingOpeningSectionsAhead(directory, manifest);
|
|
1364
1394
|
}
|
|
1365
1395
|
for (const partition of manifest.partitions) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sendError, RELAY_STREAM_CHUNKS_IN_FLIGHT } from './chunk-
|
|
1
|
+
import { sendError, RELAY_STREAM_CHUNKS_IN_FLIGHT } from './chunk-4LMSZAK6.mjs';
|
|
2
2
|
import { ServerErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
3
3
|
import { rm } from 'fs/promises';
|
|
4
4
|
import path from 'path';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { withRerankQueryText } from './chunk-KZ3NX2P7.mjs';
|
|
2
|
-
import { sendRelayed, parseJson, validateQuery, rejectInvalid, refuseRegex, respondJson, withServerRerankWindow, respondError, loadUWebSockets, childAppOf, createRouteRunner, corsHeaderReader, createSharedBodyBudget, createSharedRequestGate, registerFeedRoute, registerServerRoutes, closeWhenTheProcessExits, statusLine, sendError, REQUEST_THREAD_MOVE_AFTER_MS, MAX_LONG_QUERIES_IN_FLIGHT, createDocumentReadHandlers, SERVER_CAPABILITIES, versionReport, serverRoutes, validateSuggest, isMainFeedNote, SEARCH_CLOCK_SAMPLE_UNITS, awaitDepartureConfirmation, departureConfirmation, REQUEST_THREAD_DEPARTURE_DRAIN_MS, departureConfirmed } from './chunk-
|
|
2
|
+
import { sendRelayed, parseJson, validateQuery, rejectInvalid, refuseRegex, respondJson, withServerRerankWindow, respondError, loadUWebSockets, childAppOf, createRouteRunner, corsHeaderReader, createSharedBodyBudget, createSharedRequestGate, registerFeedRoute, registerServerRoutes, closeWhenTheProcessExits, statusLine, sendError, REQUEST_THREAD_MOVE_AFTER_MS, MAX_LONG_QUERIES_IN_FLIGHT, createDocumentReadHandlers, SERVER_CAPABILITIES, versionReport, serverRoutes, validateSuggest, isMainFeedNote, SEARCH_CLOCK_SAMPLE_UNITS, awaitDepartureConfirmation, departureConfirmation, REQUEST_THREAD_DEPARTURE_DRAIN_MS, departureConfirmed } from './chunk-4LMSZAK6.mjs';
|
|
3
3
|
import { SYNC_CLOSE_GOING_AWAY, encodeJson } from './chunk-KYYABCSW.mjs';
|
|
4
|
-
import { executeListDocuments, executeSuggest, executeQuery, lazyQueryBinding, executePreflight } from './chunk-
|
|
5
|
-
import { resolveProjection, projectionKeepsField, setNestedValue } from './chunk-
|
|
6
|
-
import { extractVectorFieldsFromSchema } from './chunk-
|
|
4
|
+
import { executeListDocuments, executeSuggest, executeQuery, lazyQueryBinding, executePreflight } from './chunk-OYABFKTW.mjs';
|
|
5
|
+
import { resolveProjection, projectionKeepsField, setNestedValue } from './chunk-PIH5SJ4N.mjs';
|
|
6
|
+
import { extractVectorFieldsFromSchema } from './chunk-W5EB5XKI.mjs';
|
|
7
7
|
import { holdsQuotedText } from './chunk-FB6463IN.mjs';
|
|
8
8
|
import { ServerErrorCodes, ErrorCodes, NarsilError, isNarsilError } from './chunk-MP7ABPTD.mjs';
|
|
9
9
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { P as PartitionConfig, B as BM25Params, A as AnyDocument, a as InsertOptions, W as WriteOptions } from './schema-Jwt928nJ.js';
|
|
2
|
-
import { e as SnapshotOptions, V as VectorMaintenanceResult, B as BatchResult, L as ListParams, l as ListResult, I as IndexInfo, p as IndexStats, P as PartitionStatsResult, Q as QueryParams,
|
|
2
|
+
import { e as SnapshotOptions, V as VectorMaintenanceResult, B as BatchResult, L as ListParams, l as ListResult, I as IndexInfo, p as IndexStats, P as PartitionStatsResult, Q as QueryParams, j as QueryResult, o as PreflightResult, m as SuggestParams, n as SuggestResult, g as SyncStatus, f as SyncSetting } from './engine-CkPn2PWE.js';
|
|
3
3
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
4
|
-
import { f as TaskRecord, a as ChangeAnalysisBody, M as MemoryStatsResponse, m as CreateBackupBody, R as RestoreBackupBody, c as ImportResult, H as HttpIndexConfig, d as TaskListQuery, T as TaskListPage } from './tasks-
|
|
5
|
-
import { B as BackupListing } from './config-
|
|
4
|
+
import { f as TaskRecord, a as ChangeAnalysisBody, M as MemoryStatsResponse, m as CreateBackupBody, R as RestoreBackupBody, c as ImportResult, H as HttpIndexConfig, d as TaskListQuery, T as TaskListPage } from './tasks-CoNjxbop.js';
|
|
5
|
+
import { B as BackupListing } from './config-B4v_Htpu.js';
|
|
6
6
|
import { d as QuerySuggestionsSetting, e as QuerySuggestionsStatus, f as RecordQueryResult, c as QuerySuggestionsPreview, M as ManualQuerySuggestion } from './query-suggestions-CBYkrQ5T.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1087,6 +1087,18 @@ interface SyncSnapshotDownload {
|
|
|
1087
1087
|
* @public
|
|
1088
1088
|
*/
|
|
1089
1089
|
interface SyncSettingOperations {
|
|
1090
|
+
/**
|
|
1091
|
+
* Returns the device sync state of an index, as {@link SyncOperations.getSync}
|
|
1092
|
+
* does on the engine.
|
|
1093
|
+
*
|
|
1094
|
+
* @param indexName - The server reports the state of this index.
|
|
1095
|
+
* @param options - This sets the signal, the deadline, and the headers for
|
|
1096
|
+
* this request.
|
|
1097
|
+
* @returns The setting, whether a device has asked for the published
|
|
1098
|
+
* snapshot, and the epoch.
|
|
1099
|
+
* @throws A `NarsilError` with `INDEX_NOT_FOUND` when no index has that name.
|
|
1100
|
+
*/
|
|
1101
|
+
getSync(indexName: string, options?: RequestOptions): Promise<SyncStatus>;
|
|
1090
1102
|
/**
|
|
1091
1103
|
* Replaces the device sync setting of an index. Turning sync on gives the
|
|
1092
1104
|
* index a new epoch, and turning it off deletes the published snapshot and
|
package/dist/client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { B as BackupListing, a as BackupSummary, D as DamagedBackup } from './config-
|
|
2
|
-
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, e as SnapshotOptions, f as SyncSetting, i as isNarsilError } from './engine-
|
|
3
|
-
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
4
|
-
export { B as BackupListResponse, C as CapabilitiesResponse, a as ChangeAnalysisBody, b as CreateIndexEmbedding, E as ErrorDetail, H as HttpIndexConfig, I as ImportError, c as ImportResult, M as MemoryStatsResponse, R as RestoreBackupBody, T as TaskListPage, d as TaskListQuery, e as TaskProgress, f as TaskRecord, g as TaskStatus, h as TaskStepProgress, i as TaskType } from './tasks-
|
|
1
|
+
export { B as BackupListing, a as BackupSummary, D as DamagedBackup } from './config-B4v_Htpu.js';
|
|
2
|
+
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, e as SnapshotOptions, f as SyncSetting, g as SyncStatus, i as isNarsilError } from './engine-CkPn2PWE.js';
|
|
3
|
+
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-D3AoBJoF.js';
|
|
4
|
+
export { B as BackupListResponse, C as CapabilitiesResponse, a as ChangeAnalysisBody, b as CreateIndexEmbedding, E as ErrorDetail, H as HttpIndexConfig, I as ImportError, c as ImportResult, M as MemoryStatsResponse, R as RestoreBackupBody, T as TaskListPage, d as TaskListQuery, e as TaskProgress, f as TaskRecord, g as TaskStatus, h as TaskStepProgress, i as TaskType } from './tasks-CoNjxbop.js';
|
|
5
5
|
export { M as ManualQuerySuggestion, Q as QuerySuggestionPreviewEntry, a as QuerySuggestionsBuild, b as QuerySuggestionsBuildTrigger, c as QuerySuggestionsPreview, d as QuerySuggestionsSetting, e as QuerySuggestionsStatus, R as RecordQueryOutcome, f as RecordQueryResult } from './query-suggestions-CBYkrQ5T.js';
|
|
6
|
-
export { A as AdminOperations, B as BackupOperations, a as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, b as IndexOperations, N as NarsilClient, c as NarsilClientOptions, P as PutResult, Q as QuerySuggestionOperations, R as RequestOptions, S as SearchOperations, d as ServerOperations, e as ServerVersion, f as SyncSettingOperations, g as SyncSnapshotDownload, h as SyncSnapshotResume, T as TaskOperations, W as WaitForTaskOptions, i as createNarsilClient } from './client-
|
|
7
|
-
import './config-
|
|
6
|
+
export { A as AdminOperations, B as BackupOperations, a as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, b as IndexOperations, N as NarsilClient, c as NarsilClientOptions, P as PutResult, Q as QuerySuggestionOperations, R as RequestOptions, S as SearchOperations, d as ServerOperations, e as ServerVersion, f as SyncSettingOperations, g as SyncSnapshotDownload, h as SyncSnapshotResume, T as TaskOperations, W as WaitForTaskOptions, i as createNarsilClient } from './client-kqSMevVi.js';
|
|
7
|
+
import './config-CTP01fns.js';
|
|
8
8
|
import './adapters-pljAqmrC.js';
|
|
9
9
|
import './schema-Jwt928nJ.js';
|
|
10
10
|
import './synonyms-CpOAHPa-.js';
|
package/dist/client.mjs
CHANGED
|
@@ -1097,6 +1097,10 @@ function invalidDownload(message, path) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
function createSyncSettingOperations(transport) {
|
|
1099
1099
|
return {
|
|
1100
|
+
async getSync(indexName, options) {
|
|
1101
|
+
const path = `${indexPath(indexName)}/sync`;
|
|
1102
|
+
return readBody(await transport.json({ method: "GET", path, options }), path);
|
|
1103
|
+
},
|
|
1100
1104
|
async updateSync(indexName, setting, options) {
|
|
1101
1105
|
const path = `${indexPath(indexName)}/sync`;
|
|
1102
1106
|
await transport.json({ method: "PUT", path, body: encodeJson(setting), contentType: "application/json", options });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-
|
|
2
|
-
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-
|
|
1
|
+
import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-RWURUDSP.mjs';
|
|
2
|
+
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-RWURUDSP.mjs';
|
|
3
3
|
import './chunk-6RC4K46J.mjs';
|
|
4
4
|
import './chunk-TQXHPFWT.mjs';
|
|
5
5
|
import { loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES } from './chunk-WZ7YV54N.mjs';
|
|
@@ -8,20 +8,21 @@ import './chunk-FOCV4CBZ.mjs';
|
|
|
8
8
|
import { magnitude, defaultRescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, scalarQueryProducts, osqEstimate, osqDistance, toDistance } from './chunk-5VV4R6P7.mjs';
|
|
9
9
|
export { createHNSWIndex, osqBitsOf } from './chunk-5VV4R6P7.mjs';
|
|
10
10
|
import { stageQueryLevels, readTrailer } from './chunk-37CD3OKS.mjs';
|
|
11
|
-
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, COLD_WALK_NODES_READ_AHEAD } from './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, COLD_WALK_NODES_READ_AHEAD } from './chunk-BNL5OPRV.mjs';
|
|
12
|
+
import './chunk-CQZXZ75V.mjs';
|
|
13
13
|
import './chunk-UHICS3JI.mjs';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-KCQYFO4K.mjs';
|
|
15
|
+
import './chunk-JTYPJF3T.mjs';
|
|
15
16
|
import './chunk-QDZJM7NI.mjs';
|
|
16
|
-
import { yieldToEventLoop } from './chunk-
|
|
17
|
-
import './chunk-
|
|
17
|
+
import { yieldToEventLoop } from './chunk-FEZVDOWX.mjs';
|
|
18
|
+
import './chunk-OYABFKTW.mjs';
|
|
18
19
|
import './chunk-HJSN7UYG.mjs';
|
|
19
20
|
import './chunk-LHKOSI2J.mjs';
|
|
20
21
|
import './chunk-XIHUI4KB.mjs';
|
|
21
22
|
import './chunk-3MXV3VHR.mjs';
|
|
22
23
|
import './chunk-EEBCDP36.mjs';
|
|
23
|
-
import './chunk-
|
|
24
|
-
import './chunk-
|
|
24
|
+
import './chunk-VZ2ONHEE.mjs';
|
|
25
|
+
import './chunk-PIH5SJ4N.mjs';
|
|
25
26
|
import './chunk-GH4WQ22V.mjs';
|
|
26
27
|
import { HEADER_SIZE, readHeader } from './chunk-3OH67G7R.mjs';
|
|
27
28
|
import './chunk-IPN7S4KX.mjs';
|
|
@@ -30,10 +31,10 @@ import { crc32 } from './chunk-7GXJUJ24.mjs';
|
|
|
30
31
|
import './chunk-Q2UL2TPC.mjs';
|
|
31
32
|
import './chunk-CITFCZKF.mjs';
|
|
32
33
|
import './chunk-RLOES5SX.mjs';
|
|
33
|
-
import './chunk-
|
|
34
|
-
import './chunk-SQJWAIF4.mjs';
|
|
34
|
+
import './chunk-PV2CG7EJ.mjs';
|
|
35
35
|
import './chunk-FQBFZAWG.mjs';
|
|
36
|
-
import './chunk-
|
|
36
|
+
import './chunk-W5EB5XKI.mjs';
|
|
37
|
+
import './chunk-SQJWAIF4.mjs';
|
|
37
38
|
import './chunk-GES7U2PM.mjs';
|
|
38
39
|
import './chunk-I54T6CQP.mjs';
|
|
39
40
|
import './chunk-I5B7RXU7.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as NarsilConfig } from './config-
|
|
1
|
+
import { N as NarsilConfig } from './config-CTP01fns.js';
|
|
2
2
|
import { P as PersistenceAdapter } from './adapters-pljAqmrC.js';
|
|
3
3
|
import { A as AllocationConstraints, a as AllocationTable, N as NodeRole, b as NodeRegistration, C as ClusterCoordinator, c as NodeCapacity } from './index-C4AmUnl1.js';
|
|
4
4
|
import { N as NodeTransport } from './types-DvncmvuQ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as PersistenceAdapter, I as InvalidationAdapter, E as EmbeddingAdapter, R as RerankAdapter } from './adapters-pljAqmrC.js';
|
|
2
|
-
import { Q as QueryParams,
|
|
2
|
+
import { Q as QueryParams, j as QueryResult, k as NarsilEventHandlers } from './engine-CkPn2PWE.js';
|
|
3
3
|
import { I as IndexConfig, A as AnyDocument } from './schema-Jwt928nJ.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { createDirectExecutor } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { createDirectExecutor } from './chunk-VZ2ONHEE.mjs';
|
|
2
|
+
import './chunk-PIH5SJ4N.mjs';
|
|
3
3
|
import './chunk-IPN7S4KX.mjs';
|
|
4
4
|
import './chunk-KAKQ74LS.mjs';
|
|
5
5
|
import './chunk-Q2UL2TPC.mjs';
|
|
6
6
|
import './chunk-CITFCZKF.mjs';
|
|
7
7
|
import './chunk-RLOES5SX.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-SQJWAIF4.mjs';
|
|
8
|
+
import './chunk-PV2CG7EJ.mjs';
|
|
10
9
|
import './chunk-FQBFZAWG.mjs';
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-W5EB5XKI.mjs';
|
|
11
|
+
import './chunk-SQJWAIF4.mjs';
|
|
12
12
|
import './chunk-GES7U2PM.mjs';
|
|
13
13
|
import './chunk-I54T6CQP.mjs';
|
|
14
14
|
import './chunk-I5B7RXU7.mjs';
|
package/dist/distribution.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as CreateIndexOptions, C as ClusterNamespace, d as ClusterNodeConfig } from './config-
|
|
2
|
-
export { B as BackupListing, e as BackupOperationOptions, f as BackupProgress, a as BackupSummary, g as ClusterBackupConfig, h as ClusterControllerConfig, i as ClusterHealth, j as ClusterHealthStatus, k as ClusterMemoryConfig, l as ClusterMetrics, b as ClusterNodeInfo, m as ClusterQueryConfig, n as CommitPointFigure, o as CoordinatorRequestFigure, p as CreateBackupOptions, D as DamagedBackup, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, q as ReplicationConfig, r as RestoreBackupOptions, V as VectorRebuildWaitFigure } from './config-
|
|
1
|
+
import { c as CreateIndexOptions, C as ClusterNamespace, d as ClusterNodeConfig } from './config-B4v_Htpu.js';
|
|
2
|
+
export { B as BackupListing, e as BackupOperationOptions, f as BackupProgress, a as BackupSummary, g as ClusterBackupConfig, h as ClusterControllerConfig, i as ClusterHealth, j as ClusterHealthStatus, k as ClusterMemoryConfig, l as ClusterMetrics, b as ClusterNodeInfo, m as ClusterQueryConfig, n as CommitPointFigure, o as CoordinatorRequestFigure, p as CreateBackupOptions, D as DamagedBackup, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, q as ReplicationConfig, r as RestoreBackupOptions, V as VectorRebuildWaitFigure } from './config-B4v_Htpu.js';
|
|
3
3
|
import { R as RerankAdapter } from './adapters-pljAqmrC.js';
|
|
4
|
-
import { f as SyncSetting,
|
|
4
|
+
import { f as SyncSetting, g as SyncStatus, B as BatchResult, L as ListParams, l as ListResult, m as SuggestParams, n as SuggestResult, Q as QueryParams, o as PreflightResult, I as IndexInfo, A as AnalysisChange, p as IndexStats, P as PartitionStatsResult, M as MemoryStats, q as NarsilEventMap, j as QueryResult, h as Narsil } from './engine-CkPn2PWE.js';
|
|
5
5
|
import { B as BM25Params, I as IndexConfig, A as AnyDocument, a as InsertOptions } from './schema-Jwt928nJ.js';
|
|
6
6
|
import { c as NodeCapacity, N as NodeRole } from './index-C4AmUnl1.js';
|
|
7
7
|
export { A as AllocationConstraints, e as AllocationEvent, a as AllocationTable, C as ClusterCoordinator, I as IndexMetadataEvent, f as IndexMetadataWatch, g as IndexPartitionBytes, h as NodeEvent, d as NodeMemoryReport, b as NodeRegistration, P as PartitionAssignment, i as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-C4AmUnl1.js';
|
|
8
8
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
9
9
|
export { L as ListenHandler, N as NodeTransport, R as RespondFn, T as TransportConfig, a as TransportMessage } from './types-DvncmvuQ.js';
|
|
10
|
-
import './config-
|
|
10
|
+
import './config-CTP01fns.js';
|
|
11
11
|
import './query-suggestions-CBYkrQ5T.js';
|
|
12
12
|
|
|
13
13
|
/**
|
package/dist/distribution.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-
|
|
2
|
-
import { closePartitionWriter, replaySyncedWal } from './chunk-
|
|
3
|
-
import { archiveStream, buildArchiveFromMemory, memoryCheckpointStore, writeArchiveFile } from './chunk-
|
|
4
|
-
import { indexMetadataOf, loadPartitionSegments, readSegmentManifest } from './chunk-
|
|
5
|
-
import { readVectorFile } from './chunk-
|
|
6
|
-
import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, resolveAnalysisTarget, namedSettingsOf, holdsSettings } from './chunk-
|
|
7
|
-
import { requireRestoreMemory, archiveFootprint, storedBytesOfSegments } from './chunk-
|
|
1
|
+
import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-24FNVRKB.mjs';
|
|
2
|
+
import { applyDeleteEntry, applyIndexEntry, closePartitionWriter, validateReplicationEntry, replaySyncedWal } from './chunk-PSZI4O24.mjs';
|
|
3
|
+
import { archiveStream, buildArchiveFromMemory, memoryCheckpointStore, writeArchiveFile } from './chunk-RIHIVFIQ.mjs';
|
|
4
|
+
import { indexMetadataOf, loadPartitionSegments, readSegmentManifest } from './chunk-W7OSSKH5.mjs';
|
|
5
|
+
import { readVectorFile } from './chunk-P5LANSH6.mjs';
|
|
6
|
+
import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, resolveAnalysisTarget, namedSettingsOf, holdsSettings } from './chunk-UJDJB3NE.mjs';
|
|
7
|
+
import { requireRestoreMemory, archiveFootprint, storedBytesOfSegments } from './chunk-RCX4WNLC.mjs';
|
|
8
8
|
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-6OEGXLBX.mjs';
|
|
9
9
|
import { addBackgroundAdmission, workWaitingForMemory } from './chunk-PELHVTO7.mjs';
|
|
10
10
|
import './chunk-FCJ553HS.mjs';
|
|
@@ -13,54 +13,55 @@ import './chunk-VD7J552I.mjs';
|
|
|
13
13
|
import './chunk-ZXNNR73R.mjs';
|
|
14
14
|
import './chunk-WZ7YV54N.mjs';
|
|
15
15
|
import { MAX_MESSAGE_SIZE_BYTES } from './chunk-UNEEFTEU.mjs';
|
|
16
|
-
import { bindEngineWriteBlock, bindIndexReads, syncServingSourceOf, bindSyncServing, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, bindWriteBlockLookup, backupKeys, validateBackupName, storedFilesOf, BACKUP_MANIFEST_READS_AT_ONCE, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, SYNC_BACKUP_TAKER, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, readRestorePlacement, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, SYNC_BACKUPS_KEPT, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-
|
|
17
|
-
import { MAX_WAIT_FOR_ACTIVE_REPLICAS, MIN_CONTROLLER_LEASE_TTL_MS, MAX_NODE_LEFT_DELAY_MS, DEFAULT_MAX_PER_SOURCE_SNAPSHOTS, DEFAULT_MAX_STREAMS_PER_INDEX, DEFAULT_CAPACITY, CATCH_UP_TICK_MS, MEMORY_SAMPLE_INTERVAL_MS, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, SETTINGS_CONTENTION_REASON, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, DROP_ACKNOWLEDGE_POLL_INTERVAL_MS, COORDINATOR_REQUEST_BUCKET_BOUNDS_SECONDS, COPY_FAILURE_ATTEMPTS, SEARCH_CONTEXT_REAPER_INTERVAL_MS, DECOMMISSION_RECHECK_INTERVAL_MS, refuseEncodeWithoutRoom, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, MAX_SOURCE_ID_LENGTH, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, ADMISSION_TIMEOUT_MS, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, FETCH_GROUP_DOCUMENT_IDS, COPY_FAILURE_RETRY_DELAY_MS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-
|
|
18
|
-
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-
|
|
19
|
-
import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, suggestionStateOfSettings, indexConfigKey, metadataWithSync, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, isRecord2, decodeIndexSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState } from './chunk-
|
|
16
|
+
import { bindEngineWriteBlock, bindIndexReads, syncServingSourceOf, bindSyncServing, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, bindWriteBlockLookup, backupKeys, validateBackupName, storedFilesOf, BACKUP_MANIFEST_READS_AT_ONCE, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, SYNC_BACKUP_TAKER, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, readRestorePlacement, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, SYNC_BACKUPS_KEPT, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-OQLD2BSW.mjs';
|
|
17
|
+
import { MAX_WAIT_FOR_ACTIVE_REPLICAS, MIN_CONTROLLER_LEASE_TTL_MS, MAX_NODE_LEFT_DELAY_MS, DEFAULT_MAX_PER_SOURCE_SNAPSHOTS, DEFAULT_MAX_STREAMS_PER_INDEX, DEFAULT_CAPACITY, CATCH_UP_TICK_MS, MEMORY_SAMPLE_INTERVAL_MS, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, SETTINGS_CONTENTION_REASON, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, DROP_ACKNOWLEDGE_POLL_INTERVAL_MS, COORDINATOR_REQUEST_BUCKET_BOUNDS_SECONDS, COPY_FAILURE_ATTEMPTS, SEARCH_CONTEXT_REAPER_INTERVAL_MS, DECOMMISSION_RECHECK_INTERVAL_MS, refuseEncodeWithoutRoom, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, MAX_SOURCE_ID_LENGTH, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, ADMISSION_TIMEOUT_MS, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, FETCH_GROUP_DOCUMENT_IDS, COPY_FAILURE_RETRY_DELAY_MS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-IIRIG7H5.mjs';
|
|
18
|
+
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-IIRIG7H5.mjs';
|
|
19
|
+
import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, suggestionStateOfSettings, indexConfigKey, metadataWithSync, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, isRecord2, decodeIndexSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState } from './chunk-4ZTHGTVX.mjs';
|
|
20
20
|
import { restoredConfigFields, restoredEmbedding } from './chunk-INJYO3BU.mjs';
|
|
21
|
-
import { estimatedArchiveBytes, archiveLayout } from './chunk-
|
|
21
|
+
import { estimatedArchiveBytes, archiveLayout } from './chunk-JSV6OQ4C.mjs';
|
|
22
22
|
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS } from './chunk-ZYAY26KG.mjs';
|
|
23
23
|
import { requireSyncSetting, requireNoQuerySuggestions } from './chunk-QJVOLKU6.mjs';
|
|
24
24
|
import { createByteReader } from './chunk-CZQ33DLW.mjs';
|
|
25
|
-
import { readSnapshotArchive, sourceIndexNameOf } from './chunk-
|
|
26
|
-
import { openManifestPayload, listedKeysOf, decodeManifestPayload } from './chunk-
|
|
25
|
+
import { readSnapshotArchive, sourceIndexNameOf } from './chunk-MW6BR4QP.mjs';
|
|
26
|
+
import { openManifestPayload, listedKeysOf, decodeManifestPayload } from './chunk-CWS55TEX.mjs';
|
|
27
27
|
import { decodeVectorFilePayload, bytesToVectors, isDead } from './chunk-K4ZIGL2O.mjs';
|
|
28
28
|
import { newSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
29
29
|
import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
|
|
30
30
|
import './chunk-5VV4R6P7.mjs';
|
|
31
31
|
import './chunk-37CD3OKS.mjs';
|
|
32
|
-
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, createInsyncAddMessage, validateAckPayload, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-
|
|
33
|
-
import { encodeSegmentManifest } from './chunk-
|
|
34
|
-
import './chunk-
|
|
35
|
-
import
|
|
32
|
+
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, createInsyncAddMessage, validateAckPayload, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-GPWMUPCA.mjs';
|
|
33
|
+
import { encodeSegmentManifest } from './chunk-C7XQYG6U.mjs';
|
|
34
|
+
import './chunk-BNL5OPRV.mjs';
|
|
35
|
+
import './chunk-CQZXZ75V.mjs';
|
|
36
36
|
import { directoryCheckpointStore, readListedFile } from './chunk-UHICS3JI.mjs';
|
|
37
37
|
import { TransportErrorCodes, ClusterMessageTypes, ReplicationMessageTypes, SuggestionMessageTypes, SyncMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-5FLRXF73.mjs';
|
|
38
38
|
import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-JDDXV6UF.mjs';
|
|
39
|
-
import
|
|
39
|
+
import './chunk-KCQYFO4K.mjs';
|
|
40
|
+
import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-JTYPJF3T.mjs';
|
|
40
41
|
import { getPath, getFs } from './chunk-HLPRHOSO.mjs';
|
|
41
42
|
import './chunk-QDZJM7NI.mjs';
|
|
42
|
-
import { boundQuerySuggestionsOf, bindQuerySuggestions, querySuggestionsOf } from './chunk-
|
|
43
|
-
import { keyBytesOf, QuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-
|
|
43
|
+
import { boundQuerySuggestionsOf, bindQuerySuggestions, querySuggestionsOf } from './chunk-SOI6LTHM.mjs';
|
|
44
|
+
import { keyBytesOf, QuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-EYD7K3H6.mjs';
|
|
44
45
|
import './chunk-LNGE7SLY.mjs';
|
|
45
|
-
import { RestoredHistory } from './chunk-
|
|
46
|
+
import { RestoredHistory } from './chunk-2ROUFMQX.mjs';
|
|
46
47
|
import { historyFilesOf, removeHistoryFolder, historyFolderOf, listHistoryFolder, historyFileOf, restoreStagingPrefix } from './chunk-KP7TYHWT.mjs';
|
|
47
|
-
import { storedStateOf } from './chunk-
|
|
48
|
-
import './chunk-
|
|
48
|
+
import { storedStateOf } from './chunk-ODYKO5TO.mjs';
|
|
49
|
+
import './chunk-UD5HIS4U.mjs';
|
|
49
50
|
import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
|
|
50
51
|
import './chunk-BEZH7VEH.mjs';
|
|
51
|
-
import './chunk-
|
|
52
|
-
import './chunk-
|
|
52
|
+
import './chunk-FUD5XSZ5.mjs';
|
|
53
|
+
import './chunk-PWGYQXML.mjs';
|
|
53
54
|
import './chunk-GQPTDQCL.mjs';
|
|
54
55
|
import { QUERY_HISTORY_FOLDER, RESTORE_STAGING_INFIX, COUNTS_STREAM_CHUNK_BYTES, BUILD_WRITE_BATCH, MAX_COUNTS_STREAM_KEY_BYTES, MAX_HISTORY_FILE_BYTES } from './chunk-5YNRKI2C.mjs';
|
|
55
|
-
import { bindRerankWindowSource, rerankWindowCapOf, validateMemoryFractions, requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, emitEngineEvent, applyStoredIndexBm25, createEngineIndex, encodeIndexConfiguration, memoryFractionsOf, createMemoryMonitor, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, storedArrayPositionGap, emptySerializablePartition, arrayPositionsAreStale, yieldToEventLoop, packChecksummedEnvelope, providedDocId, engineCoreOf } from './chunk-
|
|
56
|
-
import { runtimeHost, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, readRecentMemoryFigures, validateBM25Shape, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, now, listBindingOf, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-
|
|
56
|
+
import { bindRerankWindowSource, rerankWindowCapOf, validateMemoryFractions, requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, emitEngineEvent, applyStoredIndexBm25, createEngineIndex, encodeIndexConfiguration, memoryFractionsOf, createMemoryMonitor, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, storedArrayPositionGap, emptySerializablePartition, arrayPositionsAreStale, yieldToEventLoop, packChecksummedEnvelope, providedDocId, engineCoreOf } from './chunk-FEZVDOWX.mjs';
|
|
57
|
+
import { runtimeHost, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, readRecentMemoryFigures, validateBM25Shape, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, now, listBindingOf, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-OYABFKTW.mjs';
|
|
57
58
|
import './chunk-HJSN7UYG.mjs';
|
|
58
59
|
import './chunk-LHKOSI2J.mjs';
|
|
59
60
|
import { collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal, onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes } from './chunk-XIHUI4KB.mjs';
|
|
60
61
|
import './chunk-3MXV3VHR.mjs';
|
|
61
62
|
import { BATCH_CHUNK_SIZE, MAX_DOC_ID_LENGTH, DEFAULT_SUGGEST_LIMIT, MAX_SUGGEST_LIMIT, MAX_SUGGEST_SCATTER_LIMIT, SUGGEST_OVERSAMPLE_FACTOR, SUGGEST_OVERSAMPLE_PADDING } from './chunk-EEBCDP36.mjs';
|
|
62
|
-
import { synonymModule, generateId } from './chunk-
|
|
63
|
-
import { oversampledShardSize, normalizeSort, sortModesOf, readSortValues, resolveProjection, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, requireWithinResultWindow, sortSignatureEntry, mergePartitionStats } from './chunk-
|
|
63
|
+
import { synonymModule, generateId } from './chunk-VZ2ONHEE.mjs';
|
|
64
|
+
import { oversampledShardSize, normalizeSort, sortModesOf, readSortValues, resolveProjection, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, requireWithinResultWindow, sortSignatureEntry, mergePartitionStats } from './chunk-PIH5SJ4N.mjs';
|
|
64
65
|
import { decodeIndexConfiguration, INDEX_CONFIGURATION_ENVELOPE_VERSION } from './chunk-GH4WQ22V.mjs';
|
|
65
66
|
import { openChecksummedEnvelope } from './chunk-3OH67G7R.mjs';
|
|
66
67
|
import './chunk-IPN7S4KX.mjs';
|
|
@@ -69,10 +70,10 @@ import { crc32Init, crc32Final, crc32Update } from './chunk-7GXJUJ24.mjs';
|
|
|
69
70
|
import './chunk-Q2UL2TPC.mjs';
|
|
70
71
|
import { MAX_FILTER_DEPTH, MAX_FILTER_TESTS, isPatternTolerance, MAX_FILTER_ARRAY_SIZE } from './chunk-CITFCZKF.mjs';
|
|
71
72
|
import './chunk-RLOES5SX.mjs';
|
|
72
|
-
import
|
|
73
|
-
import { MIN_POLYGON_POINTS, MAX_LATITUDE_DEGREES, MAX_LONGITUDE_DEGREES } from './chunk-SQJWAIF4.mjs';
|
|
73
|
+
import './chunk-PV2CG7EJ.mjs';
|
|
74
74
|
import { MAX_SORT_FIELDS, MAX_CURSOR_LENGTH, MAX_TOLERANCE, MAX_PREFIX_LENGTH, RESULT_WINDOW, MIN_HYBRID_DEPTH, MAX_HYBRID_DEPTH, DEFAULT_PAGE_SIZE, HYBRID_RESCORE_WINDOW } from './chunk-FQBFZAWG.mjs';
|
|
75
|
-
import { encodeDocument, validateSchema, requireCreatableSchema, encodeDocumentReply, schemaFieldsOf } from './chunk-
|
|
75
|
+
import { encodeDocument, validateSchema, requireCreatableSchema, encodeDocumentReply, schemaFieldsOf, getNestedValue, isLatitude, isLongitude } from './chunk-W5EB5XKI.mjs';
|
|
76
|
+
import { MIN_POLYGON_POINTS, MAX_LATITUDE_DEGREES, MAX_LONGITUDE_DEGREES } from './chunk-SQJWAIF4.mjs';
|
|
76
77
|
import './chunk-GES7U2PM.mjs';
|
|
77
78
|
import './chunk-I54T6CQP.mjs';
|
|
78
79
|
import { configOfNamedSettings } from './chunk-I5B7RXU7.mjs';
|
|
@@ -14561,7 +14562,7 @@ async function openOnce(core, indexName, partitionId) {
|
|
|
14561
14562
|
if (directory === void 0) throw durabilityRequired(indexName, partitionId);
|
|
14562
14563
|
if ((checkpoint.manifest.analysisGeneration ?? 0) !== entry.analysisGeneration) return null;
|
|
14563
14564
|
const config = await encodeIndexConfiguration(entry);
|
|
14564
|
-
const { openPagedPartitionArchive } = await import('./paged-partition-archive-
|
|
14565
|
+
const { openPagedPartitionArchive } = await import('./paged-partition-archive-RLRGOXDX.mjs');
|
|
14565
14566
|
const archive = await openPagedPartitionArchive(checkpoint, directory, indexName, partitionId, manager);
|
|
14566
14567
|
handedOver = true;
|
|
14567
14568
|
try {
|
|
@@ -15037,6 +15038,27 @@ async function seedReopenedPrimaryLogs(input) {
|
|
|
15037
15038
|
);
|
|
15038
15039
|
}
|
|
15039
15040
|
}
|
|
15041
|
+
function requestIdOf(kind, entry) {
|
|
15042
|
+
return `replicate-entry-${kind}-${entry.indexName}-${entry.partitionId}-${entry.seqNo}`;
|
|
15043
|
+
}
|
|
15044
|
+
function applyIndexEntryToCopies(core, manager, entry, vectorFieldPaths, vecIndexes) {
|
|
15045
|
+
const { indexName, documentId: docId } = entry;
|
|
15046
|
+
const held = manager.has(docId);
|
|
15047
|
+
const removedSpellings = held && entry.document !== null ? manager.removedSpellingsOf(docId) : void 0;
|
|
15048
|
+
try {
|
|
15049
|
+
applyIndexEntry(entry, manager, vectorFieldPaths, vecIndexes);
|
|
15050
|
+
} catch (err) {
|
|
15051
|
+
if (held && !manager.has(docId)) {
|
|
15052
|
+
core.orchestrator.recordMainWrite({ type: "remove", indexName, docId, requestId: requestIdOf("remove", entry) });
|
|
15053
|
+
}
|
|
15054
|
+
throw err;
|
|
15055
|
+
}
|
|
15056
|
+
const document = entry.document === null ? void 0 : manager.getRef(docId);
|
|
15057
|
+
if (document === void 0) return;
|
|
15058
|
+
core.orchestrator.recordMainWrite(
|
|
15059
|
+
held ? { type: "update", indexName, docId, document, removedSpellings, requestId: requestIdOf("update", entry) } : { type: "insert", indexName, docId, document, requestId: requestIdOf("insert", entry) }
|
|
15060
|
+
);
|
|
15061
|
+
}
|
|
15040
15062
|
async function applyLocalReplicationEntry(core, entry, writeRecords) {
|
|
15041
15063
|
const { applied, error } = await applyLocalReplicationEntries(core, [entry], writeRecords);
|
|
15042
15064
|
if (applied === 0) throw error;
|
|
@@ -15050,17 +15072,25 @@ async function applyLocalReplicationEntries(core, entries, writeRecords) {
|
|
|
15050
15072
|
const indexEntry = core.requireIndex(first.indexName);
|
|
15051
15073
|
const manager = core.requireManager(first.indexName);
|
|
15052
15074
|
const vecIndexes = manager.getVectorIndexes();
|
|
15053
|
-
const removedSpellings = [];
|
|
15054
15075
|
let stopped = null;
|
|
15055
15076
|
const applyAt = (position) => {
|
|
15056
15077
|
if (stopped !== null) throw stopped;
|
|
15057
15078
|
const entry = entries[position];
|
|
15058
15079
|
try {
|
|
15059
15080
|
if (entry.operation === "INDEX") {
|
|
15060
|
-
|
|
15081
|
+
applyIndexEntryToCopies(core, manager, entry, indexEntry.vectorFieldPaths, vecIndexes);
|
|
15061
15082
|
} else {
|
|
15062
|
-
|
|
15063
|
-
|
|
15083
|
+
const held = manager.has(entry.documentId);
|
|
15084
|
+
const removedSpellings = manager.removedSpellingsOf(entry.documentId);
|
|
15085
|
+
applyDeleteEntry(entry, manager, vecIndexes, removedSpellings);
|
|
15086
|
+
if (held)
|
|
15087
|
+
core.orchestrator.recordMainWrite({
|
|
15088
|
+
type: "remove",
|
|
15089
|
+
indexName: entry.indexName,
|
|
15090
|
+
docId: entry.documentId,
|
|
15091
|
+
requestId: requestIdOf("remove", entry),
|
|
15092
|
+
removedSpellings
|
|
15093
|
+
});
|
|
15064
15094
|
}
|
|
15065
15095
|
writeRecords.applied(entry);
|
|
15066
15096
|
} catch (err) {
|
|
@@ -15097,35 +15127,13 @@ async function applyLocalReplicationEntries(core, entries, writeRecords) {
|
|
|
15097
15127
|
applied++;
|
|
15098
15128
|
}
|
|
15099
15129
|
}
|
|
15100
|
-
|
|
15101
|
-
|
|
15102
|
-
}
|
|
15130
|
+
const roomForCopies = core.orchestrator.settleMainWrites(first.indexName);
|
|
15131
|
+
if (roomForCopies !== null) await roomForCopies;
|
|
15103
15132
|
return { applied, error };
|
|
15104
15133
|
} finally {
|
|
15105
15134
|
release();
|
|
15106
15135
|
}
|
|
15107
15136
|
}
|
|
15108
|
-
async function replicateEntryToWorkers(core, manager, entry, removedSpellings) {
|
|
15109
|
-
if (entry.operation === "INDEX") {
|
|
15110
|
-
const appliedDocument = manager.getRef(entry.documentId);
|
|
15111
|
-
if (appliedDocument === void 0) return;
|
|
15112
|
-
await core.orchestrator.replicateToWorkers({
|
|
15113
|
-
type: "insert",
|
|
15114
|
-
indexName: entry.indexName,
|
|
15115
|
-
docId: entry.documentId,
|
|
15116
|
-
document: appliedDocument,
|
|
15117
|
-
requestId: `replicate-entry-insert-${entry.indexName}-${entry.partitionId}-${entry.seqNo}`
|
|
15118
|
-
});
|
|
15119
|
-
return;
|
|
15120
|
-
}
|
|
15121
|
-
await core.orchestrator.replicateToWorkers({
|
|
15122
|
-
type: "remove",
|
|
15123
|
-
indexName: entry.indexName,
|
|
15124
|
-
docId: entry.documentId,
|
|
15125
|
-
requestId: `replicate-entry-remove-${entry.indexName}-${entry.partitionId}-${entry.seqNo}`,
|
|
15126
|
-
removedSpellings
|
|
15127
|
-
});
|
|
15128
|
-
}
|
|
15129
15137
|
|
|
15130
15138
|
// src/distribution/cluster-node/replication-index.ts
|
|
15131
15139
|
function isNestedSchema(value) {
|
|
@@ -15240,7 +15248,7 @@ async function archiveReplicationPartition(core, indexName, partitionId, lastSeq
|
|
|
15240
15248
|
);
|
|
15241
15249
|
}
|
|
15242
15250
|
try {
|
|
15243
|
-
const { openPagedPartitionArchive } = await import('./paged-partition-archive-
|
|
15251
|
+
const { openPagedPartitionArchive } = await import('./paged-partition-archive-RLRGOXDX.mjs');
|
|
15244
15252
|
const archive = await openPagedPartitionArchive(checkpoint2, directory, indexName, partitionId, manager);
|
|
15245
15253
|
return {
|
|
15246
15254
|
stream: archiveStream({ ...archive, config, sourceIndexName: indexName }),
|
|
@@ -15449,7 +15457,7 @@ async function restoreReplicationPartition(core, engine, indexName, partitionId,
|
|
|
15449
15457
|
if (directory !== null) {
|
|
15450
15458
|
const durable = core.durability?.manager;
|
|
15451
15459
|
await (durable?.checkpointFromMemory?.(indexName) ?? durable?.checkpoint(indexName));
|
|
15452
|
-
const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-
|
|
15460
|
+
const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-RLRGOXDX.mjs');
|
|
15453
15461
|
await removeReceivedFilesNothingReads(
|
|
15454
15462
|
directory,
|
|
15455
15463
|
core.requireManager(indexName),
|