@delali/narsil 0.3.1-next.120 → 0.3.1-next.122
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/browser/{chunk-7XRH7I4N.mjs → chunk-2LRHH42F.mjs} +1 -1
- package/dist/browser/{chunk-T6DA4IJO.mjs → chunk-735F2LJQ.mjs} +16 -7
- package/dist/browser/{chunk-UKNKUSWI.mjs → chunk-I43LSGBX.mjs} +2 -2
- package/dist/browser/{durability-wiring-A7GLH6BU.mjs → durability-wiring-R2ROEF3X.mjs} +3 -3
- package/dist/browser/{restore-queue-Y66KAYOQ.mjs → restore-queue-HR2QZ7D3.mjs} +1 -1
- package/dist/browser/{snapshot-KAKLYZ7C.mjs → snapshot-FXWL5DX4.mjs} +3 -3
- package/dist/browser/{write-S3E3IAC5.mjs → write-WS73ZWGS.mjs} +2 -2
- package/dist/{capabilities-DOgB3pPf.d.ts → capabilities-DYFHoGzN.d.ts} +1 -1
- package/dist/{chunk-DEXID4ZT.mjs → chunk-22CK2LQO.mjs} +2 -2
- package/dist/{chunk-LWTSMYRG.mjs → chunk-2D55MS4X.mjs} +9 -9
- package/dist/{chunk-IYEO6BIS.mjs → chunk-3RY3VNV6.mjs} +1 -1
- package/dist/{chunk-3COV4MDF.mjs → chunk-4JCI7NAV.mjs} +3 -3
- package/dist/{chunk-V3F2H5EN.mjs → chunk-A4UVYQOX.mjs} +1 -1
- package/dist/{chunk-KYMFYHFR.mjs → chunk-DIXO4N5P.mjs} +4 -4
- package/dist/{chunk-Q62NDKEC.mjs → chunk-HV5WWON6.mjs} +3 -3
- package/dist/{chunk-N53HN5VA.mjs → chunk-IBGMFR5Y.mjs} +10 -2
- package/dist/{chunk-VFAXPDBH.mjs → chunk-P34VZEXB.mjs} +102 -44
- package/dist/{chunk-LA3CDBKS.mjs → chunk-RS74RHZ2.mjs} +1 -1
- package/dist/{chunk-5VVSHCXT.mjs → chunk-UKXMSO5H.mjs} +1 -1
- package/dist/{chunk-MMKE4KDE.mjs → chunk-US7BZJOZ.mjs} +3 -3
- package/dist/{chunk-RXSRYHUK.mjs → chunk-ZSSQFCIV.mjs} +3 -3
- package/dist/client.d.ts +3 -3
- package/dist/{config-CS5ADSrx.d.ts → config-CNKkaRVZ.d.ts} +1 -1
- package/dist/{config-CSYMTTm1.d.ts → config-DReVHirX.d.ts} +3 -2
- package/dist/{direct-executor-OUY4RPTU.mjs → direct-executor-R4WGRPLN.mjs} +3 -3
- package/dist/distribution.d.ts +3 -3
- package/dist/distribution.mjs +10 -10
- package/dist/{durability-wiring-UTSQ5NUE.mjs → durability-wiring-S3XGZOTW.mjs} +11 -11
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +5 -5
- package/dist/{long-query-thread-HMQM2FWL.mjs → long-query-thread-5BIPZVS6.mjs} +4 -4
- package/dist/pattern.mjs +1 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +8 -8
- package/dist/{restore-queue-NSDTCLFQ.mjs → restore-queue-FAZPYX27.mjs} +1 -1
- package/dist/server.d.ts +4 -4
- package/dist/{snapshot-FLGAN3TO.mjs → snapshot-TOSZBMCR.mjs} +10 -10
- package/dist/{thread-FDEHU5G3.mjs → thread-QPETQEPK.mjs} +4 -4
- package/dist/workers/entry.mjs +5 -5
- package/dist/{write-CMV3VCXA.mjs → write-6I736L7J.mjs} +6 -6
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, getNestedValue, requireValidFieldTypes, VECTOR_PATTERN } from './chunk-
|
|
1
|
+
import { removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, getNestedValue, requireValidFieldTypes, VECTOR_PATTERN } from './chunk-735F2LJQ.mjs';
|
|
2
2
|
import { NarsilError, ErrorCodes } from './chunk-LJS6PREA.mjs';
|
|
3
3
|
import { decode } from '@msgpack/msgpack';
|
|
4
4
|
|
|
@@ -2253,6 +2253,7 @@ function generateId() {
|
|
|
2253
2253
|
var DEFAULT_PATTERN_WORK_CAP = 25e6;
|
|
2254
2254
|
var MATCHER_STATE_BUDGET_BYTES = 1e6;
|
|
2255
2255
|
var PATTERN_WORK_FLUSH_UNITS = 65536;
|
|
2256
|
+
var TYPO_CLAIM_SLOTS_PER_WORD = 32;
|
|
2256
2257
|
var PATTERN_TEST_OPERATORS = ["eq", "ne", "in", "nin", "startsWith", "endsWith", "contains"];
|
|
2257
2258
|
var PATTERN_EXPRESSION_OPERATORS = ["wildcard", "regex"];
|
|
2258
2259
|
var PATTERN_ELEMENT_OPERATORS = ["matchesAny", "containsAll"];
|
|
@@ -11352,6 +11353,7 @@ function createPartitionManager(indexName, config, language, router, initialPart
|
|
|
11352
11353
|
|
|
11353
11354
|
// src/core/pattern-index/work-meter.ts
|
|
11354
11355
|
var COUNTER_BYTES = 8;
|
|
11356
|
+
var PREPARED_TYPO_TEST_BYTES = Math.ceil(MAX_FILTER_TESTS / TYPO_CLAIM_SLOTS_PER_WORD) * Int32Array.BYTES_PER_ELEMENT;
|
|
11355
11357
|
function capExceeded(cap) {
|
|
11356
11358
|
return new NarsilError(
|
|
11357
11359
|
ErrorCodes.SEARCH_WORK_CAP_EXCEEDED,
|
|
@@ -11368,6 +11370,8 @@ function localMeter(cap, spent, matcherStateBytes, flushUnits, clock) {
|
|
|
11368
11370
|
matcherStateBytes,
|
|
11369
11371
|
flushUnits,
|
|
11370
11372
|
clock,
|
|
11373
|
+
preparedTypoTests: null,
|
|
11374
|
+
filters: void 0,
|
|
11371
11375
|
add(units) {
|
|
11372
11376
|
if (units <= 0) return;
|
|
11373
11377
|
if (sharedCount === null) total += units;
|
|
@@ -11382,14 +11386,17 @@ function localMeter(cap, spent, matcherStateBytes, flushUnits, clock) {
|
|
|
11382
11386
|
const copies = Math.max(1, workerCount);
|
|
11383
11387
|
const seed = spentSoFar();
|
|
11384
11388
|
let counter = null;
|
|
11389
|
+
let preparedTypoTests = null;
|
|
11385
11390
|
if (typeof SharedArrayBuffer === "function") {
|
|
11386
11391
|
counter = new SharedArrayBuffer(COUNTER_BYTES);
|
|
11387
11392
|
new BigInt64Array(counter)[0] = BigInt(seed);
|
|
11393
|
+
preparedTypoTests = new SharedArrayBuffer(PREPARED_TYPO_TEST_BYTES);
|
|
11388
11394
|
}
|
|
11389
11395
|
const shared2 = {
|
|
11390
11396
|
cap,
|
|
11391
11397
|
spent: seed,
|
|
11392
11398
|
counter,
|
|
11399
|
+
preparedTypoTests,
|
|
11393
11400
|
matcherStateBytes: Math.floor(matcherStateBytes / copies),
|
|
11394
11401
|
flushUnits: Math.max(1, Math.floor(flushUnits / copies))
|
|
11395
11402
|
};
|
|
@@ -11431,12 +11438,14 @@ function sharedMeter(work, counter) {
|
|
|
11431
11438
|
clock: void 0
|
|
11432
11439
|
};
|
|
11433
11440
|
}
|
|
11434
|
-
function joinPatternWorkMeter(work) {
|
|
11441
|
+
function joinPatternWorkMeter(work, filters) {
|
|
11435
11442
|
const meter = work.counter === null ? localMeter(work.cap, work.spent, work.matcherStateBytes, work.flushUnits, void 0) : sharedMeter(work, work.counter);
|
|
11436
11443
|
let spent = 0;
|
|
11437
11444
|
return {
|
|
11438
11445
|
matcherStateBytes: meter.matcherStateBytes,
|
|
11439
11446
|
flushUnits: meter.flushUnits,
|
|
11447
|
+
preparedTypoTests: work.preparedTypoTests,
|
|
11448
|
+
filters,
|
|
11440
11449
|
add(units) {
|
|
11441
11450
|
if (units <= 0) return;
|
|
11442
11451
|
spent += units;
|
|
@@ -12319,7 +12328,7 @@ function fanOutMatchCount(manager, params, language, schema, options) {
|
|
|
12319
12328
|
|
|
12320
12329
|
// src/workers/query-actions.ts
|
|
12321
12330
|
async function runQueryAction(entry, action) {
|
|
12322
|
-
const patternWork = joinPatternWorkMeter(action.patternWork);
|
|
12331
|
+
const patternWork = joinPatternWorkMeter(action.patternWork, action.params.filters);
|
|
12323
12332
|
const searchOptions = { ...entry.searchOptions, patternWork };
|
|
12324
12333
|
if (action.type === "query") {
|
|
12325
12334
|
const result2 = await fanOutQuery(
|
|
@@ -19200,7 +19209,7 @@ async function createEngineCore(config, hooks, capacityScope = "index") {
|
|
|
19200
19209
|
if (config?.lifecycle !== void 0 && durabilityTier === null) {
|
|
19201
19210
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "Index lifecycle settings require durability");
|
|
19202
19211
|
}
|
|
19203
|
-
const durabilityWiring = durabilityTier === null ? null : await import('./durability-wiring-
|
|
19212
|
+
const durabilityWiring = durabilityTier === null ? null : await import('./durability-wiring-R2ROEF3X.mjs');
|
|
19204
19213
|
const filesystemDurability = durabilityTier?.kind === "wal";
|
|
19205
19214
|
const executor = createDirectExecutor({
|
|
19206
19215
|
vectorWorkerCopies: vectorCopyPolicy,
|
|
@@ -22634,14 +22643,14 @@ function portabilityOperations(core, config, engine) {
|
|
|
22634
22643
|
return {
|
|
22635
22644
|
snapshot(indexName) {
|
|
22636
22645
|
return withOpenIndex(indexName, async () => {
|
|
22637
|
-
const { createSnapshot } = await import('./snapshot-
|
|
22646
|
+
const { createSnapshot } = await import('./snapshot-FXWL5DX4.mjs');
|
|
22638
22647
|
return createSnapshot(snapshotDepsOf(indexName));
|
|
22639
22648
|
});
|
|
22640
22649
|
},
|
|
22641
22650
|
async restore(indexName, data) {
|
|
22642
22651
|
core.guardShutdown();
|
|
22643
22652
|
validateIndexName(indexName);
|
|
22644
|
-
const restored = import('./restore-queue-
|
|
22653
|
+
const restored = import('./restore-queue-HR2QZ7D3.mjs').then(
|
|
22645
22654
|
({ queueRestore }) => queueRestore(core, restoreHost, restoresInFlight, indexName, data)
|
|
22646
22655
|
);
|
|
22647
22656
|
await emitWriteEventAfter(core, indexName, restored);
|
|
@@ -22650,8 +22659,8 @@ function portabilityOperations(core, config, engine) {
|
|
|
22650
22659
|
exportDocuments(indexName) {
|
|
22651
22660
|
return withOpenIndex(indexName, async () => {
|
|
22652
22661
|
const [{ checkpointForArchive }, { documentExportStream }] = await Promise.all([
|
|
22653
|
-
import('./snapshot-
|
|
22654
|
-
import('./write-
|
|
22662
|
+
import('./snapshot-FXWL5DX4.mjs'),
|
|
22663
|
+
import('./write-WS73ZWGS.mjs')
|
|
22655
22664
|
]);
|
|
22656
22665
|
const header = indexConfigurationOf(core.requireIndex(indexName));
|
|
22657
22666
|
return documentExportStream(header, await checkpointForArchive(snapshotDepsOf(indexName)));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, restoreVectorFields, KEYWORD_SEGMENT_PAYLOAD_VERSION, littleEndianBytes, uint64Bytes } from './chunk-
|
|
2
|
-
import { VERSION, rulesOfStoredSynonyms, flattenSchema, packChecksummedEnvelope, openChecksummedEnvelope, requireValidFieldTypes, isCompositePartition, crc32, reconstructSchemaFromMetadata, extractVectorFieldsFromSchema, readHeader, HEADER_SIZE, engineVersionParts, writeHeader, partialFieldsOf, getLanguage, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, VECTOR_PATTERN, isQuantizationMode, isStorageMode, survivorDocumentsOf, partitionStateOf, freezeSegmentShared, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, fnv1a, selectionKeeps, decodeMapWithoutFields, prepareDocumentVectors, messagePackUpperBoundBytes, segmentArraysOf, mergeSegmentContents, resolveIndexAnalysis } from './chunk-
|
|
1
|
+
import { KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, restoreVectorFields, KEYWORD_SEGMENT_PAYLOAD_VERSION, littleEndianBytes, uint64Bytes } from './chunk-2LRHH42F.mjs';
|
|
2
|
+
import { VERSION, rulesOfStoredSynonyms, flattenSchema, packChecksummedEnvelope, openChecksummedEnvelope, requireValidFieldTypes, isCompositePartition, crc32, reconstructSchemaFromMetadata, extractVectorFieldsFromSchema, readHeader, HEADER_SIZE, engineVersionParts, writeHeader, partialFieldsOf, getLanguage, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, VECTOR_PATTERN, isQuantizationMode, isStorageMode, survivorDocumentsOf, partitionStateOf, freezeSegmentShared, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, fnv1a, selectionKeeps, decodeMapWithoutFields, prepareDocumentVectors, messagePackUpperBoundBytes, segmentArraysOf, mergeSegmentContents, resolveIndexAnalysis } from './chunk-735F2LJQ.mjs';
|
|
3
3
|
import { decodeVectorGraphPartPayload, assembleGraphParts, decodeVectorFilePayload, countDead, VECTOR_FILE_MAX_VECTORS, deadBytesFor } from './chunk-P7C2S5JX.mjs';
|
|
4
4
|
import { compareCodePoints, MAX_FILE_BYTES, VALID_HNSW_METRICS } from './chunk-2CBQ2PCC.mjs';
|
|
5
5
|
import { NarsilError, ErrorCodes } from './chunk-LJS6PREA.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { nodeThreadId, spawnNodeWorker } from './chunk-HOZW3PKP.mjs';
|
|
2
|
-
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, directoryCheckpointStore, manifestKey, decodeSegmentManifest, readListedFile, adapterCheckpointStore, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, writeMetadataEnvelope, metadataFromConfig, DIRECTORY_LOCK_ATTEMPTS, createSeqOwner, readSegmentManifest, snapshotBundleKey, reclaimUnlistedKeys, manifestReferencedKeys, loadSegmentedCheckpoint, checkpointLastSeqNo, manifestFileRefs, DIRECTORY_LOCK_SETTLE_MS, readSegmentFile, isRecord, invalidManifest, deserializePayloadV2, unpackEnvelopeBytes, checkpointPrimaryTerm, frameRecord, isId, isUint32, isSequenceNumber, writeCheckpointSegments, partitionContentsOf, writeLiveVectors, commitCheckpointManifest, removeCheckpointGarbage, readWalSegments, durableRecordMissing, MAX_SEGMENTS_PER_PARTITION, growPartitionsTo, writeSegmentHeader, VECTOR_FILE_ENVELOPE_VERSION, SEGMENT_HEADER_SIZE, documentsOfPayloadV2, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, metadataConfigOf, buildEntry, readCurrentManifest, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, captureWholePartition, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-
|
|
3
|
-
import { applyDeleteEntry, applyIndexEntry } from './chunk-
|
|
4
|
-
import { encodeDocument, fnv1a, requireValidFieldTypes, openChecksummedEnvelope, HEADER_SIZE, buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-
|
|
2
|
+
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, directoryCheckpointStore, manifestKey, decodeSegmentManifest, readListedFile, adapterCheckpointStore, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, writeMetadataEnvelope, metadataFromConfig, DIRECTORY_LOCK_ATTEMPTS, createSeqOwner, readSegmentManifest, snapshotBundleKey, reclaimUnlistedKeys, manifestReferencedKeys, loadSegmentedCheckpoint, checkpointLastSeqNo, manifestFileRefs, DIRECTORY_LOCK_SETTLE_MS, readSegmentFile, isRecord, invalidManifest, deserializePayloadV2, unpackEnvelopeBytes, checkpointPrimaryTerm, frameRecord, isId, isUint32, isSequenceNumber, writeCheckpointSegments, partitionContentsOf, writeLiveVectors, commitCheckpointManifest, removeCheckpointGarbage, readWalSegments, durableRecordMissing, MAX_SEGMENTS_PER_PARTITION, growPartitionsTo, writeSegmentHeader, VECTOR_FILE_ENVELOPE_VERSION, SEGMENT_HEADER_SIZE, documentsOfPayloadV2, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, metadataConfigOf, buildEntry, readCurrentManifest, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, captureWholePartition, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-I43LSGBX.mjs';
|
|
3
|
+
import { applyDeleteEntry, applyIndexEntry } from './chunk-2LRHH42F.mjs';
|
|
4
|
+
import { encodeDocument, fnv1a, requireValidFieldTypes, openChecksummedEnvelope, HEADER_SIZE, buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-735F2LJQ.mjs';
|
|
5
5
|
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-P7C2S5JX.mjs';
|
|
6
6
|
import { compareCodePoints, MIN_M, MAX_FILE_BYTES, detectRuntime, resolveWorkerEntry } from './chunk-2CBQ2PCC.mjs';
|
|
7
7
|
import './chunk-JPTQZWJQ.mjs';
|
|
@@ -18,7 +18,7 @@ function restoreDepsOf(core, host) {
|
|
|
18
18
|
function queueRestore(core, host, restoresInFlight, indexName, data) {
|
|
19
19
|
const previous = restoresInFlight.get(indexName) ?? Promise.resolve();
|
|
20
20
|
const restored = previous.then(async () => {
|
|
21
|
-
const { restoreFromSnapshot } = await import('./snapshot-
|
|
21
|
+
const { restoreFromSnapshot } = await import('./snapshot-FXWL5DX4.mjs');
|
|
22
22
|
await restoreFromSnapshot(indexName, data, restoreDepsOf(core, host));
|
|
23
23
|
});
|
|
24
24
|
const settled = restored.then(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { collectAndReturnPages, vectorsPerFile } from './chunk-73U5DWOZ.mjs';
|
|
2
|
-
import { indexMetadataOf, writeCheckpointSegments, DEFAULT_COMPACTION_THRESHOLD, writeLiveVectors, commitCheckpointManifest, manifestKey, decodeSegmentManifest, SINGLE_NODE_PRIMARY_TERM, partitionContentsOf, manifestFileRefs, unpackIndexSnapshotEnvelope, encodeSegmentManifest, loadSegmentedCheckpoint, writeMetadataEnvelope, openManifestPayload, listedKeysOf, decodeManifestPayload, readSegmentFile, readVectorFile, readGraphParts, documentsOfPayloadV2, deserializePayloadV1 } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { encodeIndexConfiguration, createByteReader, hasNrslMagic, HEADER_SIZE, readHeader, raiseEarlierReleaseGraphSetting, restoredConfigFields, restoredEmbedding, getLanguage, validateSchema, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateVectorPromotion, validateVectorStorage, validateRequiredFieldsInSchema, resolveIndexAnalysis, validateEmbeddingConfig, prepareStoredSynonyms, rejectSnapshot, readHeapStatistics, readResidentMemory, extractVectorFieldsFromSchema, loadVectorCodeFor, decodeEveryStoredDocument, parseVectorDimension, insertDocumentVectors, decodeIndexConfiguration, flattenSchema } from './chunk-
|
|
2
|
+
import { indexMetadataOf, writeCheckpointSegments, DEFAULT_COMPACTION_THRESHOLD, writeLiveVectors, commitCheckpointManifest, manifestKey, decodeSegmentManifest, SINGLE_NODE_PRIMARY_TERM, partitionContentsOf, manifestFileRefs, unpackIndexSnapshotEnvelope, encodeSegmentManifest, loadSegmentedCheckpoint, writeMetadataEnvelope, openManifestPayload, listedKeysOf, decodeManifestPayload, readSegmentFile, readVectorFile, readGraphParts, documentsOfPayloadV2, deserializePayloadV1 } from './chunk-I43LSGBX.mjs';
|
|
3
|
+
import './chunk-2LRHH42F.mjs';
|
|
4
|
+
import { encodeIndexConfiguration, createByteReader, hasNrslMagic, HEADER_SIZE, readHeader, raiseEarlierReleaseGraphSetting, restoredConfigFields, restoredEmbedding, getLanguage, validateSchema, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateVectorPromotion, validateVectorStorage, validateRequiredFieldsInSchema, resolveIndexAnalysis, validateEmbeddingConfig, prepareStoredSynonyms, rejectSnapshot, readHeapStatistics, readResidentMemory, extractVectorFieldsFromSchema, loadVectorCodeFor, decodeEveryStoredDocument, parseVectorDimension, insertDocumentVectors, decodeIndexConfiguration, flattenSchema } from './chunk-735F2LJQ.mjs';
|
|
5
5
|
import { decodeVectorIndexParts, vectorsToBytes, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors } from './chunk-P7C2S5JX.mjs';
|
|
6
6
|
import { MAX_FILE_BYTES } from './chunk-2CBQ2PCC.mjs';
|
|
7
7
|
import './chunk-JPTQZWJQ.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { setNestedValue, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-
|
|
2
|
-
import { decodeStoredDocument, openChecksummedEnvelope, NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND, DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-
|
|
1
|
+
import { setNestedValue, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-2LRHH42F.mjs';
|
|
2
|
+
import { decodeStoredDocument, openChecksummedEnvelope, NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND, DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-735F2LJQ.mjs';
|
|
3
3
|
import { decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-P7C2S5JX.mjs';
|
|
4
4
|
import './chunk-2CBQ2PCC.mjs';
|
|
5
5
|
import './chunk-JPTQZWJQ.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
2
|
-
import { C as ClusterNamespace } from './config-
|
|
2
|
+
import { C as ClusterNamespace } from './config-CNKkaRVZ.js';
|
|
3
3
|
import { h as TaskStore } from './tasks-5_LCFEzF.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sendRelayed, parseJson, validateQuery, rejectInvalid, refuseRegex, respondJson, withServerRerankWindow, respondError, loadUWebSockets, childAppOf, createRouteRunner, corsHeaderReader, createSharedBodyBudget, createSharedRequestGate, registerServerRoutes, closeWhenTheProcessExits, statusLine, sendError, REQUEST_THREAD_MOVE_AFTER_MS, MAX_LONG_QUERIES_IN_FLIGHT, createDocumentReadHandlers, SERVER_CAPABILITIES, versionReport, serverRoutes, validateSuggest, SEARCH_CLOCK_SAMPLE_UNITS, awaitDepartureConfirmation, departureConfirmation, REQUEST_THREAD_DEPARTURE_DRAIN_MS, departureConfirmed, encodeJson } from './chunk-IE43SRL3.mjs';
|
|
2
2
|
import { withRerankQueryText } from './chunk-KZ3NX2P7.mjs';
|
|
3
|
-
import { executeListDocuments, executeSuggest, executeQuery, lazyQueryBinding, executePreflight } from './chunk-
|
|
4
|
-
import { resolveProjection, projectionKeepsField, setNestedValue } from './chunk-
|
|
3
|
+
import { executeListDocuments, executeSuggest, executeQuery, lazyQueryBinding, executePreflight } from './chunk-UKXMSO5H.mjs';
|
|
4
|
+
import { resolveProjection, projectionKeepsField, setNestedValue } from './chunk-IBGMFR5Y.mjs';
|
|
5
5
|
import { extractVectorFieldsFromSchema } from './chunk-DG62H7OD.mjs';
|
|
6
6
|
import { ServerErrorCodes, ErrorCodes, NarsilError, isNarsilError } from './chunk-OBWUWZRA.mjs';
|
|
7
7
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { validateWorkerConfig, validateIndexName, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateBM25Params, validatePartitionConfig, lazyQueryBinding, executeQuery, executePreflight, executeSuggest, executeListDocuments, validateDocId } from './chunk-
|
|
1
|
+
import { validateWorkerConfig, validateIndexName, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateBM25Params, validatePartitionConfig, lazyQueryBinding, executeQuery, executePreflight, executeSuggest, executeListDocuments, validateDocId } from './chunk-UKXMSO5H.mjs';
|
|
2
2
|
import { resolveVectorText, bindEngineCore, restoredConfigFields, restoredEmbedding, collectRequiredFieldFailures, embedChunkDocuments, providedDocId, requireDocumentObject, admitInsert, asBatchInsertError, requireMatchingDocId, embedDocumentFields, assertDocumentCarriesMappedVectors, admitBufferedUpsert, createPendingAdmissions, recordPendingAdmission } from './chunk-N57XXGPG.mjs';
|
|
3
3
|
import { splitWorkerBudget, resolveWorkerCount, resolveWorkerEntry, missingWorkerEntry, DEFAULT_REQUEST_TIMEOUT_MS, resolveRequestThreadCount, workerResourceLimits, DEFAULT_BACKPRESSURE_LIMIT, SHUTDOWN_TIMEOUT_MS, CONSECUTIVE_TIMEOUTS_BEFORE_DEATH } from './chunk-6PN3U6XW.mjs';
|
|
4
4
|
import { detectRuntime } from './chunk-AV4IJKD2.mjs';
|
|
5
|
-
import { isEmptySynonymSet, synonymModule, createDirectExecutor, createPartitionRouter, availableSynonymModule, mergeFrozenSegments, createSharedFrozenSegment, freezeSegmentShared, resolvePartitionInsertOptions, createFrozenSegment } from './chunk-
|
|
6
|
-
import { requirePatternSearchFor, requirePartialWordSearchFor, collectQueryTermStats, mergePartitionStats, createPartitionIndex, oversampledFacetConfig, availablePatternSearch, PATTERN_HOST, kWayMerge, mergeFacets, isCompositePartition, fnv1a, encodeSegmentState } from './chunk-
|
|
5
|
+
import { isEmptySynonymSet, synonymModule, createDirectExecutor, createPartitionRouter, availableSynonymModule, mergeFrozenSegments, createSharedFrozenSegment, freezeSegmentShared, resolvePartitionInsertOptions, createFrozenSegment } from './chunk-HV5WWON6.mjs';
|
|
6
|
+
import { requirePatternSearchFor, requirePartialWordSearchFor, collectQueryTermStats, mergePartitionStats, createPartitionIndex, oversampledFacetConfig, availablePatternSearch, PATTERN_HOST, kWayMerge, mergeFacets, isCompositePartition, fnv1a, encodeSegmentState } from './chunk-IBGMFR5Y.mjs';
|
|
7
7
|
import { generateId, getLanguage } from './chunk-FUUP45IS.mjs';
|
|
8
8
|
import { readHeapStatistics } from './chunk-ZATRDAYU.mjs';
|
|
9
9
|
import { countEngineThread } from './chunk-EBIHRL7B.mjs';
|
|
10
10
|
import { DEFAULT_MAX_RERANK_WINDOW, DEFAULT_RERANK_TIMEOUT_MS } from './chunk-HJSN7UYG.mjs';
|
|
11
11
|
import { MAX_INDEX_CONFIGURATION_BYTES, MAX_SWEEP_INTERVAL_MS, MIN_SWEEP_INTERVAL_MS, STATISTICS_BROADCAST_INTERVAL_MS, MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, HEAP_PRESSURE_WARNING_FRACTION, FOREIGN_STATS_TTL_MS, MAX_IMPORT_REFUSALS_REPORTED, MIN_DOCUMENTS_FOR_SEGMENTS, HEAP_PRESSURE_REARM_FRACTION, BATCH_CHUNK_SIZE } from './chunk-LXWDQLTW.mjs';
|
|
12
12
|
import { requireSearchBackendSettings } from './chunk-VK45J47R.mjs';
|
|
13
|
-
import { DEFAULT_PATTERN_WORK_CAP, MATCHER_STATE_BUDGET_BYTES } from './chunk-
|
|
13
|
+
import { DEFAULT_PATTERN_WORK_CAP, MATCHER_STATE_BUDGET_BYTES } from './chunk-P34VZEXB.mjs';
|
|
14
14
|
import { getNestedValue } from './chunk-KCQG2PJT.mjs';
|
|
15
15
|
import { flattenSchema, raiseEarlierReleaseGraphSetting, messagePackUpperBoundBytes, validateSchema, requireCreatableSchema, validateVectorPromotion, validateVectorStorage, extractVectorFieldsFromSchema, schemaFieldsOf, validateRequiredFields, requireDocumentWithinSizeLimit, validateDocument, validateDocumentStrict } from './chunk-DG62H7OD.mjs';
|
|
16
16
|
import { NATIVE_CRC32_MIN_BYTES, MAX_FILE_BYTES, CHECKSUM_YIELD_CHUNK_BYTES } from './chunk-U476IXKQ.mjs';
|
|
@@ -4056,7 +4056,7 @@ async function createEngineCore(config, hooks, capacityScope = "index") {
|
|
|
4056
4056
|
if (config?.lifecycle !== void 0 && durabilityTier === null) {
|
|
4057
4057
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "Index lifecycle settings require durability");
|
|
4058
4058
|
}
|
|
4059
|
-
const durabilityWiring = durabilityTier === null ? null : await import('./durability-wiring-
|
|
4059
|
+
const durabilityWiring = durabilityTier === null ? null : await import('./durability-wiring-S3XGZOTW.mjs');
|
|
4060
4060
|
const filesystemDurability = durabilityTier?.kind === "wal";
|
|
4061
4061
|
const executor = createDirectExecutor({
|
|
4062
4062
|
vectorWorkerCopies: vectorCopyPolicy,
|
|
@@ -6971,14 +6971,14 @@ function portabilityOperations(core, config, engine) {
|
|
|
6971
6971
|
return {
|
|
6972
6972
|
snapshot(indexName) {
|
|
6973
6973
|
return withOpenIndex(indexName, async () => {
|
|
6974
|
-
const { createSnapshot } = await import('./snapshot-
|
|
6974
|
+
const { createSnapshot } = await import('./snapshot-TOSZBMCR.mjs');
|
|
6975
6975
|
return createSnapshot(snapshotDepsOf(indexName));
|
|
6976
6976
|
});
|
|
6977
6977
|
},
|
|
6978
6978
|
async restore(indexName, data) {
|
|
6979
6979
|
core.guardShutdown();
|
|
6980
6980
|
validateIndexName(indexName);
|
|
6981
|
-
const restored = import('./restore-queue-
|
|
6981
|
+
const restored = import('./restore-queue-FAZPYX27.mjs').then(
|
|
6982
6982
|
({ queueRestore }) => queueRestore(core, restoreHost, restoresInFlight, indexName, data)
|
|
6983
6983
|
);
|
|
6984
6984
|
await emitWriteEventAfter(core, indexName, restored);
|
|
@@ -6987,8 +6987,8 @@ function portabilityOperations(core, config, engine) {
|
|
|
6987
6987
|
exportDocuments(indexName) {
|
|
6988
6988
|
return withOpenIndex(indexName, async () => {
|
|
6989
6989
|
const [{ checkpointForArchive }, { documentExportStream }] = await Promise.all([
|
|
6990
|
-
import('./snapshot-
|
|
6991
|
-
import('./write-
|
|
6990
|
+
import('./snapshot-TOSZBMCR.mjs'),
|
|
6991
|
+
import('./write-6I736L7J.mjs')
|
|
6992
6992
|
]);
|
|
6993
6993
|
const header = indexConfigurationOf(core.requireIndex(indexName));
|
|
6994
6994
|
return documentExportStream(header, await checkpointForArchive(snapshotDepsOf(indexName)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors } from './chunk-
|
|
1
|
+
import { removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors } from './chunk-2D55MS4X.mjs';
|
|
2
2
|
import { getNestedValue } from './chunk-KCQG2PJT.mjs';
|
|
3
3
|
import { requireValidFieldTypes } from './chunk-DG62H7OD.mjs';
|
|
4
4
|
import { VECTOR_PATTERN } from './chunk-L5ORED7V.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { vectorsPerFile } from './chunk-NX7KU77V.mjs';
|
|
2
|
-
import { writeLiveVectors, decodeSegmentManifest, openManifestPayload, listedKeysOf, decodeManifestPayload, SINGLE_NODE_PRIMARY_TERM } from './chunk-
|
|
2
|
+
import { writeLiveVectors, decodeSegmentManifest, openManifestPayload, listedKeysOf, decodeManifestPayload, SINGLE_NODE_PRIMARY_TERM } from './chunk-US7BZJOZ.mjs';
|
|
3
3
|
import { vectorsToBytes, VECTOR_FILE_PAYLOAD_VERSION } from './chunk-OCB7TMUQ.mjs';
|
|
4
|
-
import { writeCheckpointSegments, DEFAULT_COMPACTION_THRESHOLD, commitCheckpointManifest, manifestKey, manifestFileRefs, partitionContentsOf } from './chunk-
|
|
5
|
-
import { HEADER_SIZE } from './chunk-
|
|
4
|
+
import { writeCheckpointSegments, DEFAULT_COMPACTION_THRESHOLD, commitCheckpointManifest, manifestKey, manifestFileRefs, partitionContentsOf } from './chunk-DIXO4N5P.mjs';
|
|
5
|
+
import { HEADER_SIZE } from './chunk-2D55MS4X.mjs';
|
|
6
6
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
7
7
|
import { NarsilError, ErrorCodes } from './chunk-OBWUWZRA.mjs';
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nodeThreadId } from './chunk-W55X2BYN.mjs';
|
|
2
2
|
import { getFs, getPath } from './chunk-HLPRHOSO.mjs';
|
|
3
|
-
import { DIRECTORY_LOCK_ATTEMPTS, DIRECTORY_LOCK_SETTLE_MS, DIRECTORY_LOCK_PROCESS_START_TOLERANCE_MS } from './chunk-
|
|
3
|
+
import { DIRECTORY_LOCK_ATTEMPTS, DIRECTORY_LOCK_SETTLE_MS, DIRECTORY_LOCK_PROCESS_START_TOLERANCE_MS } from './chunk-DIXO4N5P.mjs';
|
|
4
4
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
5
5
|
import { NarsilError, ErrorCodes } from './chunk-OBWUWZRA.mjs';
|
|
6
6
|
import { openSync, close, readFileSync } from 'fs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, restoreVectorFields, KEYWORD_SEGMENT_PAYLOAD_VERSION, littleEndianBytes, uint64Bytes } from './chunk-
|
|
1
|
+
import { KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, restoreVectorFields, KEYWORD_SEGMENT_PAYLOAD_VERSION, littleEndianBytes, uint64Bytes } from './chunk-3RY3VNV6.mjs';
|
|
2
2
|
import { WIRE_BATCH_BUDGET } from './chunk-P36MUFEJ.mjs';
|
|
3
3
|
import { ReplicationMessageTypes } from './chunk-YH5OIL7B.mjs';
|
|
4
|
-
import { packChecksummedEnvelope, crc32, openChecksummedEnvelope, reconstructSchemaFromMetadata, HEADER_SIZE, prepareDocumentVectors } from './chunk-
|
|
5
|
-
import { freezeSegmentShared, createSharedFrozenSegment, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, selectionKeeps, decodeMapWithoutFields, shareSegmentArrays, segmentArraysOf, mergeSegmentContents } from './chunk-
|
|
6
|
-
import { fnv1a, isCompositePartition, survivorDocumentsOf, partitionStateOf } from './chunk-
|
|
4
|
+
import { packChecksummedEnvelope, crc32, openChecksummedEnvelope, reconstructSchemaFromMetadata, HEADER_SIZE, prepareDocumentVectors } from './chunk-2D55MS4X.mjs';
|
|
5
|
+
import { freezeSegmentShared, createSharedFrozenSegment, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, selectionKeeps, decodeMapWithoutFields, shareSegmentArrays, segmentArraysOf, mergeSegmentContents } from './chunk-HV5WWON6.mjs';
|
|
6
|
+
import { fnv1a, isCompositePartition, survivorDocumentsOf, partitionStateOf } from './chunk-IBGMFR5Y.mjs';
|
|
7
7
|
import { generateId, getLanguage } from './chunk-FUUP45IS.mjs';
|
|
8
8
|
import { extractVectorFieldsFromSchema, partialFieldsOf, messagePackUpperBoundBytes } from './chunk-DG62H7OD.mjs';
|
|
9
9
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { requirePatternSearchFor, requirePartialWordSearchFor, createPartitionIndex, buildPartialWordTableFrom, recordValueSize, patternIndexOf, encodeFieldIndexes, encodePartialSpellingsOf, countPartialSpelling, copyVectorsInto, isCompositePartition, fnv1a, partialSpellingsOfDocuments, createFrozenPartialWords, requirePatternSearch, documentValueBytes, cloneProjected, projectIncludedPaths, valueWithOwnBuffers, createSurfaceRegistry, MAX_TERM_FREQUENCY, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, createCompositePartition, createGeoIndex, documentWithOwnBuffers, readProjectedPath, createNumericIndex, createBooleanIndex, createEnumIndex, ValueAffixes } from './chunk-
|
|
1
|
+
import { requirePatternSearchFor, requirePartialWordSearchFor, createPartitionIndex, buildPartialWordTableFrom, recordValueSize, patternIndexOf, encodeFieldIndexes, encodePartialSpellingsOf, countPartialSpelling, copyVectorsInto, isCompositePartition, fnv1a, partialSpellingsOfDocuments, createFrozenPartialWords, requirePatternSearch, documentValueBytes, cloneProjected, projectIncludedPaths, valueWithOwnBuffers, createSurfaceRegistry, MAX_TERM_FREQUENCY, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, createCompositePartition, createGeoIndex, documentWithOwnBuffers, readProjectedPath, createNumericIndex, createBooleanIndex, createEnumIndex, ValueAffixes } from './chunk-IBGMFR5Y.mjs';
|
|
2
2
|
import { generateId, getLanguage } from './chunk-FUUP45IS.mjs';
|
|
3
3
|
import { readHeapStatistics, readResidentMemory } from './chunk-ZATRDAYU.mjs';
|
|
4
|
-
import { GrowableUint32, bitsetHas, bitsetSet, createBitSet } from './chunk-
|
|
4
|
+
import { GrowableUint32, bitsetHas, bitsetSet, createBitSet } from './chunk-P34VZEXB.mjs';
|
|
5
5
|
import { tokenizeOptions, getNestedValue, sameFields, visitDocumentSurfaceSpellings, visitDocumentSpellings } from './chunk-KCQG2PJT.mjs';
|
|
6
6
|
import { schemaFieldsOf, partialFieldsOf, encodeDocument, validateDocument, validateDocumentStrict, extractVectorFieldsFromSchema } from './chunk-DG62H7OD.mjs';
|
|
7
7
|
import { fuzzyPrefixOf, boundedLevenshtein } from './chunk-GES7U2PM.mjs';
|
|
@@ -540,7 +540,7 @@ function createPartitionRouter() {
|
|
|
540
540
|
|
|
541
541
|
// src/workers/query-actions.ts
|
|
542
542
|
async function runQueryAction(entry, action) {
|
|
543
|
-
const patternWork = joinPatternWorkMeter(action.patternWork);
|
|
543
|
+
const patternWork = joinPatternWorkMeter(action.patternWork, action.params.filters);
|
|
544
544
|
const searchOptions = { ...entry.searchOptions, patternWork };
|
|
545
545
|
if (action.type === "query") {
|
|
546
546
|
const result2 = await fanOutQuery(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PATTERN_EXPRESSION_OPERATORS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, requireTextRangeField, isFiniteNumber, invalid, requireFieldKind, kindOfValue, requireListLength, isObjectRecord, patternSearchModule, DEFAULT_PATTERN_WORK_CAP, bitsetHas, createBitSet, bitsetSet, bitsetIsEmpty, bitsetOrInto, bitsetAndNotInto, bitsetAndInto, bitsetFromSet, PATTERN_WORK_FLUSH_UNITS, MATCHER_STATE_BUDGET_BYTES } from './chunk-
|
|
1
|
+
import { PATTERN_EXPRESSION_OPERATORS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, requireTextRangeField, isFiniteNumber, invalid, requireFieldKind, kindOfValue, requireListLength, isObjectRecord, patternSearchModule, DEFAULT_PATTERN_WORK_CAP, bitsetHas, createBitSet, bitsetSet, bitsetIsEmpty, bitsetOrInto, bitsetAndNotInto, bitsetAndInto, TYPO_CLAIM_SLOTS_PER_WORD, bitsetFromSet, PATTERN_WORK_FLUSH_UNITS, MATCHER_STATE_BUDGET_BYTES } from './chunk-P34VZEXB.mjs';
|
|
2
2
|
import { GEO_UNIT_METRES, MAX_FILTER_DEPTH, MAX_FILTER_TESTS, FILTER_OPERAND_COPY_DEPTH } from './chunk-WQBCBKY3.mjs';
|
|
3
3
|
import { expandTermPrefix, suggestDisplayTerms, getNestedValue, textFieldsChanged, getFlatSchema, tokenizeOptions, partialWordSearchModule, getOrCreateFieldNameIndex, partitionDocumentFrequency } from './chunk-KCQG2PJT.mjs';
|
|
4
4
|
import { isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES, MIN_POLYGON_POINTS, partialFieldsOf, schemaFieldsOf, flattenSchema, validateDocument, validateDocumentStrict, ANTIMERIDIAN_SPAN_DEGREES, FULL_TURN_DEGREES, LOCATION_CODE_BITS_PER_AXIS, MAX_COVERING_CELLS, VINCENTY_CONVERGENCE_THRESHOLD, EARTH_RADIUS_METERS, RADIUS_BOX_MARGIN_RATIO, RADIUS_BOX_MARGIN_RADIANS, DEG_TO_RAD, VINCENTY_MAX_ITERATIONS } from './chunk-DG62H7OD.mjs';
|
|
@@ -7657,6 +7657,7 @@ function copyVectorsInto(document, docId, vectorIndexes, projection) {
|
|
|
7657
7657
|
|
|
7658
7658
|
// src/core/pattern-index/work-meter.ts
|
|
7659
7659
|
var COUNTER_BYTES = 8;
|
|
7660
|
+
var PREPARED_TYPO_TEST_BYTES = Math.ceil(MAX_FILTER_TESTS / TYPO_CLAIM_SLOTS_PER_WORD) * Int32Array.BYTES_PER_ELEMENT;
|
|
7660
7661
|
function capExceeded(cap) {
|
|
7661
7662
|
return new NarsilError(
|
|
7662
7663
|
ErrorCodes.SEARCH_WORK_CAP_EXCEEDED,
|
|
@@ -7673,6 +7674,8 @@ function localMeter(cap, spent, matcherStateBytes, flushUnits, clock) {
|
|
|
7673
7674
|
matcherStateBytes,
|
|
7674
7675
|
flushUnits,
|
|
7675
7676
|
clock,
|
|
7677
|
+
preparedTypoTests: null,
|
|
7678
|
+
filters: void 0,
|
|
7676
7679
|
add(units) {
|
|
7677
7680
|
if (units <= 0) return;
|
|
7678
7681
|
if (sharedCount === null) total += units;
|
|
@@ -7687,14 +7690,17 @@ function localMeter(cap, spent, matcherStateBytes, flushUnits, clock) {
|
|
|
7687
7690
|
const copies = Math.max(1, workerCount);
|
|
7688
7691
|
const seed = spentSoFar();
|
|
7689
7692
|
let counter = null;
|
|
7693
|
+
let preparedTypoTests = null;
|
|
7690
7694
|
if (typeof SharedArrayBuffer === "function") {
|
|
7691
7695
|
counter = new SharedArrayBuffer(COUNTER_BYTES);
|
|
7692
7696
|
new BigInt64Array(counter)[0] = BigInt(seed);
|
|
7697
|
+
preparedTypoTests = new SharedArrayBuffer(PREPARED_TYPO_TEST_BYTES);
|
|
7693
7698
|
}
|
|
7694
7699
|
const shared = {
|
|
7695
7700
|
cap,
|
|
7696
7701
|
spent: seed,
|
|
7697
7702
|
counter,
|
|
7703
|
+
preparedTypoTests,
|
|
7698
7704
|
matcherStateBytes: Math.floor(matcherStateBytes / copies),
|
|
7699
7705
|
flushUnits: Math.max(1, Math.floor(flushUnits / copies))
|
|
7700
7706
|
};
|
|
@@ -7736,12 +7742,14 @@ function sharedMeter(work, counter) {
|
|
|
7736
7742
|
clock: void 0
|
|
7737
7743
|
};
|
|
7738
7744
|
}
|
|
7739
|
-
function joinPatternWorkMeter(work) {
|
|
7745
|
+
function joinPatternWorkMeter(work, filters) {
|
|
7740
7746
|
const meter = work.counter === null ? localMeter(work.cap, work.spent, work.matcherStateBytes, work.flushUnits, void 0) : sharedMeter(work, work.counter);
|
|
7741
7747
|
let spent = 0;
|
|
7742
7748
|
return {
|
|
7743
7749
|
matcherStateBytes: meter.matcherStateBytes,
|
|
7744
7750
|
flushUnits: meter.flushUnits,
|
|
7751
|
+
preparedTypoTests: work.preparedTypoTests,
|
|
7752
|
+
filters,
|
|
7745
7753
|
add(units) {
|
|
7746
7754
|
if (units <= 0) return;
|
|
7747
7755
|
spent += units;
|
|
@@ -77,6 +77,7 @@ var MATCHER_STATE_OVERHEAD_BYTES = 96;
|
|
|
77
77
|
var PATTERN_WORK_FLUSH_UNITS = 65536;
|
|
78
78
|
var PATTERN_RUN_CODE_POINTS = 3;
|
|
79
79
|
var MAX_PATTERN_TOLERANCE = 2;
|
|
80
|
+
var TYPO_CLAIM_SLOTS_PER_WORD = 32;
|
|
80
81
|
var PATTERN_TEST_OPERATORS = ["eq", "ne", "in", "nin", "startsWith", "endsWith", "contains"];
|
|
81
82
|
var PATTERN_EXPRESSION_OPERATORS = ["wildcard", "regex"];
|
|
82
83
|
var PATTERN_ELEMENT_OPERATORS = ["matchesAny", "containsAll"];
|
|
@@ -1630,57 +1631,112 @@ function shortlist(index, query, tally) {
|
|
|
1630
1631
|
return candidates;
|
|
1631
1632
|
}
|
|
1632
1633
|
|
|
1634
|
+
// src/pattern/typo-claims.ts
|
|
1635
|
+
var slotsBySearch = /* @__PURE__ */ new WeakMap();
|
|
1636
|
+
function typoTestKey(caseFold, tolerance, text) {
|
|
1637
|
+
return `${caseFold}|${tolerance}|${text}`;
|
|
1638
|
+
}
|
|
1639
|
+
function collectSlots(expression, slots) {
|
|
1640
|
+
for (const filter of Object.values(expression.fields ?? {})) {
|
|
1641
|
+
const { eq, tolerance, caseFold } = filter;
|
|
1642
|
+
if (typeof eq !== "string" || tolerance === void 0) continue;
|
|
1643
|
+
const key = typoTestKey(caseFold === true, tolerance, eq);
|
|
1644
|
+
if (!slots.has(key)) slots.set(key, slots.size);
|
|
1645
|
+
}
|
|
1646
|
+
for (const child of expression.and ?? []) collectSlots(child, slots);
|
|
1647
|
+
for (const child of expression.or ?? []) collectSlots(child, slots);
|
|
1648
|
+
if (expression.not !== void 0) collectSlots(expression.not, slots);
|
|
1649
|
+
}
|
|
1650
|
+
function slotsOf(meter) {
|
|
1651
|
+
let slots = slotsBySearch.get(meter);
|
|
1652
|
+
if (slots === void 0) {
|
|
1653
|
+
const collected = /* @__PURE__ */ new Map();
|
|
1654
|
+
if (meter.filters !== void 0) collectSlots(meter.filters, collected);
|
|
1655
|
+
slots = collected;
|
|
1656
|
+
slotsBySearch.set(meter, slots);
|
|
1657
|
+
}
|
|
1658
|
+
return slots;
|
|
1659
|
+
}
|
|
1660
|
+
function claimsTypoPreparation(request) {
|
|
1661
|
+
const { meter, caseFold, tolerance, text } = request;
|
|
1662
|
+
if (meter.preparedTypoTests === null) return true;
|
|
1663
|
+
const claimed = new Int32Array(meter.preparedTypoTests);
|
|
1664
|
+
const slot = slotsOf(meter).get(typoTestKey(caseFold, tolerance, text));
|
|
1665
|
+
if (slot === void 0 || slot >= claimed.length * TYPO_CLAIM_SLOTS_PER_WORD) return true;
|
|
1666
|
+
const bit = 1 << slot % TYPO_CLAIM_SLOTS_PER_WORD;
|
|
1667
|
+
return (Atomics.or(claimed, Math.floor(slot / TYPO_CLAIM_SLOTS_PER_WORD), bit) & bit) === 0;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1633
1670
|
// src/pattern/typo-text.ts
|
|
1634
|
-
function foldTypoText(text, host) {
|
|
1671
|
+
function foldTypoText(text, host, tally) {
|
|
1635
1672
|
const folded = [];
|
|
1673
|
+
let codePoints = 0;
|
|
1636
1674
|
let longestFold = 0;
|
|
1637
1675
|
for (let at = 0; at < text.length; at++) {
|
|
1676
|
+
tally?.add(1);
|
|
1638
1677
|
const codePoint = text.codePointAt(at) ?? 0;
|
|
1639
1678
|
if (codePoint > BASIC_PLANE_LAST) at++;
|
|
1640
1679
|
const before = folded.length;
|
|
1641
1680
|
host.appendFoldedCodePoint(codePoint, folded);
|
|
1681
|
+
codePoints++;
|
|
1642
1682
|
longestFold = Math.max(longestFold, folded.length - before);
|
|
1643
1683
|
}
|
|
1644
|
-
return { folded, longestFold };
|
|
1684
|
+
return { codePoints, folded, longestFold };
|
|
1685
|
+
}
|
|
1686
|
+
function holdsRun(runs, first, second, third) {
|
|
1687
|
+
for (let at = 0; at < runs.length; at += PATTERN_RUN_CODE_POINTS) {
|
|
1688
|
+
if (runs[at] === first && runs[at + 1] === second && runs[at + 2] === third) return true;
|
|
1689
|
+
}
|
|
1690
|
+
return false;
|
|
1691
|
+
}
|
|
1692
|
+
function keepDistinctRun(runs, folded, at, tally) {
|
|
1693
|
+
tally?.add(1);
|
|
1694
|
+
const first = folded[at];
|
|
1695
|
+
const second = folded[at + 1];
|
|
1696
|
+
const third = folded[at + 2];
|
|
1697
|
+
if (!holdsRun(runs, first, second, third)) runs.push(first, second, third);
|
|
1645
1698
|
}
|
|
1646
|
-
function distinctTypoRuns(text, limit) {
|
|
1699
|
+
function distinctTypoRuns(text, limit, tally) {
|
|
1647
1700
|
const { folded } = text;
|
|
1648
|
-
const
|
|
1701
|
+
const positions = folded.length - PATTERN_RUN_CODE_POINTS + 1;
|
|
1702
|
+
const wanted = limit * PATTERN_RUN_CODE_POINTS;
|
|
1649
1703
|
const runs = [];
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
runs.push(folded[at], folded[at + 1], folded[at + 2]);
|
|
1704
|
+
if (positions > limit && limit > 1) {
|
|
1705
|
+
for (let pick = 0; pick < limit; pick++) {
|
|
1706
|
+
keepDistinctRun(runs, folded, Math.round(pick * (positions - 1) / (limit - 1)), tally);
|
|
1707
|
+
}
|
|
1655
1708
|
}
|
|
1709
|
+
for (let at = 0; at < positions && runs.length < wanted; at++) keepDistinctRun(runs, folded, at, tally);
|
|
1656
1710
|
return runs;
|
|
1657
1711
|
}
|
|
1712
|
+
function typoRunLimit(longestFold) {
|
|
1713
|
+
return Math.max(typoRunsNeeded(MAX_PATTERN_TOLERANCE, longestFold), SHORTLIST_RUN_LOOKUPS);
|
|
1714
|
+
}
|
|
1658
1715
|
function typoRunsNeeded(tolerance, longestFold) {
|
|
1659
1716
|
return tolerance * (2 + longestFold) + 1;
|
|
1660
1717
|
}
|
|
1661
1718
|
function distinctTypoRunCount(text, limit) {
|
|
1662
1719
|
return distinctTypoRuns(text, limit).length / PATTERN_RUN_CODE_POINTS;
|
|
1663
1720
|
}
|
|
1664
|
-
function resolvedTypoTolerance(tolerance,
|
|
1721
|
+
function resolvedTypoTolerance(tolerance, longestFold, distinctRuns) {
|
|
1665
1722
|
if (tolerance !== "auto") return tolerance;
|
|
1666
1723
|
for (let candidate = MAX_PATTERN_TOLERANCE; candidate > 0; candidate--) {
|
|
1667
|
-
|
|
1668
|
-
if (distinctTypoRunCount(text, needed) >= needed) return candidate;
|
|
1724
|
+
if (distinctRuns >= typoRunsNeeded(candidate, longestFold)) return candidate;
|
|
1669
1725
|
}
|
|
1670
1726
|
return 0;
|
|
1671
1727
|
}
|
|
1672
1728
|
|
|
1673
1729
|
// src/pattern/typo.ts
|
|
1674
1730
|
var TypoComparison = class {
|
|
1675
|
-
constructor(
|
|
1731
|
+
constructor(rawText, prepared, caseFold, tolerance, host, tally) {
|
|
1676
1732
|
this.caseFold = caseFold;
|
|
1677
1733
|
this.tolerance = tolerance;
|
|
1678
1734
|
this.host = host;
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
this.shortest =
|
|
1683
|
-
this.longest =
|
|
1735
|
+
if (caseFold) tally?.add(prepared.folded.length);
|
|
1736
|
+
this.text = caseFold ? String.fromCodePoint(...prepared.folded) : rawText;
|
|
1737
|
+
const length = caseFold ? prepared.folded.length : prepared.codePoints;
|
|
1738
|
+
this.shortest = length - tolerance;
|
|
1739
|
+
this.longest = length + tolerance;
|
|
1684
1740
|
}
|
|
1685
1741
|
text;
|
|
1686
1742
|
shortest;
|
|
@@ -1712,40 +1768,42 @@ var TypoComparison = class {
|
|
|
1712
1768
|
}
|
|
1713
1769
|
};
|
|
1714
1770
|
var typoTestsBySearch = /* @__PURE__ */ new WeakMap();
|
|
1715
|
-
function
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1718
|
-
const
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
return sample;
|
|
1726
|
-
}
|
|
1727
|
-
function preparedTypoTest(request) {
|
|
1728
|
-
const text = foldTypoText(request.text, request.host);
|
|
1729
|
-
const tolerance = resolvedTypoTolerance(request.tolerance, text);
|
|
1771
|
+
function preparedTypoTest(request, tally) {
|
|
1772
|
+
const text = foldTypoText(request.text, request.host, tally);
|
|
1773
|
+
const distinctRuns = distinctTypoRuns(text, typoRunLimit(text.longestFold), tally);
|
|
1774
|
+
const tolerance = resolvedTypoTolerance(
|
|
1775
|
+
request.tolerance,
|
|
1776
|
+
text.longestFold,
|
|
1777
|
+
distinctRuns.length / PATTERN_RUN_CODE_POINTS
|
|
1778
|
+
);
|
|
1730
1779
|
if (tolerance === 0) return null;
|
|
1731
1780
|
const needed = typoRunsNeeded(tolerance, text.longestFold);
|
|
1732
1781
|
return {
|
|
1733
1782
|
needed,
|
|
1734
|
-
runs:
|
|
1735
|
-
comparison: new TypoComparison(request.text, request.caseFold, tolerance, request.host)
|
|
1783
|
+
runs: Uint32Array.from(distinctRuns),
|
|
1784
|
+
comparison: new TypoComparison(request.text, text, request.caseFold, tolerance, request.host, tally)
|
|
1736
1785
|
};
|
|
1737
1786
|
}
|
|
1738
|
-
function
|
|
1739
|
-
let
|
|
1787
|
+
function testsWithSettings(request) {
|
|
1788
|
+
let testsBySettings = typoTestsBySearch.get(request.meter);
|
|
1789
|
+
if (testsBySettings === void 0) {
|
|
1790
|
+
testsBySettings = /* @__PURE__ */ new Map();
|
|
1791
|
+
typoTestsBySearch.set(request.meter, testsBySettings);
|
|
1792
|
+
}
|
|
1793
|
+
const settings = `${request.caseFold}|${request.tolerance}`;
|
|
1794
|
+
let tests = testsBySettings.get(settings);
|
|
1740
1795
|
if (tests === void 0) {
|
|
1741
1796
|
tests = /* @__PURE__ */ new Map();
|
|
1742
|
-
|
|
1797
|
+
testsBySettings.set(settings, tests);
|
|
1743
1798
|
}
|
|
1744
|
-
|
|
1745
|
-
|
|
1799
|
+
return tests;
|
|
1800
|
+
}
|
|
1801
|
+
function typoTestFor(request, tally) {
|
|
1802
|
+
const tests = testsWithSettings(request);
|
|
1803
|
+
const known = tests.get(request.text);
|
|
1746
1804
|
if (known !== void 0) return known;
|
|
1747
|
-
const test = preparedTypoTest(request);
|
|
1748
|
-
tests.set(
|
|
1805
|
+
const test = preparedTypoTest(request, claimsTypoPreparation(request) ? tally : void 0);
|
|
1806
|
+
tests.set(request.text, test);
|
|
1749
1807
|
return test;
|
|
1750
1808
|
}
|
|
1751
1809
|
function rarestLists(index, test, tally) {
|
|
@@ -1858,7 +1916,7 @@ function matchesText(matcher, text, caseFold, host, folded, tally) {
|
|
|
1858
1916
|
}
|
|
1859
1917
|
function answeredByTypoTest(request, tally) {
|
|
1860
1918
|
if (request.operator !== "eq" || request.tolerance === 0) return false;
|
|
1861
|
-
const test = typoTestFor(request);
|
|
1919
|
+
const test = typoTestFor(request, tally);
|
|
1862
1920
|
if (test === null) return false;
|
|
1863
1921
|
matchWithinTolerance(request, test, tally);
|
|
1864
1922
|
return true;
|
|
@@ -2538,4 +2596,4 @@ var patternSearchModule = {
|
|
|
2538
2596
|
decodeIndex: decodePatternIndex
|
|
2539
2597
|
};
|
|
2540
2598
|
|
|
2541
|
-
export { DEFAULT_PATTERN_WORK_CAP, GrowableUint32, MATCHER_STATE_BUDGET_BYTES, PATTERN_ELEMENT_OPERATORS, PATTERN_EXPRESSION_OPERATORS, PATTERN_TEST_OPERATORS, PATTERN_WORK_FLUSH_UNITS, bitsetAndInto, bitsetAndNotInto, bitsetFromSet, bitsetHas, bitsetIsEmpty, bitsetOrInto, bitsetSet, createBitSet, invalid, isFiniteNumber, isObjectRecord, isPatternTolerance, kindOfValue, patternSearchModule, requireFieldKind, requireListLength, requireTextRangeField };
|
|
2599
|
+
export { DEFAULT_PATTERN_WORK_CAP, GrowableUint32, MATCHER_STATE_BUDGET_BYTES, PATTERN_ELEMENT_OPERATORS, PATTERN_EXPRESSION_OPERATORS, PATTERN_TEST_OPERATORS, PATTERN_WORK_FLUSH_UNITS, TYPO_CLAIM_SLOTS_PER_WORD, bitsetAndInto, bitsetAndNotInto, bitsetFromSet, bitsetHas, bitsetIsEmpty, bitsetOrInto, bitsetSet, createBitSet, invalid, isFiniteNumber, isObjectRecord, isPatternTolerance, kindOfValue, patternSearchModule, requireFieldKind, requireListLength, requireTextRangeField };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sanitizeSurfaceForms, patternIndexesFromWire, dropStoredVectorValues } from './chunk-
|
|
1
|
+
import { sanitizeSurfaceForms, patternIndexesFromWire, dropStoredVectorValues } from './chunk-US7BZJOZ.mjs';
|
|
2
2
|
import { requireValidFieldTypes } from './chunk-DG62H7OD.mjs';
|
|
3
3
|
import { VALID_HNSW_METRICS } from './chunk-U476IXKQ.mjs';
|
|
4
4
|
import { decode } from '@msgpack/msgpack';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { normalizeSort, requireMatchingCursor, encodePageCursor, decodePageCursor, projectionKeepsField, resolveProjection, clampRowCount, sortSignatureOf, requireSortableFields, fanOutQuery, requireWithinResultWindow, sortModesOf, applySorting, applyPagination, countsWithoutScores, fanOutMatchCount, FNV_OFFSET_BASIS, validatedFilterOf, createPatternWorkMeter, partialWordsToHighlight, partialWordHighlighter, pruneStatsToQueryTerms, everyValueFacetConfig, fulltextMatches, mergeFacets, applyPartitionFiltersBitset, fnv1aContinue, partitionsIn, fnv1aContinueTaggedNumbers, undeclaredFieldOnStrictIndex } from './chunk-
|
|
1
|
+
import { normalizeSort, requireMatchingCursor, encodePageCursor, decodePageCursor, projectionKeepsField, resolveProjection, clampRowCount, sortSignatureOf, requireSortableFields, fanOutQuery, requireWithinResultWindow, sortModesOf, applySorting, applyPagination, countsWithoutScores, fanOutMatchCount, FNV_OFFSET_BASIS, validatedFilterOf, createPatternWorkMeter, partialWordsToHighlight, partialWordHighlighter, pruneStatsToQueryTerms, everyValueFacetConfig, fulltextMatches, mergeFacets, applyPartitionFiltersBitset, fnv1aContinue, partitionsIn, fnv1aContinueTaggedNumbers, undeclaredFieldOnStrictIndex } from './chunk-IBGMFR5Y.mjs';
|
|
2
2
|
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN, MAX_DOC_ID_LENGTH, DEFAULT_LIMIT, DEFAULT_SUGGEST_LIMIT, MAX_SUGGEST_LIMIT, MAX_SUGGEST_SCATTER_LIMIT, ABSOLUTE_WINDOWS_PATH_PATTERN, MODULE_URL_SCHEME_PATTERN, DEFAULT_OFFSET } from './chunk-LXWDQLTW.mjs';
|
|
3
3
|
import { MIN_OVERSAMPLE, MAX_RENUMBERED_SEARCH_ATTEMPTS } from './chunk-QSK35UC2.mjs';
|
|
4
4
|
import { flattenSchema, partialFieldsOf } from './chunk-DG62H7OD.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { decodeVectorGraphPartPayload, assembleGraphParts, decodeVectorFilePayload, countDead, VECTOR_FILE_MAX_VECTORS, deadBytesFor } from './chunk-OCB7TMUQ.mjs';
|
|
2
|
-
import { MAX_SEGMENT_ID, MANIFEST_ENVELOPE_VERSION, EARLIER_SEGMENT_MANIFEST_VERSION, SEGMENT_MANIFEST_VERSION, MAX_SEGMENTS_PER_PARTITION, segmentKey, readSegmentFile, manifestKey, segmentsPrefix, readListedFile, requireListedChecksum, vectorFileKey, graphPartKey } from './chunk-
|
|
3
|
-
import { VERSION, rulesOfStoredSynonyms, openChecksummedEnvelope, readHeader, HEADER_SIZE, crc32, engineVersionParts, writeHeader, packChecksummedEnvelope } from './chunk-
|
|
4
|
-
import { decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays } from './chunk-
|
|
2
|
+
import { MAX_SEGMENT_ID, MANIFEST_ENVELOPE_VERSION, EARLIER_SEGMENT_MANIFEST_VERSION, SEGMENT_MANIFEST_VERSION, MAX_SEGMENTS_PER_PARTITION, segmentKey, readSegmentFile, manifestKey, segmentsPrefix, readListedFile, requireListedChecksum, vectorFileKey, graphPartKey } from './chunk-DIXO4N5P.mjs';
|
|
3
|
+
import { VERSION, rulesOfStoredSynonyms, openChecksummedEnvelope, readHeader, HEADER_SIZE, crc32, engineVersionParts, writeHeader, packChecksummedEnvelope } from './chunk-2D55MS4X.mjs';
|
|
4
|
+
import { decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays } from './chunk-HV5WWON6.mjs';
|
|
5
5
|
import { flattenSchema, requireValidFieldTypes, isQuantizationMode, isStorageMode } from './chunk-DG62H7OD.mjs';
|
|
6
6
|
import { MAX_FILE_BYTES, VALID_HNSW_METRICS } from './chunk-U476IXKQ.mjs';
|
|
7
7
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { readMetadataEnvelope } from './chunk-
|
|
2
|
-
import { readWalSegments, durableRecordMissing, checkpointLastSeqNo, SEGMENT_HEADER_SIZE } from './chunk-
|
|
3
|
-
import { applyDeleteEntry, applyIndexEntry } from './chunk-
|
|
1
|
+
import { readMetadataEnvelope } from './chunk-US7BZJOZ.mjs';
|
|
2
|
+
import { readWalSegments, durableRecordMissing, checkpointLastSeqNo, SEGMENT_HEADER_SIZE } from './chunk-DIXO4N5P.mjs';
|
|
3
|
+
import { applyDeleteEntry, applyIndexEntry } from './chunk-3RY3VNV6.mjs';
|
|
4
4
|
|
|
5
5
|
// src/persistence/durability/recovery.ts
|
|
6
6
|
async function listPersistedIndexes(directory) {
|
package/dist/client.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
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 './events-D8GPB1-H.js';
|
|
2
|
-
export { A as ASYNC_IMPORT_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-
|
|
2
|
+
export { A as ASYNC_IMPORT_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-DYFHoGzN.js';
|
|
3
3
|
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, H as HttpIndexConfig, I as ImportError, b as ImportResult, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, d as TaskProgress, e as TaskRecord, f as TaskStatus, g as TaskType } from './tasks-5_LCFEzF.js';
|
|
4
4
|
export { A as AdminOperations, B as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, a as IndexOperations, N as NarsilClient, b as NarsilClientOptions, P as PutResult, R as RequestOptions, S as SearchOperations, c as ServerOperations, d as ServerVersion, T as TaskOperations, W as WaitForTaskOptions, e as createNarsilClient } from './client-BGzLNt78.js';
|
|
5
5
|
import './schema-4W_7tk1f.js';
|
|
6
6
|
import './adapters-BQFQ4PRz.js';
|
|
7
7
|
import './synonyms-CpOAHPa-.js';
|
|
8
|
-
import './config-
|
|
9
|
-
import './config-
|
|
8
|
+
import './config-CNKkaRVZ.js';
|
|
9
|
+
import './config-DReVHirX.js';
|
|
10
10
|
import './index-Cl5qQauj.js';
|
|
11
11
|
import './types-DvncmvuQ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as NarsilConfig } from './config-
|
|
1
|
+
import { N as NarsilConfig } from './config-DReVHirX.js';
|
|
2
2
|
import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-Cl5qQauj.js';
|
|
3
3
|
import { N as NodeTransport } from './types-DvncmvuQ.js';
|
|
4
4
|
|
|
@@ -238,8 +238,9 @@ interface NarsilConfig {
|
|
|
238
238
|
* reads. It counts an `in` or `nin` test as one `eq` test for each distinct
|
|
239
239
|
* value in its list. For an `eq` test with a `tolerance`, it also adds one
|
|
240
240
|
* unit for each cell that it fills in the table of edit distances between
|
|
241
|
-
* the text and a value.
|
|
242
|
-
*
|
|
241
|
+
* the text and a value. It also counts the preparation of that test once for
|
|
242
|
+
* a search, however many worker copies prepare it. Once the count passes the
|
|
243
|
+
* cap, the engine throws `SEARCH_WORK_CAP_EXCEEDED`. The cap
|
|
243
244
|
* defaults to 25,000,000 units. For any value other than a whole number from
|
|
244
245
|
* 1 to `Number.MAX_SAFE_INTEGER`, {@link createNarsil} throws
|
|
245
246
|
* `CONFIG_INVALID`.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { createDirectExecutor } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { createDirectExecutor } from './chunk-HV5WWON6.mjs';
|
|
2
|
+
import './chunk-IBGMFR5Y.mjs';
|
|
3
3
|
import './chunk-FUUP45IS.mjs';
|
|
4
4
|
import './chunk-ZATRDAYU.mjs';
|
|
5
5
|
import './chunk-EBIHRL7B.mjs';
|
|
6
6
|
import './chunk-TGP5M5R7.mjs';
|
|
7
7
|
import './chunk-U2BKYEC7.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-P34VZEXB.mjs';
|
|
9
9
|
import './chunk-WQBCBKY3.mjs';
|
|
10
10
|
import './chunk-KCQG2PJT.mjs';
|
|
11
11
|
import './chunk-DG62H7OD.mjs';
|
package/dist/distribution.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as CreateIndexOptions, C as ClusterNamespace, b as ClusterNodeConfig } from './config-
|
|
2
|
-
export { c as ClusterControllerConfig, d as ClusterHealth, e as ClusterHealthStatus, f as ClusterMemoryConfig, g as ClusterMetrics, h as ClusterNodeInfo, i as ClusterQueryConfig, j as CommitPointFigure, k as CoordinatorRequestFigure, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, l as ReplicationConfig, V as VectorRebuildWaitFigure } from './config-
|
|
1
|
+
import { a as CreateIndexOptions, C as ClusterNamespace, b as ClusterNodeConfig } from './config-CNKkaRVZ.js';
|
|
2
|
+
export { c as ClusterControllerConfig, d as ClusterHealth, e as ClusterHealthStatus, f as ClusterMemoryConfig, g as ClusterMetrics, h as ClusterNodeInfo, i as ClusterQueryConfig, j as CommitPointFigure, k as CoordinatorRequestFigure, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, l as ReplicationConfig, V as VectorRebuildWaitFigure } from './config-CNKkaRVZ.js';
|
|
3
3
|
import { R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
4
4
|
import { B as BatchResult, L as ListParams, g as ListResult, h as SuggestParams, j as SuggestResult, Q as QueryParams, P as PreflightResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, M as MemoryStats, m as NarsilEventMap, e as QueryResult } from './events-D8GPB1-H.js';
|
|
5
5
|
import { I as IndexConfig, A as AnyDocument, a as InsertOptions } from './schema-4W_7tk1f.js';
|
|
@@ -8,7 +8,7 @@ import { b as NodeCapacity, N as NodeRole } from './index-Cl5qQauj.js';
|
|
|
8
8
|
export { c as AllocationConstraints, d as AllocationEvent, A as AllocationTable, C as ClusterCoordinator, I as IndexPartitionBytes, e as NodeEvent, f as NodeMemoryReport, a as NodeRegistration, P as PartitionAssignment, g as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-Cl5qQauj.js';
|
|
9
9
|
import { N as Narsil } from './engine-CCBBGmMR.js';
|
|
10
10
|
export { L as ListenHandler, N as NodeTransport, R as RespondFn, T as TransportConfig, a as TransportMessage } from './types-DvncmvuQ.js';
|
|
11
|
-
import './config-
|
|
11
|
+
import './config-DReVHirX.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* The cluster splits an index into this many partitions when
|
package/dist/distribution.mjs
CHANGED
|
@@ -4,10 +4,10 @@ export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR }
|
|
|
4
4
|
import { addBackgroundAdmission, workWaitingForMemory } from './chunk-PELHVTO7.mjs';
|
|
5
5
|
import { onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes, collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal } from './chunk-IWVEG5CX.mjs';
|
|
6
6
|
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-ZR63OGT2.mjs';
|
|
7
|
-
import { closePartitionWriter, replaySyncedWal } from './chunk-
|
|
8
|
-
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive } from './chunk-
|
|
7
|
+
import { closePartitionWriter, replaySyncedWal } from './chunk-ZSSQFCIV.mjs';
|
|
8
|
+
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive } from './chunk-4JCI7NAV.mjs';
|
|
9
9
|
import './chunk-NX7KU77V.mjs';
|
|
10
|
-
import { indexMetadataOf, loadPartitionSegments, readSegmentManifest, readVectorFile } from './chunk-
|
|
10
|
+
import { indexMetadataOf, loadPartitionSegments, readSegmentManifest, readVectorFile } from './chunk-US7BZJOZ.mjs';
|
|
11
11
|
import { decodeVectorFilePayload, bytesToVectors, isDead } from './chunk-OCB7TMUQ.mjs';
|
|
12
12
|
import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
|
|
13
13
|
import { MAX_MESSAGE_SIZE_BYTES } from './chunk-UNEEFTEU.mjs';
|
|
@@ -15,17 +15,17 @@ import './chunk-HC5NURS6.mjs';
|
|
|
15
15
|
import './chunk-DJHHF2L5.mjs';
|
|
16
16
|
import './chunk-37CD3OKS.mjs';
|
|
17
17
|
import { getPath, getFs } from './chunk-HLPRHOSO.mjs';
|
|
18
|
-
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, readListedFile, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, directoryCheckpointStore, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-
|
|
19
|
-
import { applyIndexEntry, applyDeleteEntry, validateReplicationEntry } from './chunk-
|
|
18
|
+
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, readListedFile, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, directoryCheckpointStore, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-DIXO4N5P.mjs';
|
|
19
|
+
import { applyIndexEntry, applyDeleteEntry, validateReplicationEntry } from './chunk-3RY3VNV6.mjs';
|
|
20
20
|
import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-P36MUFEJ.mjs';
|
|
21
21
|
import { TransportErrorCodes, ReplicationMessageTypes, ClusterMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-YH5OIL7B.mjs';
|
|
22
|
-
import { requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, createEngineIndex, encodeIndexConfiguration, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, createByteReader, openChecksummedEnvelope, emptySerializablePartition, crc32Init, crc32Final, crc32Update, yieldToEventLoop } from './chunk-
|
|
23
|
-
import { runtimeHost, requireSurfaceFormsForPartialFields, now, listBindingOf, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-
|
|
22
|
+
import { requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, createEngineIndex, encodeIndexConfiguration, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, createByteReader, openChecksummedEnvelope, emptySerializablePartition, crc32Init, crc32Final, crc32Update, yieldToEventLoop } from './chunk-2D55MS4X.mjs';
|
|
23
|
+
import { runtimeHost, requireSurfaceFormsForPartialFields, now, listBindingOf, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-UKXMSO5H.mjs';
|
|
24
24
|
import { bindRerankWindowSource, rerankWindowCapOf, providedDocId, engineCoreOf } from './chunk-N57XXGPG.mjs';
|
|
25
25
|
import './chunk-6PN3U6XW.mjs';
|
|
26
26
|
import './chunk-AV4IJKD2.mjs';
|
|
27
|
-
import { synonymModule } from './chunk-
|
|
28
|
-
import { oversampledShardSize, normalizeSort, sortModesOf, readSortValues, resolveProjection, fnv1a, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, requireWithinResultWindow, sortSignatureEntry, fnv1aUint32s, mergePartitionStats } from './chunk-
|
|
27
|
+
import { synonymModule } from './chunk-HV5WWON6.mjs';
|
|
28
|
+
import { oversampledShardSize, normalizeSort, sortModesOf, readSortValues, resolveProjection, fnv1a, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, requireWithinResultWindow, sortSignatureEntry, fnv1aUint32s, mergePartitionStats } from './chunk-IBGMFR5Y.mjs';
|
|
29
29
|
import { generateId, getLanguage } from './chunk-FUUP45IS.mjs';
|
|
30
30
|
import './chunk-ZATRDAYU.mjs';
|
|
31
31
|
import './chunk-EBIHRL7B.mjs';
|
|
@@ -36,7 +36,7 @@ import './chunk-U2BKYEC7.mjs';
|
|
|
36
36
|
import './chunk-KOKM4PQN.mjs';
|
|
37
37
|
import { MIN_OVERSAMPLE } from './chunk-QSK35UC2.mjs';
|
|
38
38
|
import './chunk-VK45J47R.mjs';
|
|
39
|
-
import { isPatternTolerance } from './chunk-
|
|
39
|
+
import { isPatternTolerance } from './chunk-P34VZEXB.mjs';
|
|
40
40
|
import { MAX_FILTER_DEPTH, MAX_FILTER_TESTS, MAX_FILTER_ARRAY_SIZE } from './chunk-WQBCBKY3.mjs';
|
|
41
41
|
import { getNestedValue } from './chunk-KCQG2PJT.mjs';
|
|
42
42
|
import { encodeDocument, validateSchema, requireCreatableSchema, encodeDocumentReply, schemaFieldsOf, MIN_POLYGON_POINTS, isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES } from './chunk-DG62H7OD.mjs';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-
|
|
2
|
-
import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-
|
|
3
|
-
import { decodeSegmentManifest, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, writeMetadataEnvelope, metadataFromConfig, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, isRecord, invalidManifest, unpackEnvelopeBytes, isId, isUint32, isSequenceNumber, writeLiveVectors, growPartitionsTo, VECTOR_FILE_ENVELOPE_VERSION, metadataConfigOf, readCurrentManifest } from './chunk-
|
|
1
|
+
import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-RS74RHZ2.mjs';
|
|
2
|
+
import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-ZSSQFCIV.mjs';
|
|
3
|
+
import { decodeSegmentManifest, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, writeMetadataEnvelope, metadataFromConfig, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, isRecord, invalidManifest, unpackEnvelopeBytes, isId, isUint32, isSequenceNumber, writeLiveVectors, growPartitionsTo, VECTOR_FILE_ENVELOPE_VERSION, metadataConfigOf, readCurrentManifest } from './chunk-US7BZJOZ.mjs';
|
|
4
4
|
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-OCB7TMUQ.mjs';
|
|
5
5
|
import './chunk-37CD3OKS.mjs';
|
|
6
|
-
import { createDurableDirectory } from './chunk-
|
|
6
|
+
import { createDurableDirectory } from './chunk-A4UVYQOX.mjs';
|
|
7
7
|
import { spawnNodeWorker } from './chunk-W55X2BYN.mjs';
|
|
8
8
|
import { getFs } from './chunk-HLPRHOSO.mjs';
|
|
9
|
-
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, directoryCheckpointStore, manifestKey, readListedFile, adapterCheckpointStore, snapshotBundleKey, manifestReferencedKeys, manifestFileRefs, readSegmentFile, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, MAX_SEGMENTS_PER_PARTITION, writeSegmentHeader, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, SEGMENT_HEADER_SIZE, buildEntry, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, captureWholePartition, checkpointLastSeqNo, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, directoryCheckpointStore, manifestKey, readListedFile, adapterCheckpointStore, snapshotBundleKey, manifestReferencedKeys, manifestFileRefs, readSegmentFile, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, MAX_SEGMENTS_PER_PARTITION, writeSegmentHeader, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, SEGMENT_HEADER_SIZE, buildEntry, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, captureWholePartition, checkpointLastSeqNo, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-DIXO4N5P.mjs';
|
|
10
|
+
import './chunk-3RY3VNV6.mjs';
|
|
11
11
|
import './chunk-P36MUFEJ.mjs';
|
|
12
12
|
import './chunk-YH5OIL7B.mjs';
|
|
13
|
-
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-
|
|
14
|
-
import './chunk-
|
|
13
|
+
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-2D55MS4X.mjs';
|
|
14
|
+
import './chunk-UKXMSO5H.mjs';
|
|
15
15
|
import './chunk-N57XXGPG.mjs';
|
|
16
16
|
import { resolveWorkerEntry } from './chunk-6PN3U6XW.mjs';
|
|
17
17
|
import { detectRuntime } from './chunk-AV4IJKD2.mjs';
|
|
18
|
-
import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-
|
|
19
|
-
import { fnv1a } from './chunk-
|
|
18
|
+
import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-HV5WWON6.mjs';
|
|
19
|
+
import { fnv1a } from './chunk-IBGMFR5Y.mjs';
|
|
20
20
|
import './chunk-FUUP45IS.mjs';
|
|
21
21
|
import './chunk-ZATRDAYU.mjs';
|
|
22
22
|
import './chunk-EBIHRL7B.mjs';
|
|
@@ -27,7 +27,7 @@ import './chunk-U2BKYEC7.mjs';
|
|
|
27
27
|
import './chunk-KOKM4PQN.mjs';
|
|
28
28
|
import './chunk-QSK35UC2.mjs';
|
|
29
29
|
import './chunk-VK45J47R.mjs';
|
|
30
|
-
import './chunk-
|
|
30
|
+
import './chunk-P34VZEXB.mjs';
|
|
31
31
|
import './chunk-WQBCBKY3.mjs';
|
|
32
32
|
import './chunk-KCQG2PJT.mjs';
|
|
33
33
|
import { encodeDocument, requireValidFieldTypes } from './chunk-DG62H7OD.mjs';
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-735F2LJQ.mjs';
|
|
2
2
|
export { isSimdAvailable } from './browser/chunk-2CBQ2PCC.mjs';
|
|
3
3
|
import './browser/chunk-JPTQZWJQ.mjs';
|
|
4
4
|
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-LJS6PREA.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export { O as OneWaySynonymRule, a as SynonymRule, T as TwoWaySynonymRule } from
|
|
|
7
7
|
import { L as LanguageModule } from './language-DB8KG1z5.js';
|
|
8
8
|
export { T as TokenizerConfig } from './language-DB8KG1z5.js';
|
|
9
9
|
export { A as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, n as ComparisonFilter, D as DocumentImportResult, o as DocumentProjection, E as ErrorCode, b as ErrorCodes, F as FacetConfig, p as FacetResult, q as FieldFilter, r as FilterExpression, G as GeoFilter, s as GeoPolygonFilter, t as GeoRadiusFilter, u as GroupConfig, v as GroupReducer, w as GroupResult, H as HeldCheckpointReport, x as HighlightConfig, y as HighlightMatch, z as Hit, J as HybridConfig, I as IndexInfo, k as IndexStats, L as ListParams, g as ListResult, K as ListedDocument, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, f as NarsilEventHandlers, m as NarsilEventMap, l as PartitionStatsResult, P as PreflightResult, O as PresenceFilter, R as ProcessMemoryReport, T as QueryCoverage, Q as QueryParams, e as QueryResult, U as RerankConfig, W as ScoreComponents, X as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, Y as SortField, Z as SortSpec, _ as StringFilter, h as SuggestParams, j as SuggestResult, $ as TermMatchPolicy, V as VectorMaintenanceResult, a0 as VectorQueryConfig, a1 as WorkerCopyReport, i as isNarsilError } from './events-D8GPB1-H.js';
|
|
10
|
-
import { N as NarsilConfig } from './config-
|
|
11
|
-
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, d as StaleAnalysis, U as UpdateContext, W as WorkerConfig, e as WorkerContext } from './config-
|
|
10
|
+
import { N as NarsilConfig } from './config-DReVHirX.js';
|
|
11
|
+
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, d as StaleAnalysis, U as UpdateContext, W as WorkerConfig, e as WorkerContext } from './config-DReVHirX.js';
|
|
12
12
|
import { N as Narsil } from './engine-CCBBGmMR.js';
|
|
13
13
|
export { A as AdapterRegistrationOperations, B as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-CCBBGmMR.js';
|
|
14
14
|
export { E as EmbeddingAdapter, I as InvalidationAdapter, a as InvalidationEvent, b as PartitionStatistics, P as PersistenceAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { VERSION, createNarsil } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { VERSION, createNarsil } from './chunk-2D55MS4X.mjs';
|
|
2
|
+
import './chunk-UKXMSO5H.mjs';
|
|
3
3
|
import './chunk-N57XXGPG.mjs';
|
|
4
4
|
import './chunk-6PN3U6XW.mjs';
|
|
5
5
|
import './chunk-AV4IJKD2.mjs';
|
|
6
|
-
export { registerSynonyms } from './chunk-
|
|
7
|
-
export { registerPartialWordSearch, registerPatternSearch } from './chunk-
|
|
6
|
+
export { registerSynonyms } from './chunk-HV5WWON6.mjs';
|
|
7
|
+
export { registerPartialWordSearch, registerPatternSearch } from './chunk-IBGMFR5Y.mjs';
|
|
8
8
|
export { getLanguage, registerLanguage } from './chunk-FUUP45IS.mjs';
|
|
9
9
|
import './chunk-ZATRDAYU.mjs';
|
|
10
10
|
import './chunk-EBIHRL7B.mjs';
|
|
@@ -15,7 +15,7 @@ import './chunk-U2BKYEC7.mjs';
|
|
|
15
15
|
export { isSimdAvailable } from './chunk-KOKM4PQN.mjs';
|
|
16
16
|
import './chunk-QSK35UC2.mjs';
|
|
17
17
|
import './chunk-VK45J47R.mjs';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-P34VZEXB.mjs';
|
|
19
19
|
import './chunk-WQBCBKY3.mjs';
|
|
20
20
|
import './chunk-KCQG2PJT.mjs';
|
|
21
21
|
import './chunk-DG62H7OD.mjs';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-
|
|
1
|
+
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-22CK2LQO.mjs';
|
|
2
2
|
import { answerRequest } from './chunk-N6J6EJW3.mjs';
|
|
3
3
|
import './chunk-IE43SRL3.mjs';
|
|
4
4
|
import './chunk-KZ3NX2P7.mjs';
|
|
5
5
|
import './chunk-HFJXEFFV.mjs';
|
|
6
6
|
import './chunk-IWVEG5CX.mjs';
|
|
7
7
|
import './chunk-DJHHF2L5.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-UKXMSO5H.mjs';
|
|
9
|
+
import './chunk-IBGMFR5Y.mjs';
|
|
10
10
|
import './chunk-ZATRDAYU.mjs';
|
|
11
11
|
import './chunk-EBIHRL7B.mjs';
|
|
12
12
|
import './chunk-HJSN7UYG.mjs';
|
|
13
13
|
import './chunk-LXWDQLTW.mjs';
|
|
14
14
|
import './chunk-QSK35UC2.mjs';
|
|
15
15
|
import './chunk-VK45J47R.mjs';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-P34VZEXB.mjs';
|
|
17
17
|
import './chunk-WQBCBKY3.mjs';
|
|
18
18
|
import './chunk-KCQG2PJT.mjs';
|
|
19
19
|
import './chunk-DG62H7OD.mjs';
|
package/dist/pattern.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { createDurableDirectory } from '../../chunk-
|
|
1
|
+
import { createDurableDirectory } from '../../chunk-A4UVYQOX.mjs';
|
|
2
2
|
import '../../chunk-W55X2BYN.mjs';
|
|
3
3
|
import '../../chunk-HLPRHOSO.mjs';
|
|
4
|
-
import { CHECKPOINT_WORKER_HEARTBEAT_MS, writeCheckpointSegments, directoryCheckpointStore } from '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
4
|
+
import { CHECKPOINT_WORKER_HEARTBEAT_MS, writeCheckpointSegments, directoryCheckpointStore } from '../../chunk-DIXO4N5P.mjs';
|
|
5
|
+
import '../../chunk-3RY3VNV6.mjs';
|
|
6
6
|
import '../../chunk-P36MUFEJ.mjs';
|
|
7
7
|
import '../../chunk-YH5OIL7B.mjs';
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-2D55MS4X.mjs';
|
|
9
|
+
import '../../chunk-UKXMSO5H.mjs';
|
|
10
10
|
import '../../chunk-N57XXGPG.mjs';
|
|
11
11
|
import '../../chunk-6PN3U6XW.mjs';
|
|
12
12
|
import '../../chunk-AV4IJKD2.mjs';
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-HV5WWON6.mjs';
|
|
14
|
+
import '../../chunk-IBGMFR5Y.mjs';
|
|
15
15
|
import '../../chunk-FUUP45IS.mjs';
|
|
16
16
|
import '../../chunk-ZATRDAYU.mjs';
|
|
17
17
|
import '../../chunk-EBIHRL7B.mjs';
|
|
@@ -22,7 +22,7 @@ import '../../chunk-U2BKYEC7.mjs';
|
|
|
22
22
|
import '../../chunk-KOKM4PQN.mjs';
|
|
23
23
|
import '../../chunk-QSK35UC2.mjs';
|
|
24
24
|
import '../../chunk-VK45J47R.mjs';
|
|
25
|
-
import '../../chunk-
|
|
25
|
+
import '../../chunk-P34VZEXB.mjs';
|
|
26
26
|
import '../../chunk-WQBCBKY3.mjs';
|
|
27
27
|
import '../../chunk-KCQG2PJT.mjs';
|
|
28
28
|
import '../../chunk-DG62H7OD.mjs';
|
|
@@ -18,7 +18,7 @@ function restoreDepsOf(core, host) {
|
|
|
18
18
|
function queueRestore(core, host, restoresInFlight, indexName, data) {
|
|
19
19
|
const previous = restoresInFlight.get(indexName) ?? Promise.resolve();
|
|
20
20
|
const restored = previous.then(async () => {
|
|
21
|
-
const { restoreFromSnapshot } = await import('./snapshot-
|
|
21
|
+
const { restoreFromSnapshot } = await import('./snapshot-TOSZBMCR.mjs');
|
|
22
22
|
await restoreFromSnapshot(indexName, data, restoreDepsOf(core, host));
|
|
23
23
|
});
|
|
24
24
|
const settled = restored.then(
|
package/dist/server.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
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 './events-D8GPB1-H.js';
|
|
2
|
-
import { c as ServerOptions, N as NarsilServer } from './capabilities-
|
|
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, d as RequestContext, e as RequestDenial, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, f as ServerLimits, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
2
|
+
import { c as ServerOptions, N as NarsilServer } from './capabilities-DYFHoGzN.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, d as RequestContext, e as RequestDenial, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, f as ServerLimits, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-DYFHoGzN.js';
|
|
4
4
|
import { N as Narsil } from './engine-CCBBGmMR.js';
|
|
5
5
|
import { d as TaskProgress, b as ImportResult, h as TaskStore, e as TaskRecord } from './tasks-5_LCFEzF.js';
|
|
6
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-5_LCFEzF.js';
|
|
7
7
|
import './schema-4W_7tk1f.js';
|
|
8
8
|
import './adapters-BQFQ4PRz.js';
|
|
9
9
|
import './synonyms-CpOAHPa-.js';
|
|
10
|
-
import './config-
|
|
11
|
-
import './config-
|
|
10
|
+
import './config-CNKkaRVZ.js';
|
|
11
|
+
import './config-DReVHirX.js';
|
|
12
12
|
import './index-Cl5qQauj.js';
|
|
13
13
|
import './types-DvncmvuQ.js';
|
|
14
14
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { documentsOfPayloadV2 } from './chunk-
|
|
2
|
-
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive } from './chunk-
|
|
1
|
+
import { documentsOfPayloadV2 } from './chunk-RS74RHZ2.mjs';
|
|
2
|
+
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive } from './chunk-4JCI7NAV.mjs';
|
|
3
3
|
import './chunk-NX7KU77V.mjs';
|
|
4
|
-
import { indexMetadataOf, unpackIndexSnapshotEnvelope, loadSegmentedCheckpoint, writeMetadataEnvelope, readVectorFile, readGraphParts, deserializePayloadV1, SINGLE_NODE_PRIMARY_TERM } from './chunk-
|
|
4
|
+
import { indexMetadataOf, unpackIndexSnapshotEnvelope, loadSegmentedCheckpoint, writeMetadataEnvelope, readVectorFile, readGraphParts, deserializePayloadV1, SINGLE_NODE_PRIMARY_TERM } from './chunk-US7BZJOZ.mjs';
|
|
5
5
|
import { decodeVectorIndexParts, bytesToVectors } from './chunk-OCB7TMUQ.mjs';
|
|
6
6
|
import './chunk-HC5NURS6.mjs';
|
|
7
7
|
import './chunk-DJHHF2L5.mjs';
|
|
8
8
|
import './chunk-37CD3OKS.mjs';
|
|
9
|
-
import { manifestKey, encodeSegmentManifest, manifestFileRefs, readSegmentFile } from './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import { manifestKey, encodeSegmentManifest, manifestFileRefs, readSegmentFile } from './chunk-DIXO4N5P.mjs';
|
|
10
|
+
import './chunk-3RY3VNV6.mjs';
|
|
11
11
|
import './chunk-P36MUFEJ.mjs';
|
|
12
12
|
import './chunk-YH5OIL7B.mjs';
|
|
13
|
-
import { encodeIndexConfiguration, createByteReader, hasNrslMagic, HEADER_SIZE, readHeader, validateRequiredFieldsInSchema, validateEmbeddingConfig, decodeIndexConfiguration, prepareStoredSynonyms, insertDocumentVectors } from './chunk-
|
|
14
|
-
import { validatePatternValueLimit, requireSurfaceFormsForPartialFields } from './chunk-
|
|
13
|
+
import { encodeIndexConfiguration, createByteReader, hasNrslMagic, HEADER_SIZE, readHeader, validateRequiredFieldsInSchema, validateEmbeddingConfig, decodeIndexConfiguration, prepareStoredSynonyms, insertDocumentVectors } from './chunk-2D55MS4X.mjs';
|
|
14
|
+
import { validatePatternValueLimit, requireSurfaceFormsForPartialFields } from './chunk-UKXMSO5H.mjs';
|
|
15
15
|
import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-N57XXGPG.mjs';
|
|
16
16
|
import './chunk-6PN3U6XW.mjs';
|
|
17
17
|
import './chunk-AV4IJKD2.mjs';
|
|
18
|
-
import { decodeEveryStoredDocument } from './chunk-
|
|
19
|
-
import './chunk-
|
|
18
|
+
import { decodeEveryStoredDocument } from './chunk-HV5WWON6.mjs';
|
|
19
|
+
import './chunk-IBGMFR5Y.mjs';
|
|
20
20
|
import { getLanguage } from './chunk-FUUP45IS.mjs';
|
|
21
21
|
import { readHeapStatistics, readResidentMemory } from './chunk-ZATRDAYU.mjs';
|
|
22
22
|
import './chunk-EBIHRL7B.mjs';
|
|
@@ -27,7 +27,7 @@ import './chunk-U2BKYEC7.mjs';
|
|
|
27
27
|
import './chunk-KOKM4PQN.mjs';
|
|
28
28
|
import './chunk-QSK35UC2.mjs';
|
|
29
29
|
import './chunk-VK45J47R.mjs';
|
|
30
|
-
import './chunk-
|
|
30
|
+
import './chunk-P34VZEXB.mjs';
|
|
31
31
|
import './chunk-WQBCBKY3.mjs';
|
|
32
32
|
import { parseVectorDimension } from './chunk-KCQG2PJT.mjs';
|
|
33
33
|
import { raiseEarlierReleaseGraphSetting, validateSchema, validateVectorPromotion, validateVectorStorage, extractVectorFieldsFromSchema, flattenSchema } from './chunk-DG62H7OD.mjs';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { closeRequestThread, searchHandler, serveRequests } from './chunk-
|
|
1
|
+
export { closeRequestThread, searchHandler, serveRequests } from './chunk-22CK2LQO.mjs';
|
|
2
2
|
import './chunk-IE43SRL3.mjs';
|
|
3
3
|
import './chunk-KZ3NX2P7.mjs';
|
|
4
4
|
import './chunk-HFJXEFFV.mjs';
|
|
5
5
|
import './chunk-IWVEG5CX.mjs';
|
|
6
6
|
import './chunk-DJHHF2L5.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-UKXMSO5H.mjs';
|
|
8
|
+
import './chunk-IBGMFR5Y.mjs';
|
|
9
9
|
import './chunk-ZATRDAYU.mjs';
|
|
10
10
|
import './chunk-EBIHRL7B.mjs';
|
|
11
11
|
import './chunk-HJSN7UYG.mjs';
|
|
12
12
|
import './chunk-LXWDQLTW.mjs';
|
|
13
13
|
import './chunk-QSK35UC2.mjs';
|
|
14
14
|
import './chunk-VK45J47R.mjs';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-P34VZEXB.mjs';
|
|
16
16
|
import './chunk-WQBCBKY3.mjs';
|
|
17
17
|
import './chunk-KCQG2PJT.mjs';
|
|
18
18
|
import './chunk-DG62H7OD.mjs';
|
package/dist/workers/entry.mjs
CHANGED
|
@@ -22,9 +22,9 @@ async function importBootstrapModule(moduleUrl) {
|
|
|
22
22
|
await import(moduleUrl);
|
|
23
23
|
}
|
|
24
24
|
async function stopServingRequests() {
|
|
25
|
-
const { closeRequestThread } = await import('../thread-
|
|
25
|
+
const { closeRequestThread } = await import('../thread-QPETQEPK.mjs');
|
|
26
26
|
closeRequestThread();
|
|
27
|
-
const { closeLongQueryThread } = await import('../long-query-thread-
|
|
27
|
+
const { closeLongQueryThread } = await import('../long-query-thread-5BIPZVS6.mjs');
|
|
28
28
|
closeLongQueryThread();
|
|
29
29
|
}
|
|
30
30
|
function holdsCopies(executor) {
|
|
@@ -55,7 +55,7 @@ function createActionHandler(executor) {
|
|
|
55
55
|
if (!holdsCopies(executor)) {
|
|
56
56
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
|
|
57
57
|
}
|
|
58
|
-
const starting = import('../thread-
|
|
58
|
+
const starting = import('../thread-QPETQEPK.mjs').then(
|
|
59
59
|
({ serveRequests }) => serveRequests(executor, action.settings)
|
|
60
60
|
);
|
|
61
61
|
serving.start = starting.then(
|
|
@@ -72,7 +72,7 @@ function createActionHandler(executor) {
|
|
|
72
72
|
if (!holdsCopies(executor)) {
|
|
73
73
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
|
|
74
74
|
}
|
|
75
|
-
const { serveLongQueries } = await import('../long-query-thread-
|
|
75
|
+
const { serveLongQueries } = await import('../long-query-thread-5BIPZVS6.mjs');
|
|
76
76
|
serveLongQueries(executor, action.settings);
|
|
77
77
|
servingRequests = true;
|
|
78
78
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
@@ -118,7 +118,7 @@ async function setup() {
|
|
|
118
118
|
} catch {
|
|
119
119
|
parentPort = null;
|
|
120
120
|
}
|
|
121
|
-
const [{ createDirectExecutor }] = await Promise.all([import('../direct-executor-
|
|
121
|
+
const [{ createDirectExecutor }] = await Promise.all([import('../direct-executor-R4WGRPLN.mjs'), loadVectorCode()]);
|
|
122
122
|
const handleAction = createActionHandler(createDirectExecutor({ threadSlot }));
|
|
123
123
|
if (parentPort) {
|
|
124
124
|
const port = parentPort;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-OCB7TMUQ.mjs';
|
|
2
2
|
import './chunk-37CD3OKS.mjs';
|
|
3
|
-
import { setNestedValue, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-
|
|
4
|
-
import { openChecksummedEnvelope, NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND, DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
import { setNestedValue, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-3RY3VNV6.mjs';
|
|
4
|
+
import { openChecksummedEnvelope, NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND, DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-2D55MS4X.mjs';
|
|
5
|
+
import './chunk-UKXMSO5H.mjs';
|
|
6
6
|
import './chunk-N57XXGPG.mjs';
|
|
7
7
|
import './chunk-6PN3U6XW.mjs';
|
|
8
8
|
import './chunk-AV4IJKD2.mjs';
|
|
9
|
-
import { decodeStoredDocument } from './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import { decodeStoredDocument } from './chunk-HV5WWON6.mjs';
|
|
10
|
+
import './chunk-IBGMFR5Y.mjs';
|
|
11
11
|
import './chunk-FUUP45IS.mjs';
|
|
12
12
|
import './chunk-ZATRDAYU.mjs';
|
|
13
13
|
import './chunk-EBIHRL7B.mjs';
|
|
@@ -18,7 +18,7 @@ import './chunk-U2BKYEC7.mjs';
|
|
|
18
18
|
import './chunk-KOKM4PQN.mjs';
|
|
19
19
|
import './chunk-QSK35UC2.mjs';
|
|
20
20
|
import './chunk-VK45J47R.mjs';
|
|
21
|
-
import './chunk-
|
|
21
|
+
import './chunk-P34VZEXB.mjs';
|
|
22
22
|
import './chunk-WQBCBKY3.mjs';
|
|
23
23
|
import './chunk-KCQG2PJT.mjs';
|
|
24
24
|
import './chunk-DG62H7OD.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delali/narsil",
|
|
3
|
-
"version": "0.3.1-next.
|
|
3
|
+
"version": "0.3.1-next.122",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Distributed search engine with full-text, vector, hybrid, and geosearch. One engine, embedded or on a server, with a cross-language .nrsl format.",
|
|
6
6
|
"author": "Delali (https://sondelali.com)",
|
|
@@ -271,11 +271,11 @@
|
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
273
|
"optionalDependencies": {
|
|
274
|
-
"@delali/narsil-native-darwin-arm64": "0.3.1-next.
|
|
275
|
-
"@delali/narsil-native-darwin-x64": "0.3.1-next.
|
|
276
|
-
"@delali/narsil-native-linux-arm64": "0.3.1-next.
|
|
277
|
-
"@delali/narsil-native-linux-x64": "0.3.1-next.
|
|
278
|
-
"@delali/narsil-native-win32-arm64": "0.3.1-next.
|
|
279
|
-
"@delali/narsil-native-win32-x64": "0.3.1-next.
|
|
274
|
+
"@delali/narsil-native-darwin-arm64": "0.3.1-next.122",
|
|
275
|
+
"@delali/narsil-native-darwin-x64": "0.3.1-next.122",
|
|
276
|
+
"@delali/narsil-native-linux-arm64": "0.3.1-next.122",
|
|
277
|
+
"@delali/narsil-native-linux-x64": "0.3.1-next.122",
|
|
278
|
+
"@delali/narsil-native-win32-arm64": "0.3.1-next.122",
|
|
279
|
+
"@delali/narsil-native-win32-x64": "0.3.1-next.122"
|
|
280
280
|
}
|
|
281
281
|
}
|