@delali/narsil 0.4.6-next.333 → 0.4.6-next.334
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-75MBWQFW.mjs → chunk-J343PP7Q.mjs} +23 -10
- package/dist/browser/{optional-writes-3HKIVZFU.mjs → optional-writes-OFPF77WY.mjs} +2 -1
- package/dist/browser/{segment-codec-leaf-NDVBIBJJ.mjs → segment-codec-leaf-E4YHXUAI.mjs} +4 -2
- package/dist/browser/{storage-leaf-NCOXQTXQ.mjs → storage-leaf-WJMD66YX.mjs} +3 -2
- package/dist/{chunk-FBGUKBW2.mjs → chunk-2QQCR7KF.mjs} +2 -2
- package/dist/{chunk-GYQKMYPG.mjs → chunk-4QNWK42S.mjs} +35 -19
- package/dist/{chunk-NOEMVUBS.mjs → chunk-5PUNOJC7.mjs} +1 -1
- package/dist/{chunk-43UYNPPC.mjs → chunk-6S5QPDPP.mjs} +2 -2
- package/dist/{chunk-2M55WPWK.mjs → chunk-AKLCYPUY.mjs} +1 -1
- package/dist/{chunk-5E46Y42F.mjs → chunk-B276ZQIH.mjs} +2 -2
- package/dist/{chunk-26AKUBDX.mjs → chunk-B6VO3BCX.mjs} +4 -4
- package/dist/{chunk-HFF2R73P.mjs → chunk-BVFJ5XAU.mjs} +2 -2
- package/dist/{chunk-3EFLY5LQ.mjs → chunk-CHGJGKST.mjs} +2 -2
- package/dist/{chunk-3TENTQKL.mjs → chunk-CVCBVUH4.mjs} +2 -2
- package/dist/{chunk-E6CHNSMY.mjs → chunk-HB3EBTKC.mjs} +5 -5
- package/dist/{chunk-3UAYJW6R.mjs → chunk-HNE4HNC2.mjs} +1 -1
- package/dist/{chunk-H2R4BTSO.mjs → chunk-I255IQTR.mjs} +2 -2
- package/dist/{chunk-NSMF4OHE.mjs → chunk-IALJ2X74.mjs} +3 -3
- package/dist/{chunk-HJCYLTVA.mjs → chunk-ICEZRKIS.mjs} +1 -1
- package/dist/{chunk-GZ4YU36L.mjs → chunk-IVVNKTHC.mjs} +1 -1
- package/dist/{chunk-34QTB6O7.mjs → chunk-KHZ6LAFB.mjs} +1 -1
- package/dist/{chunk-L2W4FGTD.mjs → chunk-N3DJTTKK.mjs} +2 -2
- package/dist/{chunk-47NXBGQG.mjs → chunk-QWYIMVYT.mjs} +2 -2
- package/dist/{chunk-5CYLXJYQ.mjs → chunk-R5OFJZNI.mjs} +1 -1
- package/dist/{chunk-PBVLCGCW.mjs → chunk-RHFUQ76T.mjs} +1 -1
- package/dist/{chunk-U6B3HHTP.mjs → chunk-SCUYG24W.mjs} +4 -4
- package/dist/{chunk-OPWZ7PZZ.mjs → chunk-TNBOFWDS.mjs} +1 -1
- package/dist/{chunk-6U4C7VAD.mjs → chunk-UFDD57KD.mjs} +3 -3
- package/dist/{chunk-3WYTRM24.mjs → chunk-UJQ2S5QU.mjs} +2 -2
- package/dist/{chunk-KFUHQC6X.mjs → chunk-Z622PLNH.mjs} +12 -11
- package/dist/{direct-executor-2Y3JPVXT.mjs → direct-executor-P2Z7T57F.mjs} +1 -1
- package/dist/distribution.mjs +27 -27
- package/dist/index.browser.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.react-native.mjs +1 -1
- package/dist/{long-query-thread-6B2HXSBI.mjs → long-query-thread-SOJ25FZU.mjs} +10 -10
- package/dist/{optional-writes-27NHTIAL.mjs → optional-writes-GVHTEENI.mjs} +3 -3
- package/dist/{paged-partition-archive-EFCEC4TD.mjs → paged-partition-archive-XCETVLZW.mjs} +9 -9
- package/dist/partial-words.browser.mjs +1 -1
- package/dist/partial-words.mjs +1 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +7 -7
- package/dist/{query-actions-H6H54EJE.mjs → query-actions-WKC4SQEZ.mjs} +1 -1
- package/dist/query-suggestions/merge-worker.mjs +4 -4
- package/dist/query-suggestions.browser.mjs +1 -1
- package/dist/query-suggestions.mjs +2 -2
- package/dist/react-native/chunks/{chunk-YMIPG3VC.mjs → chunk-4JY2CZWV.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-XCJVLU6J.mjs → chunk-FN3HBVNY.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-DYAAQB5R.mjs → chunk-LR6OK725.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-GCD64RZ2.mjs → chunk-MPNHORPY.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-7TURQEZZ.mjs → chunk-QT2G6OMI.mjs} +34 -18
- package/dist/react-native/chunks/{chunk-UTYWL2W6.mjs → chunk-QZUFYRFX.mjs} +1 -1
- package/dist/react-native/chunks/{optional-writes-NYFF5NTC.mjs → optional-writes-TCVHZRRM.mjs} +2 -2
- package/dist/react-native/chunks/{restore-queue-4OXFRQ6N.mjs → restore-queue-RLQ3L223.mjs} +4 -4
- package/dist/react-native/chunks/{segment-codec-leaf-YKUO5DU6.mjs → segment-codec-leaf-IM6YCP7M.mjs} +2 -2
- package/dist/react-native/chunks/{segment-merge-leaf-HIOWV5UN.mjs → segment-merge-leaf-32YR2ZTM.mjs} +3 -3
- package/dist/react-native/chunks/{storage-leaf-H64VNQKE.mjs → storage-leaf-RKI6S6T5.mjs} +8 -7
- package/dist/react-native/chunks/{store-leaf-ZG5DR7QA.mjs → store-leaf-YQXG6NOD.mjs} +3 -3
- package/dist/react-native/chunks/{suggestions-leaf-AJZ3SHZO.mjs → suggestions-leaf-Q3ABULFB.mjs} +3 -3
- package/dist/react-native/chunks/{worker-copies-IY4ZIA6W.mjs → worker-copies-W63KWZZN.mjs} +2 -2
- package/dist/react-native/partial-words.mjs +1 -1
- package/dist/react-native/query-suggestions.mjs +1 -1
- package/dist/react-native/sync.mjs +1 -1
- package/dist/react-native/synonyms.mjs +1 -1
- package/dist/{rerank-JTIQNROU.mjs → rerank-OJLSVUYV.mjs} +6 -6
- package/dist/{restore-queue-JIJW3XKK.mjs → restore-queue-BYO4AJLZ.mjs} +4 -4
- package/dist/{segment-codec-leaf-LTIODLBH.mjs → segment-codec-leaf-V52PQEVL.mjs} +2 -2
- package/dist/{segment-merge-leaf-CXOMXPAP.mjs → segment-merge-leaf-M3ZLJYDD.mjs} +2 -2
- package/dist/server.mjs +19 -21
- package/dist/{storage-leaf-VB5OG66O.mjs → storage-leaf-YYO4FLHQ.mjs} +18 -18
- package/dist/{store-leaf-RBK3Y2H4.mjs → store-leaf-KK7VD3P3.mjs} +3 -3
- package/dist/{suggestions-leaf-27TNMJ37.mjs → suggestions-leaf-EJCNU3NM.mjs} +5 -5
- package/dist/sync/filesystem.mjs +4 -4
- package/dist/sync.browser.mjs +1 -1
- package/dist/sync.mjs +1 -1
- package/dist/synonyms.browser.mjs +1 -1
- package/dist/synonyms.mjs +1 -1
- package/dist/{thread-J32AOE3H.mjs → thread-6BVFFMP7.mjs} +9 -9
- package/dist/{worker-copies-F2WVSQQO.mjs → worker-copies-5V5JGCWU.mjs} +4 -4
- package/dist/workers/entry.mjs +7 -7
- package/package.json +5 -5
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { loadVectorField, openColdVectorField, VECTOR_FILE_ENVELOPE_VERSION, GRAPH_PART_ENVELOPE_VERSION } from './chunk-
|
|
2
|
-
import { engineChangeSource, ChangeCursor, createSemaphore, changePositionList, changesNotEnabled, previousDocumentRequired, invalidPositions, changePositionsOf, requireConfigurationShape, RESTORE_ESTIMATE_MARGIN, persistEpochStates, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_WORST_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_STORED_BYTE, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE } from './chunk-
|
|
1
|
+
import { loadVectorField, openColdVectorField, VECTOR_FILE_ENVELOPE_VERSION, GRAPH_PART_ENVELOPE_VERSION } from './chunk-IALJ2X74.mjs';
|
|
2
|
+
import { engineChangeSource, ChangeCursor, createSemaphore, changePositionList, changesNotEnabled, previousDocumentRequired, invalidPositions, changePositionsOf, requireConfigurationShape, RESTORE_ESTIMATE_MARGIN, persistEpochStates, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_WORST_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_STORED_BYTE, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE } from './chunk-CVCBVUH4.mjs';
|
|
3
3
|
import { restoredConfigFields, restoredEmbedding } from './chunk-UGMOBSMD.mjs';
|
|
4
|
-
import { ENTRIES_MESSAGE_LIMIT_BYTES, FEED_HEAD_RETRY_MS, decodeSegmentManifest, isRecord, isUint32, isSequenceNumber, ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-
|
|
5
|
-
import { isPagedSegmentFile, openPagedSegmentScan, countsAsLatestHolder, writeCheckpointSegments, commitCheckpointManifest, readSegmentFile, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, removeUnusedSegmentFiles, readWalSegments, durableRecordMissing, checkpointLastSeqNo, pagedListingOf, residentSectionsOf, filePathOf, partitionContentsOf, checkPagedSegmentFully, openPagedSnapshot, createPagedFrozenSegment, SEGMENT_HEADER_SIZE, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-
|
|
6
|
-
import { decodeSections, READS_AHEAD_AT_ONCE, readFileRangeLater, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, READ_AHEAD_CHUNK_BYTES, STABLE_HEAD_ATTEMPTS, directoryCheckpointStore } from './chunk-
|
|
7
|
-
import { manifestKey, segmentsPrefix, vectorFileKey, manifestFileRefs, graphPartKey } from './chunk-
|
|
4
|
+
import { ENTRIES_MESSAGE_LIMIT_BYTES, FEED_HEAD_RETRY_MS, decodeSegmentManifest, isRecord, isUint32, isSequenceNumber, ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-I255IQTR.mjs';
|
|
5
|
+
import { isPagedSegmentFile, openPagedSegmentScan, countsAsLatestHolder, writeCheckpointSegments, commitCheckpointManifest, readSegmentFile, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, removeUnusedSegmentFiles, readWalSegments, durableRecordMissing, checkpointLastSeqNo, pagedListingOf, residentSectionsOf, filePathOf, partitionContentsOf, checkPagedSegmentFully, openPagedSnapshot, createPagedFrozenSegment, SEGMENT_HEADER_SIZE, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-B6VO3BCX.mjs';
|
|
6
|
+
import { decodeSections, READS_AHEAD_AT_ONCE, readFileRangeLater, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, READ_AHEAD_CHUNK_BYTES, STABLE_HEAD_ATTEMPTS, directoryCheckpointStore } from './chunk-QWYIMVYT.mjs';
|
|
7
|
+
import { manifestKey, segmentsPrefix, vectorFileKey, manifestFileRefs, graphPartKey } from './chunk-ICEZRKIS.mjs';
|
|
8
8
|
import { encode } from './chunk-S5QMWECL.mjs';
|
|
9
9
|
import { setNestedValue, restoreVectorFields } from './chunk-L2GYY6KY.mjs';
|
|
10
|
-
import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-
|
|
10
|
+
import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-AKLCYPUY.mjs';
|
|
11
11
|
import { DEFAULT_VECTOR_METRIC, defaultQuantizationFor, vectorsPerFile, vectorsToBytes, VECTOR_FILE_PAYLOAD_VERSION, decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-R724DJSG.mjs';
|
|
12
12
|
import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
|
|
13
|
-
import { openChecksummedEnvelope, HEADER_SIZE, packChecksummedEnvelope, packEnvelopeWithChecksum, checksumOfChunks, readHeader, crc32, engineVersionParts, writeHeader, storedStateToWire, storedStateFromWire } from './chunk-
|
|
14
|
-
import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, oversizedConfigurationPayloadOf, requireEncodedConfigurationWithinSizeLimit, loadSchemaCodeFor, VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, noteDocumentChurn, createPartitionIndex, writePartitionDocument, yieldToEventLoop, createPublicationGate, removedSurfaceSpellings, readHeapStatistics, readProcessMemoryUse, prepareConfiguredSynonyms, withOpenIndex, loadGzip, prepareRemovalText, prepareDocumentText, updateDocumentVectors, holdSyncEpochChange, decodeStoredDocument, emitSyncChange, ARRAY_POSITION_GAP } from './chunk-
|
|
13
|
+
import { openChecksummedEnvelope, HEADER_SIZE, packChecksummedEnvelope, packEnvelopeWithChecksum, checksumOfChunks, readHeader, crc32, engineVersionParts, writeHeader, storedStateToWire, storedStateFromWire } from './chunk-R5OFJZNI.mjs';
|
|
14
|
+
import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, oversizedConfigurationPayloadOf, requireEncodedConfigurationWithinSizeLimit, loadSchemaCodeFor, VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, noteDocumentChurn, createPartitionIndex, writePartitionDocument, yieldToEventLoop, createPublicationGate, removedSurfaceSpellings, readHeapStatistics, readProcessMemoryUse, prepareConfiguredSynonyms, withOpenIndex, loadGzip, prepareRemovalText, prepareDocumentText, updateDocumentVectors, holdSyncEpochChange, decodeStoredDocument, emitSyncChange, ARRAY_POSITION_GAP } from './chunk-4QNWK42S.mjs';
|
|
15
15
|
import { decode } from './chunk-Y7GXGJFZ.mjs';
|
|
16
16
|
import { isSyncEpoch, newSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
17
17
|
import { extractVectorFieldsFromSchema, flattenSchema, VECTOR_PATTERN, validateDocument, validateDocumentStrict, schemaFieldsOf, parseVectorDimension, requireValidFieldTypes, isQuantizationMode, isStorageMode, MAX_DOCUMENT_NESTING_DEPTH } from './chunk-7NMLFP2T.mjs';
|
|
@@ -3836,7 +3836,7 @@ function dropStoredVectorValues(documents, schema) {
|
|
|
3836
3836
|
}
|
|
3837
3837
|
function removeFieldAtPath(fields, fieldPath) {
|
|
3838
3838
|
if (!fieldPath.includes(".")) {
|
|
3839
|
-
delete fields[fieldPath];
|
|
3839
|
+
if (fields[fieldPath] !== null) delete fields[fieldPath];
|
|
3840
3840
|
return;
|
|
3841
3841
|
}
|
|
3842
3842
|
const segments = fieldPath.split(".");
|
|
@@ -3848,7 +3848,8 @@ function removeFieldAtPath(fields, fieldPath) {
|
|
|
3848
3848
|
}
|
|
3849
3849
|
current = next;
|
|
3850
3850
|
}
|
|
3851
|
-
|
|
3851
|
+
const leaf = segments[segments.length - 1];
|
|
3852
|
+
if (current[leaf] !== null) delete current[leaf];
|
|
3852
3853
|
}
|
|
3853
3854
|
|
|
3854
3855
|
// src/serialization/payload-v1/partition.ts
|
package/dist/distribution.mjs
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-
|
|
2
|
-
import { createVectorReadView, keepsAnyVectorField } from './chunk-
|
|
3
|
-
import { emptySerializablePartition } from './chunk-
|
|
4
|
-
import { applyStoredIndexBm25 } from './chunk-
|
|
5
|
-
import { keyBytesOf, querySuggestionsOf, createQuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-
|
|
6
|
-
import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, archiveStream, buildArchiveFromMemory, indexMetadataOf, applyIndexEntry, applyDeleteEntry, documentExportStream, followSourceChanges, requireChangesSetting, resolveAnalysisTarget, requireConfigurationWithinSizeLimit, memoryCheckpointStore, createByteReader, writeArchiveFile, namedSettingsOf, createDetachedIndex, loadPartitionSegments, changesStatusOf, holdsSettings, configOfNamedSettings, closePartitionWriter, requireRestoreMemory, archiveFootprint, storedBytesOfSegments, validateReplicationEntry, readSegmentManifest, replaySyncedWal, nestedSchemaOf } from './chunk-
|
|
7
|
-
import { readVectorFile } from './chunk-
|
|
1
|
+
import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-N3DJTTKK.mjs';
|
|
2
|
+
import { createVectorReadView, keepsAnyVectorField } from './chunk-6S5QPDPP.mjs';
|
|
3
|
+
import { emptySerializablePartition } from './chunk-RHFUQ76T.mjs';
|
|
4
|
+
import { applyStoredIndexBm25 } from './chunk-TNBOFWDS.mjs';
|
|
5
|
+
import { keyBytesOf, querySuggestionsOf, createQuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-SCUYG24W.mjs';
|
|
6
|
+
import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, archiveStream, buildArchiveFromMemory, indexMetadataOf, applyIndexEntry, applyDeleteEntry, documentExportStream, followSourceChanges, requireChangesSetting, resolveAnalysisTarget, requireConfigurationWithinSizeLimit, memoryCheckpointStore, createByteReader, writeArchiveFile, namedSettingsOf, createDetachedIndex, loadPartitionSegments, changesStatusOf, holdsSettings, configOfNamedSettings, closePartitionWriter, requireRestoreMemory, archiveFootprint, storedBytesOfSegments, validateReplicationEntry, readSegmentManifest, replaySyncedWal, nestedSchemaOf } from './chunk-Z622PLNH.mjs';
|
|
7
|
+
import { readVectorFile } from './chunk-IALJ2X74.mjs';
|
|
8
8
|
import { addBackgroundAdmission, workWaitingForMemory, resolveHybridFusion, fuseRankings } from './chunk-GXED6R3Q.mjs';
|
|
9
9
|
import { UNADDRESSABLE_TARGET_DETAIL, MAX_MESSAGE_SIZE_BYTES } from './chunk-HZ3OAUTL.mjs';
|
|
10
|
-
import { bindEngineWriteBlock, bindIndexReads, syncServingSourceOf, bindSyncServing, changesServingSourceOf, bindChangesServing, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, bindWriteBlockLookup, backupKeys, validateBackupName, CHANGES_BACKUP_TAKER, BACKUP_MANIFEST_READS_AT_ONCE, storedFilesOf, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, isBackupTaker, readRestorePlacement, SYNC_BACKUP_TAKER, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, SYNC_BACKUPS_KEPT, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-
|
|
11
|
-
import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, readIndexMetadataSnapshot, indexConfigKey, metadataWithSync, suggestionStateOfSettings, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, indexMetadataSnapshotOf, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, isRecord2, decodeIndexSettings, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, syncSettingsOfSnapshot, epochFeaturesOn, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState, UNFED_REPLICA_CHECK_INTERVAL_MS, UNFED_REPLICA_RESYNC_MS } from './chunk-
|
|
10
|
+
import { bindEngineWriteBlock, bindIndexReads, syncServingSourceOf, bindSyncServing, changesServingSourceOf, bindChangesServing, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, bindWriteBlockLookup, backupKeys, validateBackupName, CHANGES_BACKUP_TAKER, BACKUP_MANIFEST_READS_AT_ONCE, storedFilesOf, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, isBackupTaker, readRestorePlacement, SYNC_BACKUP_TAKER, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, SYNC_BACKUPS_KEPT, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-BVFJ5XAU.mjs';
|
|
11
|
+
import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, readIndexMetadataSnapshot, indexConfigKey, metadataWithSync, suggestionStateOfSettings, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, indexMetadataSnapshotOf, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, isRecord2, decodeIndexSettings, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, syncSettingsOfSnapshot, epochFeaturesOn, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState, UNFED_REPLICA_CHECK_INTERVAL_MS, UNFED_REPLICA_RESYNC_MS } from './chunk-UJQ2S5QU.mjs';
|
|
12
12
|
import './chunk-4H4RG2FR.mjs';
|
|
13
|
-
import { MAX_WAIT_FOR_ACTIVE_REPLICAS, MIN_CONTROLLER_LEASE_TTL_MS, MAX_NODE_LEFT_DELAY_MS, DEFAULT_MAX_PER_SOURCE_SNAPSHOTS, DEFAULT_MAX_STREAMS_PER_INDEX, DEFAULT_CAPACITY, CATCH_UP_TICK_MS, MEMORY_SAMPLE_INTERVAL_MS, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, SETTINGS_CONTENTION_REASON, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, DROP_ACKNOWLEDGE_POLL_INTERVAL_MS, COORDINATOR_REQUEST_BUCKET_BOUNDS_SECONDS, COPY_FAILURE_ATTEMPTS, SEARCH_CONTEXT_REAPER_INTERVAL_MS, DECOMMISSION_RECHECK_INTERVAL_MS, refuseEncodeWithoutRoom, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, MAX_SOURCE_ID_LENGTH, ADMISSION_TIMEOUT_MS, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, ADMISSION_RETRIES_AFTER_IN_SYNC_CHANGE, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, OUT_OF_STEP_REMOVAL_RETRY_INITIAL_DELAY_MS, OUT_OF_STEP_REMOVAL_RETRY_DELAY_CAP_MS, FETCH_GROUP_DOCUMENT_IDS, COPY_FAILURE_RETRY_DELAY_MS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-
|
|
14
|
-
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-
|
|
15
|
-
import { encodeIndexConfiguration, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, decodeIndexConfiguration, requireSyncSetting, requireNoQuerySuggestions, validChangeFilter, createDocumentTest, INDEX_CONFIGURATION_ENVELOPE_VERSION, changesNotEnabled } from './chunk-
|
|
13
|
+
import { MAX_WAIT_FOR_ACTIVE_REPLICAS, MIN_CONTROLLER_LEASE_TTL_MS, MAX_NODE_LEFT_DELAY_MS, DEFAULT_MAX_PER_SOURCE_SNAPSHOTS, DEFAULT_MAX_STREAMS_PER_INDEX, DEFAULT_CAPACITY, CATCH_UP_TICK_MS, MEMORY_SAMPLE_INTERVAL_MS, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, SETTINGS_CONTENTION_REASON, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, DROP_ACKNOWLEDGE_POLL_INTERVAL_MS, COORDINATOR_REQUEST_BUCKET_BOUNDS_SECONDS, COPY_FAILURE_ATTEMPTS, SEARCH_CONTEXT_REAPER_INTERVAL_MS, DECOMMISSION_RECHECK_INTERVAL_MS, refuseEncodeWithoutRoom, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, MAX_SOURCE_ID_LENGTH, ADMISSION_TIMEOUT_MS, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, ADMISSION_RETRIES_AFTER_IN_SYNC_CHANGE, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, OUT_OF_STEP_REMOVAL_RETRY_INITIAL_DELAY_MS, OUT_OF_STEP_REMOVAL_RETRY_DELAY_CAP_MS, FETCH_GROUP_DOCUMENT_IDS, COPY_FAILURE_RETRY_DELAY_MS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-KHZ6LAFB.mjs';
|
|
14
|
+
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-KHZ6LAFB.mjs';
|
|
15
|
+
import { encodeIndexConfiguration, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, decodeIndexConfiguration, requireSyncSetting, requireNoQuerySuggestions, validChangeFilter, createDocumentTest, INDEX_CONFIGURATION_ENVELOPE_VERSION, changesNotEnabled } from './chunk-CVCBVUH4.mjs';
|
|
16
16
|
import { restoredConfigFields, restoredEmbedding } from './chunk-UGMOBSMD.mjs';
|
|
17
|
-
import { readSnapshotArchive, archiveLayout, openManifestPayload, sourceIndexNameOf, listedKeysOf, decodeManifestPayload, estimatedArchiveBytes } from './chunk-
|
|
17
|
+
import { readSnapshotArchive, archiveLayout, openManifestPayload, sourceIndexNameOf, listedKeysOf, decodeManifestPayload, estimatedArchiveBytes } from './chunk-I255IQTR.mjs';
|
|
18
18
|
import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
|
|
19
19
|
import './chunk-T4HMSZCX.mjs';
|
|
20
|
-
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, DEFAULT_LOG_RETENTION_BYTES, buildEntry, invalidReplicationPayload, optionalIndexUuid, validateForwardOperation, entryByteEstimate, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, createInsyncRemoveMessage, SNAPSHOT_CHUNK_SIZE, createEntryBatchMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, createInsyncConfirmMessage, checkpointLastSeqNo, checkpointPrimaryTerm, INSYNC_CAS_ATTEMPTS, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-
|
|
21
|
-
import { directoryCheckpointStore, readListedFile, encodeSegmentManifest } from './chunk-
|
|
20
|
+
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, DEFAULT_LOG_RETENTION_BYTES, buildEntry, invalidReplicationPayload, optionalIndexUuid, validateForwardOperation, entryByteEstimate, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, createInsyncRemoveMessage, SNAPSHOT_CHUNK_SIZE, createEntryBatchMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, createInsyncConfirmMessage, checkpointLastSeqNo, checkpointPrimaryTerm, INSYNC_CAS_ATTEMPTS, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-B6VO3BCX.mjs';
|
|
21
|
+
import { directoryCheckpointStore, readListedFile, encodeSegmentManifest } from './chunk-QWYIMVYT.mjs';
|
|
22
22
|
import { TransportErrorCodes, ClusterMessageTypes, ReplicationMessageTypes, SuggestionMessageTypes, SyncMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-5FLRXF73.mjs';
|
|
23
23
|
import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-JDDXV6UF.mjs';
|
|
24
|
-
import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-
|
|
24
|
+
import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-ICEZRKIS.mjs';
|
|
25
25
|
import './chunk-S5QMWECL.mjs';
|
|
26
26
|
import './chunk-LNGE7SLY.mjs';
|
|
27
27
|
import './chunk-L2GYY6KY.mjs';
|
|
28
|
-
import './chunk-
|
|
29
|
-
import { deserializePartition } from './chunk-
|
|
28
|
+
import './chunk-AKLCYPUY.mjs';
|
|
29
|
+
import { deserializePartition } from './chunk-HNE4HNC2.mjs';
|
|
30
30
|
import { decodeVectorFilePayload, bytesToVectors, isDead, MIN_EF_SEARCH, MAX_EF_SEARCH, MIN_OVERSAMPLE } from './chunk-R724DJSG.mjs';
|
|
31
|
-
import './chunk-
|
|
32
|
-
import { RestoredHistory } from './chunk-
|
|
31
|
+
import './chunk-B276ZQIH.mjs';
|
|
32
|
+
import { RestoredHistory } from './chunk-CHGJGKST.mjs';
|
|
33
33
|
import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
|
|
34
|
-
import { historyFilesOf, removeHistoryFolder, QUERY_HISTORY_FOLDER, RESTORE_STAGING_INFIX, openChecksummedEnvelope, historyFolderOf, listHistoryFolder, historyFileOf, COUNTS_STREAM_CHUNK_BYTES, BUILD_WRITE_BATCH, restoreStagingPrefix, crc32Init, crc32Final, crc32Update, MAX_COUNTS_STREAM_KEY_BYTES, MAX_HISTORY_FILE_BYTES, packChecksummedEnvelope, storedStateOf } from './chunk-
|
|
34
|
+
import { historyFilesOf, removeHistoryFolder, QUERY_HISTORY_FOLDER, RESTORE_STAGING_INFIX, openChecksummedEnvelope, historyFolderOf, listHistoryFolder, historyFileOf, COUNTS_STREAM_CHUNK_BYTES, BUILD_WRITE_BATCH, restoreStagingPrefix, crc32Init, crc32Final, crc32Update, MAX_COUNTS_STREAM_KEY_BYTES, MAX_HISTORY_FILE_BYTES, packChecksummedEnvelope, storedStateOf } from './chunk-R5OFJZNI.mjs';
|
|
35
35
|
import { boundQuerySuggestionsOf, bindQuerySuggestions } from './chunk-S2POFTLN.mjs';
|
|
36
|
-
import { oversampledShardSize, runtimeHost, bindRerankWindowSource, rerankWindowCapOf, validateMemoryFractions, requireKnownConfig, importOptionalReads, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, emitEngineEvent, synonymModule, createEngineIndex, generateId, documentChurnOf, isCompositePartition, getLanguage, resolveIndexAnalysis, memoryFractionsOf, createMemoryMonitor, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields,
|
|
36
|
+
import { oversampledShardSize, runtimeHost, bindRerankWindowSource, rerankWindowCapOf, validateMemoryFractions, requireKnownConfig, importOptionalReads, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, emitEngineEvent, synonymModule, createEngineIndex, generateId, documentChurnOf, isCompositePartition, getLanguage, resolveIndexAnalysis, memoryFractionsOf, createMemoryMonitor, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, validateBooleanOnlySettings, bm25SetsValue, prepareConfiguredSynonyms, storedArrayPositionGap, updateDocumentVectors, arrayPositionsAreStale, fnv1a, readRecentMemoryFigures, normalizeSort, sortModesOf, noteDocumentChurn, MAP_TABLE_MIN_CAPACITY, MAP_TABLE_SHRINK_DIVISOR, resolveProjection, applyProjection, requireLoadedOptionalReads, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, validateBM25Shape, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, hasLanguage, FIELD_FILTER_OPERATORS, yieldToEventLoop, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, customTokensOf, visitTokens, getVectorFieldPaths, resolvePartitionInsertOptions, clampRowCount, now, sortSignatureOf, listBindingOf, requireMatchingCursor, decodePageCursor, encodePageCursor, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, clampLimit, requireWithinResultWindow, providedDocId, MAP_TABLE_HEADER_BYTES, MAP_TABLE_SLOT_BYTES, holdsQuotedText, queryBindingOf, engineCoreOf, sortSignatureEntry, fnv1aUint32s, loadRerankRuntime, mergePartitionStats, mergeEntries, regionsOverlap, compareScores } from './chunk-4QNWK42S.mjs';
|
|
37
37
|
import { encodeDocument, encodeDocumentReply } from './chunk-2CKDCC65.mjs';
|
|
38
38
|
import { collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal, onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes } from './chunk-BRTABNC7.mjs';
|
|
39
39
|
import { decode } from './chunk-Y7GXGJFZ.mjs';
|
|
@@ -7162,7 +7162,7 @@ async function routeCreateIndex(name, requestedConfig, options, coordinator, eng
|
|
|
7162
7162
|
const config = { ...requestedConfig, schema: validateSchema(requestedConfig.schema) };
|
|
7163
7163
|
requireCreatableSchema(config.schema);
|
|
7164
7164
|
requireSurfaceFormsForPartialFields(config.schema, config.surfaceForms);
|
|
7165
|
-
|
|
7165
|
+
validateBooleanOnlySettings(config);
|
|
7166
7166
|
if (config.bm25 !== void 0) validateBM25Params(config.bm25, config.schema, ErrorCodes.CONFIG_INVALID);
|
|
7167
7167
|
const setsFieldPairs = config.bm25?.fields !== void 0 && bm25SetsValue({ fields: config.bm25.fields });
|
|
7168
7168
|
if (setsFieldPairs) {
|
|
@@ -15957,7 +15957,7 @@ async function openOnce(core, indexName, partitionId) {
|
|
|
15957
15957
|
if (directory === void 0) throw durabilityRequired(indexName, partitionId);
|
|
15958
15958
|
if ((checkpoint.manifest.analysisGeneration ?? 0) !== entry.analysisGeneration) return null;
|
|
15959
15959
|
const config = await encodeIndexConfiguration(entry);
|
|
15960
|
-
const { openPagedPartitionArchive } = await import('./paged-partition-archive-
|
|
15960
|
+
const { openPagedPartitionArchive } = await import('./paged-partition-archive-XCETVLZW.mjs');
|
|
15961
15961
|
const archive = await openPagedPartitionArchive(checkpoint, directory, indexName, partitionId, manager);
|
|
15962
15962
|
handedOver = true;
|
|
15963
15963
|
try {
|
|
@@ -16672,7 +16672,7 @@ async function archiveReplicationPartition(core, indexName, partitionId, lastSeq
|
|
|
16672
16672
|
);
|
|
16673
16673
|
}
|
|
16674
16674
|
try {
|
|
16675
|
-
const { openPagedPartitionArchive } = await import('./paged-partition-archive-
|
|
16675
|
+
const { openPagedPartitionArchive } = await import('./paged-partition-archive-XCETVLZW.mjs');
|
|
16676
16676
|
const archive = await openPagedPartitionArchive(checkpoint2, directory, indexName, partitionId, manager);
|
|
16677
16677
|
return {
|
|
16678
16678
|
stream: archiveStream({ ...archive, config, sourceIndexName: indexName }),
|
|
@@ -16887,7 +16887,7 @@ async function restoreReplicationPartition(core, engine, indexName, partitionId,
|
|
|
16887
16887
|
if (directory !== null) {
|
|
16888
16888
|
const durable = core.durability?.manager;
|
|
16889
16889
|
await (durable?.checkpointFromMemory?.(indexName) ?? durable?.checkpoint(indexName));
|
|
16890
|
-
const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-
|
|
16890
|
+
const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-XCETVLZW.mjs');
|
|
16891
16891
|
await removeReceivedFilesNothingReads(
|
|
16892
16892
|
directory,
|
|
16893
16893
|
core.requireManager(indexName),
|
|
@@ -20774,7 +20774,7 @@ async function queryCluster(deps, indexName, params, settingName) {
|
|
|
20774
20774
|
(reader) => searchCluster(deps, search, params, reader, false)
|
|
20775
20775
|
);
|
|
20776
20776
|
}
|
|
20777
|
-
const { rerankClusterQuery } = await import('./rerank-
|
|
20777
|
+
const { rerankClusterQuery } = await import('./rerank-OJLSVUYV.mjs');
|
|
20778
20778
|
return withRankedReader(
|
|
20779
20779
|
deps,
|
|
20780
20780
|
indexName,
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-J343PP7Q.mjs';
|
|
2
2
|
import './browser/chunk-HIC42RBU.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
4
|
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-3PGIOK7Z.mjs';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './chunk-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './chunk-4QNWK42S.mjs';
|
|
2
2
|
import './chunk-2CKDCC65.mjs';
|
|
3
3
|
import './chunk-BRTABNC7.mjs';
|
|
4
4
|
import './chunk-Y7GXGJFZ.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './react-native/chunks/chunk-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, isSimdAvailable, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './react-native/chunks/chunk-QT2G6OMI.mjs';
|
|
2
2
|
import './react-native/chunks/chunk-QFPZ3VKE.mjs';
|
|
3
3
|
import './react-native/chunks/chunk-XE7AMKEW.mjs';
|
|
4
4
|
import './react-native/chunks/chunk-LX62Y4B5.mjs';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-
|
|
2
|
-
import { answerRequest } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-2QQCR7KF.mjs';
|
|
2
|
+
import { answerRequest } from './chunk-IVVNKTHC.mjs';
|
|
3
|
+
import './chunk-UFDD57KD.mjs';
|
|
4
4
|
import './chunk-TACP6VK6.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
5
|
+
import './chunk-KHZ6LAFB.mjs';
|
|
6
|
+
import './chunk-I255IQTR.mjs';
|
|
7
|
+
import './chunk-ICEZRKIS.mjs';
|
|
8
8
|
import './chunk-S5QMWECL.mjs';
|
|
9
9
|
import './chunk-LNGE7SLY.mjs';
|
|
10
10
|
import './chunk-L2GYY6KY.mjs';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import './chunk-AKLCYPUY.mjs';
|
|
12
|
+
import './chunk-HNE4HNC2.mjs';
|
|
13
13
|
import './chunk-R724DJSG.mjs';
|
|
14
14
|
import './chunk-V6EUBAIT.mjs';
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
15
|
+
import './chunk-R5OFJZNI.mjs';
|
|
16
|
+
import './chunk-4QNWK42S.mjs';
|
|
17
17
|
import './chunk-2CKDCC65.mjs';
|
|
18
18
|
import './chunk-BRTABNC7.mjs';
|
|
19
19
|
import './chunk-Y7GXGJFZ.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { applyStoredIndexBm25, updateIndexBm25 } from './chunk-
|
|
2
|
-
import { readHeapStatistics, loadSchemaCodeFor, loadStorageCode, lookupOfStoredSynonyms, reconstructSchemaFromMetadata, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, prepareStoredSynonyms, getVectorFieldPaths, arrayPositionsAreStale, validatePartitionConfig, validateEmbeddingConfig } from './chunk-
|
|
3
|
-
export { bindOptionalWritesHost, holdVectorsForRollback, insertDocument, insertDocumentBatch, prepareDocumentWrite, removeDocument, removeDocumentBatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, updateDocument, updateDocumentBatch } from './chunk-
|
|
1
|
+
export { applyStoredIndexBm25, updateIndexBm25 } from './chunk-TNBOFWDS.mjs';
|
|
2
|
+
import { readHeapStatistics, loadSchemaCodeFor, loadStorageCode, lookupOfStoredSynonyms, reconstructSchemaFromMetadata, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, prepareStoredSynonyms, getVectorFieldPaths, arrayPositionsAreStale, validatePartitionConfig, validateEmbeddingConfig } from './chunk-4QNWK42S.mjs';
|
|
3
|
+
export { bindOptionalWritesHost, holdVectorsForRollback, insertDocument, insertDocumentBatch, prepareDocumentWrite, removeDocument, removeDocumentBatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, updateDocument, updateDocumentBatch } from './chunk-4QNWK42S.mjs';
|
|
4
4
|
import './chunk-2CKDCC65.mjs';
|
|
5
5
|
import './chunk-BRTABNC7.mjs';
|
|
6
6
|
import './chunk-Y7GXGJFZ.mjs';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { resolvePartitionId } from './chunk-
|
|
2
|
-
import { readVectorFile, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { resolvePartitionId } from './chunk-N3DJTTKK.mjs';
|
|
2
|
+
import { readVectorFile, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-IALJ2X74.mjs';
|
|
3
|
+
import './chunk-UJQ2S5QU.mjs';
|
|
4
4
|
import './chunk-UGMOBSMD.mjs';
|
|
5
|
-
import { encodeSegmentManifest, loadFailed, directoryCheckpointStore, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES } from './chunk-
|
|
5
|
+
import { encodeSegmentManifest, loadFailed, directoryCheckpointStore, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES } from './chunk-QWYIMVYT.mjs';
|
|
6
6
|
import { PARTITION_COPY_VECTOR_RUN_BYTES } from './chunk-JDDXV6UF.mjs';
|
|
7
|
-
import { segmentsPrefix, vectorFileKey } from './chunk-
|
|
7
|
+
import { segmentsPrefix, vectorFileKey } from './chunk-ICEZRKIS.mjs';
|
|
8
8
|
import './chunk-S5QMWECL.mjs';
|
|
9
9
|
import './chunk-LNGE7SLY.mjs';
|
|
10
10
|
import './chunk-L2GYY6KY.mjs';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import './chunk-AKLCYPUY.mjs';
|
|
12
|
+
import './chunk-HNE4HNC2.mjs';
|
|
13
13
|
import { vectorsPerFile, isDead, VECTOR_FILE_PAYLOAD_VERSION } from './chunk-R724DJSG.mjs';
|
|
14
14
|
import './chunk-V6EUBAIT.mjs';
|
|
15
|
-
import { HEADER_SIZE, crc32Init, crc32Final, engineVersionParts, writeHeader, RESERVED_SIZE, crc32Update } from './chunk-
|
|
16
|
-
import { generateId, isCompositePartition } from './chunk-
|
|
15
|
+
import { HEADER_SIZE, crc32Init, crc32Final, engineVersionParts, writeHeader, RESERVED_SIZE, crc32Update } from './chunk-R5OFJZNI.mjs';
|
|
16
|
+
import { generateId, isCompositePartition } from './chunk-4QNWK42S.mjs';
|
|
17
17
|
import './chunk-2CKDCC65.mjs';
|
|
18
18
|
import './chunk-BRTABNC7.mjs';
|
|
19
19
|
import { decode } from './chunk-Y7GXGJFZ.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, RUN_TABLE_START_CAPACITY, TERM_REGION_GROWTH_FACTOR, RUN_MEMBER_START_CAPACITY, SLICE_CAPACITIES, TERM_SLOT_LOAD_DENOMINATOR, TERM_SLOT_LOAD_NUMERATOR, PoolPlan, requireRoom, releaseRange, requireSegment, termText, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, DEFAULT_FUZZY_PREFIX_LENGTH, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, FNV_OFFSET_BASIS, typedRegion, regionsOverlap, mergeText, FNV_PRIME } from './browser/chunk-
|
|
1
|
+
import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, RUN_TABLE_START_CAPACITY, TERM_REGION_GROWTH_FACTOR, RUN_MEMBER_START_CAPACITY, SLICE_CAPACITIES, TERM_SLOT_LOAD_DENOMINATOR, TERM_SLOT_LOAD_NUMERATOR, PoolPlan, requireRoom, releaseRange, requireSegment, termText, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, DEFAULT_FUZZY_PREFIX_LENGTH, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, FNV_OFFSET_BASIS, typedRegion, regionsOverlap, mergeText, FNV_PRIME } from './browser/chunk-J343PP7Q.mjs';
|
|
2
2
|
import { fuzzyTermMatches, storedText } from './browser/chunk-HIC42RBU.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
4
|
import { compareCodePoints, codePointCount, NarsilError, ErrorCodes } from './browser/chunk-3PGIOK7Z.mjs';
|
package/dist/partial-words.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { createDurableDirectory } from '../../chunk-57HDOVEE.mjs';
|
|
2
|
-
import { writeCheckpointSegments } from '../../chunk-
|
|
3
|
-
import { directoryCheckpointStore } from '../../chunk-
|
|
2
|
+
import { writeCheckpointSegments } from '../../chunk-B6VO3BCX.mjs';
|
|
3
|
+
import { directoryCheckpointStore } from '../../chunk-QWYIMVYT.mjs';
|
|
4
4
|
import '../../chunk-5FLRXF73.mjs';
|
|
5
5
|
import '../../chunk-JDDXV6UF.mjs';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-ICEZRKIS.mjs';
|
|
7
7
|
import '../../chunk-S5QMWECL.mjs';
|
|
8
8
|
import '../../chunk-LNGE7SLY.mjs';
|
|
9
9
|
import '../../chunk-L2GYY6KY.mjs';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-AKLCYPUY.mjs';
|
|
11
|
+
import '../../chunk-HNE4HNC2.mjs';
|
|
12
12
|
import '../../chunk-R724DJSG.mjs';
|
|
13
13
|
import '../../chunk-V6EUBAIT.mjs';
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import { importOptionalReads, loadGeoCodeFor } from '../../chunk-
|
|
14
|
+
import '../../chunk-R5OFJZNI.mjs';
|
|
15
|
+
import { importOptionalReads, loadGeoCodeFor } from '../../chunk-4QNWK42S.mjs';
|
|
16
16
|
import '../../chunk-2CKDCC65.mjs';
|
|
17
17
|
import '../../chunk-BRTABNC7.mjs';
|
|
18
18
|
import '../../chunk-Y7GXGJFZ.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadPhraseCodeFor, loadCursorPageFor, loadGroupingFor, loadPinningFor, loadFacetMergesFor, loadSortingFor, loadPrefixFor, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, documentsOf, rankPage, fillHits } from './chunk-
|
|
1
|
+
import { loadPhraseCodeFor, loadCursorPageFor, loadGroupingFor, loadPinningFor, loadFacetMergesFor, loadSortingFor, loadPrefixFor, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, documentsOf, rankPage, fillHits } from './chunk-4QNWK42S.mjs';
|
|
2
2
|
import './chunk-2CKDCC65.mjs';
|
|
3
3
|
import './chunk-BRTABNC7.mjs';
|
|
4
4
|
import './chunk-Y7GXGJFZ.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Merger } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { Merger } from '../chunk-B276ZQIH.mjs';
|
|
2
|
+
import '../chunk-CHGJGKST.mjs';
|
|
3
3
|
import '../chunk-V6EUBAIT.mjs';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-R5OFJZNI.mjs';
|
|
5
|
+
import '../chunk-4QNWK42S.mjs';
|
|
6
6
|
import '../chunk-2CKDCC65.mjs';
|
|
7
7
|
import '../chunk-BRTABNC7.mjs';
|
|
8
8
|
import '../chunk-Y7GXGJFZ.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './browser/chunk-
|
|
1
|
+
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './browser/chunk-J343PP7Q.mjs';
|
|
2
2
|
import './browser/chunk-HIC42RBU.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
4
|
import { NarsilError, ErrorCodes } from './browser/chunk-3PGIOK7Z.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { querySuggestions } from './chunk-
|
|
1
|
+
export { querySuggestions } from './chunk-5PUNOJC7.mjs';
|
|
2
2
|
import './chunk-S2POFTLN.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-4QNWK42S.mjs';
|
|
4
4
|
import './chunk-2CKDCC65.mjs';
|
|
5
5
|
import './chunk-BRTABNC7.mjs';
|
|
6
6
|
import './chunk-Y7GXGJFZ.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSurfaceRegistry, SegmentRefusal, encodeSurfaceTable, encodePartialSpellingsOf, encodeStringBlob, mergeTextAt, generateId, encodeExternalIdTableData, buildPartialWordTableFrom, wrapFrozenTokenTable, encodeDocumentTableData, topLevelMapKeys, mergeStoredFields, prepareDocumentText, recordValueSize, patternIndexOf, encodeFieldIndexes, mergeFieldRegions, sameFields, partialSpellingsOfDocuments, storedDocumentsOf, encodeFrozenTokenTableData, mergeKeywordSources, GrowingSegment, LivePostings, createSpellingTable, createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex } from './chunk-
|
|
1
|
+
import { createSurfaceRegistry, SegmentRefusal, encodeSurfaceTable, encodePartialSpellingsOf, encodeStringBlob, mergeTextAt, generateId, encodeExternalIdTableData, buildPartialWordTableFrom, wrapFrozenTokenTable, encodeDocumentTableData, topLevelMapKeys, mergeStoredFields, prepareDocumentText, recordValueSize, patternIndexOf, encodeFieldIndexes, mergeFieldRegions, sameFields, partialSpellingsOfDocuments, storedDocumentsOf, encodeFrozenTokenTableData, mergeKeywordSources, GrowingSegment, LivePostings, createSpellingTable, createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex } from './chunk-QT2G6OMI.mjs';
|
|
2
2
|
import { storedText, bitsetIterator } from './chunk-BIORJHQZ.mjs';
|
|
3
3
|
import { encodeDocument } from './chunk-DN4FT62B.mjs';
|
|
4
4
|
import { schemaFieldsOf, getNestedValue, isWordIndexedBase, validateDocument, validateDocumentStrict } from './chunk-CBG4EUYD.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MAX_HISTORY_FILE_BYTES, openChecksummedEnvelope, KEY_FINGERPRINT_BYTES, DAY_MS, dayFileKey, SCRAMBLED_ID_BYTES, restoreStagingPrefix, resolveSetting, QUERY_HISTORY_ARCHIVE_PREFIX, restoredFileKey, attachedRuntimeOf, MAX_INDEX_UUID_LENGTH, HEADER_SIZE, isGroup, isNormalPhrase, MAX_MAX_LENGTH, MAX_MAX_WORDS, listHistoryFolder, historyFileOf, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS, packEnvelopeWithChecksum, crc32, MAX_PEOPLE_PER_PHRASE_IN_FILE } from './chunk-
|
|
2
|
-
import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-
|
|
1
|
+
import { MAX_HISTORY_FILE_BYTES, openChecksummedEnvelope, KEY_FINGERPRINT_BYTES, DAY_MS, dayFileKey, SCRAMBLED_ID_BYTES, restoreStagingPrefix, resolveSetting, QUERY_HISTORY_ARCHIVE_PREFIX, restoredFileKey, attachedRuntimeOf, MAX_INDEX_UUID_LENGTH, HEADER_SIZE, isGroup, isNormalPhrase, MAX_MAX_LENGTH, MAX_MAX_WORDS, listHistoryFolder, historyFileOf, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS, packEnvelopeWithChecksum, crc32, MAX_PEOPLE_PER_PHRASE_IN_FILE } from './chunk-QZUFYRFX.mjs';
|
|
2
|
+
import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-QT2G6OMI.mjs';
|
|
3
3
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
4
4
|
|
|
5
5
|
// src/query-suggestions/engine-hooks.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadStorageCode, resolvePartialWordAnalysis, resolvePartitionInsertOptions, yieldToEventLoop, createPartitionIndex, writePartitionDocument } from './chunk-
|
|
1
|
+
import { loadStorageCode, resolvePartialWordAnalysis, resolvePartitionInsertOptions, yieldToEventLoop, createPartitionIndex, writePartitionDocument } from './chunk-QT2G6OMI.mjs';
|
|
2
2
|
|
|
3
3
|
// src/partitioning/constants.ts
|
|
4
4
|
var REBALANCE_CHUNK_SIZE = 1e3;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex, rebuildSizeIndexes, requirePatternSearch, patternIndexOf } from './chunk-
|
|
1
|
+
import { createNumericIndex, createBooleanIndex, createEnumIndex, createLoadedGeoIndex, rebuildSizeIndexes, requirePatternSearch, patternIndexOf } from './chunk-QT2G6OMI.mjs';
|
|
2
2
|
import { getFlatSchema, schemaFieldsOf, getNestedValue } from './chunk-CBG4EUYD.mjs';
|
|
3
3
|
|
|
4
4
|
// src/core/partition/pattern-snapshot.ts
|
|
@@ -2491,6 +2491,15 @@ function requireVectorsSwitch(vectors) {
|
|
|
2491
2491
|
received: vectors === null ? "null" : typeof vectors
|
|
2492
2492
|
});
|
|
2493
2493
|
}
|
|
2494
|
+
function projectionFields(projection) {
|
|
2495
|
+
if (projection === void 0 || projection === null || projection === true) return void 0;
|
|
2496
|
+
if (typeof projection === "object" && !Array.isArray(projection)) return projection;
|
|
2497
|
+
throw new NarsilError(
|
|
2498
|
+
ErrorCodes.SEARCH_INVALID_FIELD,
|
|
2499
|
+
'The "document" option takes true, false, or an object of field path lists',
|
|
2500
|
+
{ option: "document", received: Array.isArray(projection) ? "array" : typeof projection }
|
|
2501
|
+
);
|
|
2502
|
+
}
|
|
2494
2503
|
function samePath(a, b) {
|
|
2495
2504
|
return a.length === b.length && covers(a, b);
|
|
2496
2505
|
}
|
|
@@ -2501,7 +2510,7 @@ function returnsVectorField(field, vectors, include, returnVectors) {
|
|
|
2501
2510
|
}
|
|
2502
2511
|
function resolveProjection(projection, index) {
|
|
2503
2512
|
if (projection === false) return NO_FIELD;
|
|
2504
|
-
const shaped =
|
|
2513
|
+
const shaped = projectionFields(projection);
|
|
2505
2514
|
if (shaped !== void 0) {
|
|
2506
2515
|
requireFieldPathList(shaped.include, "include");
|
|
2507
2516
|
requireFieldPathList(shaped.exclude, "exclude");
|
|
@@ -5447,11 +5456,15 @@ function validatePatternValueLimit(limit) {
|
|
|
5447
5456
|
);
|
|
5448
5457
|
}
|
|
5449
5458
|
}
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5459
|
+
var BOOLEAN_ONLY_SETTINGS = ["returnVectors", "strict", "surfaceForms", "trackPositions"];
|
|
5460
|
+
function validateBooleanOnlySettings(config) {
|
|
5461
|
+
for (const setting of BOOLEAN_ONLY_SETTINGS) {
|
|
5462
|
+
const given = config[setting];
|
|
5463
|
+
if (given === void 0 || typeof given === "boolean") continue;
|
|
5464
|
+
throw new NarsilError(ErrorCodes.CONFIG_INVALID, `${setting} must be true or false`, {
|
|
5465
|
+
[setting]: given === null ? "null" : typeof given
|
|
5466
|
+
});
|
|
5467
|
+
}
|
|
5455
5468
|
}
|
|
5456
5469
|
function requirePositiveSafeInteger(field, value) {
|
|
5457
5470
|
if (value === void 0) return;
|
|
@@ -8712,7 +8725,7 @@ function resolvePartitionInsertOptions(config, analysis, options) {
|
|
|
8712
8725
|
|
|
8713
8726
|
// src/core/segment-codec-code.ts
|
|
8714
8727
|
var segmentCodec = codeLoader(async () => {
|
|
8715
|
-
const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./segment-codec-leaf-
|
|
8728
|
+
const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./segment-codec-leaf-IM6YCP7M.mjs')]);
|
|
8716
8729
|
code7.bindSegmentCodecHost(optionalCodeHost(), msgpack);
|
|
8717
8730
|
return code7;
|
|
8718
8731
|
}, "segment codec");
|
|
@@ -8723,7 +8736,7 @@ var segmentMerge = codeLoader(async () => {
|
|
|
8723
8736
|
const [msgpack, codec, code7] = await Promise.all([
|
|
8724
8737
|
loadMessagePack(),
|
|
8725
8738
|
loadSegmentCodec(),
|
|
8726
|
-
import('./segment-merge-leaf-
|
|
8739
|
+
import('./segment-merge-leaf-32YR2ZTM.mjs')
|
|
8727
8740
|
]);
|
|
8728
8741
|
code7.bindSegmentMergeHost(optionalCodeHost(), msgpack, codec);
|
|
8729
8742
|
return code7;
|
|
@@ -8732,7 +8745,7 @@ var loadSegmentMerge = segmentMerge.load;
|
|
|
8732
8745
|
|
|
8733
8746
|
// src/query-suggestions/store-code.ts
|
|
8734
8747
|
var suggestionStore = codeLoader(async () => {
|
|
8735
|
-
const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./store-leaf-
|
|
8748
|
+
const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./store-leaf-YQXG6NOD.mjs')]);
|
|
8736
8749
|
code7.bindSuggestionStoreHost(optionalCodeHost(), msgpack);
|
|
8737
8750
|
return code7;
|
|
8738
8751
|
}, "query suggestions store");
|
|
@@ -8813,7 +8826,7 @@ var storageCode = codeLoader(async () => {
|
|
|
8813
8826
|
loadSegmentMerge(),
|
|
8814
8827
|
loadSuggestionStore(),
|
|
8815
8828
|
loadVectorCore(),
|
|
8816
|
-
import('./storage-leaf-
|
|
8829
|
+
import('./storage-leaf-RKI6S6T5.mjs')
|
|
8817
8830
|
]);
|
|
8818
8831
|
code7.bindStorageHost(optionalCodeHost(), digest2, msgpack, segmentCodec2, segmentMerge2, suggestionStore2, vectorCore2);
|
|
8819
8832
|
return code7;
|
|
@@ -18201,6 +18214,7 @@ function bindSegmentCodecHost(_host, _msgpack) {
|
|
|
18201
18214
|
|
|
18202
18215
|
// src/serialization/msgpack-without-fields.ts
|
|
18203
18216
|
var FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
18217
|
+
var MSGPACK_NIL = 192;
|
|
18204
18218
|
var keyDecoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
18205
18219
|
var walkedHeader = { headerBytes: 0, bodyBytes: 0, children: 0 };
|
|
18206
18220
|
function endOfValue(view, start) {
|
|
@@ -18260,7 +18274,7 @@ function decodeMapWithoutFields(bytes, skippedFields) {
|
|
|
18260
18274
|
if (key === null || FORBIDDEN_KEYS.has(key.key)) return null;
|
|
18261
18275
|
const valueEnd = endOfValue(view, key.end);
|
|
18262
18276
|
if (valueEnd === null) return null;
|
|
18263
|
-
if (!skippedFields.has(key.key)) {
|
|
18277
|
+
if (!skippedFields.has(key.key) || view.getUint8(key.end) === MSGPACK_NIL) {
|
|
18264
18278
|
try {
|
|
18265
18279
|
document[key.key] = decode(bytes.subarray(key.end, valueEnd));
|
|
18266
18280
|
} catch {
|
|
@@ -18379,7 +18393,8 @@ function removeFieldAtPath(document, fieldPath) {
|
|
|
18379
18393
|
if (next === null || typeof next !== "object" || Array.isArray(next)) return;
|
|
18380
18394
|
current = next;
|
|
18381
18395
|
}
|
|
18382
|
-
|
|
18396
|
+
const leaf = segments2[segments2.length - 1];
|
|
18397
|
+
if (current[leaf] !== null) delete current[leaf];
|
|
18383
18398
|
}
|
|
18384
18399
|
function decodeStoredDocument(bytes, discardedFields) {
|
|
18385
18400
|
let decoded;
|
|
@@ -20025,7 +20040,7 @@ function hasLanguage(name) {
|
|
|
20025
20040
|
|
|
20026
20041
|
// src/narsil/restore-queue-code.ts
|
|
20027
20042
|
var restoreQueue = codeLoader(async () => {
|
|
20028
|
-
const [suggestionStore2, code7] = await Promise.all([loadSuggestionStore(), import('./restore-queue-
|
|
20043
|
+
const [suggestionStore2, code7] = await Promise.all([loadSuggestionStore(), import('./restore-queue-RLQ3L223.mjs')]);
|
|
20029
20044
|
code7.bindRestoreQueueHost(optionalCodeHost(), suggestionStore2);
|
|
20030
20045
|
return code7;
|
|
20031
20046
|
}, "restore");
|
|
@@ -20401,7 +20416,7 @@ async function createEngineIndex(core2, config, name, requestedConfig, creation
|
|
|
20401
20416
|
requirePatternSearchFor(schema);
|
|
20402
20417
|
requirePartialWordSearchFor(schema);
|
|
20403
20418
|
validatePatternValueLimit(indexConfig.patternValueLimit);
|
|
20404
|
-
|
|
20419
|
+
validateBooleanOnlySettings(indexConfig);
|
|
20405
20420
|
requireSurfaceFormsForPartialFields(schema, indexConfig.surfaceForms);
|
|
20406
20421
|
validateVectorPromotion(indexConfig.vectorPromotion);
|
|
20407
20422
|
validateVectorStorage(indexConfig.vectorPromotion, core2.filesystemDurability);
|
|
@@ -20655,7 +20670,7 @@ var loadEmbedCode = embedCode.load;
|
|
|
20655
20670
|
|
|
20656
20671
|
// src/engine/optional-writes-code.ts
|
|
20657
20672
|
var optionalWrites = codeLoader(async () => {
|
|
20658
|
-
const [segmentCodec2, code7] = await Promise.all([loadSegmentCodec(), import('./optional-writes-
|
|
20673
|
+
const [segmentCodec2, code7] = await Promise.all([loadSegmentCodec(), import('./optional-writes-TCVHZRRM.mjs')]);
|
|
20659
20674
|
code7.bindOptionalWritesHost(optionalCodeHost(), segmentCodec2);
|
|
20660
20675
|
return code7;
|
|
20661
20676
|
}, "write");
|
|
@@ -22543,7 +22558,8 @@ function prepareUpdatePartitionDoc(document, extractedVectors) {
|
|
|
22543
22558
|
}
|
|
22544
22559
|
const partitionDoc = structuredClone(source);
|
|
22545
22560
|
for (const [fieldPath, vector] of extractedVectors) {
|
|
22546
|
-
if (vector !== null || getNestedValue(partitionDoc, fieldPath)
|
|
22561
|
+
if (vector !== null || getNestedValue(partitionDoc, fieldPath) === void 0)
|
|
22562
|
+
deleteNestedValue(partitionDoc, fieldPath);
|
|
22547
22563
|
}
|
|
22548
22564
|
return { partitionDoc };
|
|
22549
22565
|
}
|
|
@@ -23027,7 +23043,7 @@ var suggestionsCode = codeLoader(async () => {
|
|
|
23027
23043
|
const [msgpack, suggestionStore2, code7] = await Promise.all([
|
|
23028
23044
|
loadMessagePack(),
|
|
23029
23045
|
loadSuggestionStore(),
|
|
23030
|
-
import('./suggestions-leaf-
|
|
23046
|
+
import('./suggestions-leaf-Q3ABULFB.mjs')
|
|
23031
23047
|
]);
|
|
23032
23048
|
code7.bindSuggestionsHost(optionalCodeHost(), msgpack, suggestionStore2);
|
|
23033
23049
|
return code7;
|
|
@@ -24628,7 +24644,7 @@ var workerCopies = codeLoader(async () => {
|
|
|
24628
24644
|
const [segmentCodec2, segmentMerge2, code7] = await Promise.all([
|
|
24629
24645
|
loadSegmentCodec(),
|
|
24630
24646
|
loadSegmentMerge(),
|
|
24631
|
-
import('./worker-copies-
|
|
24647
|
+
import('./worker-copies-W63KWZZN.mjs')
|
|
24632
24648
|
]);
|
|
24633
24649
|
code7.bindWorkerCopiesHost(optionalCodeHost(), segmentCodec2, segmentMerge2);
|
|
24634
24650
|
return code7;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VERSION, GROUP_PATTERN_SOURCE, loadGzip } from './chunk-
|
|
1
|
+
import { VERSION, GROUP_PATTERN_SOURCE, loadGzip } from './chunk-QT2G6OMI.mjs';
|
|
2
2
|
import { flattenSchema } from './chunk-CBG4EUYD.mjs';
|
|
3
3
|
import { MAX_FILE_BYTES, CHECKSUM_YIELD_CHUNK_BYTES } from './chunk-VUJCSQG5.mjs';
|
|
4
4
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
package/dist/react-native/chunks/{optional-writes-NYFF5NTC.mjs → optional-writes-TCVHZRRM.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { readHeapStatistics, withOpenIndex, oneAtATime, validateBM25Params, storedBM25Params, loadSchemaCodeFor, loadStorageCode, lookupOfStoredSynonyms, reconstructSchemaFromMetadata, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, prepareStoredSynonyms, getVectorFieldPaths, arrayPositionsAreStale, validatePartitionConfig, emitSyncChange, validateEmbeddingConfig, isSyncEpoch, newSyncEpoch } from './chunk-
|
|
2
|
-
export { bindOptionalWritesHost, holdVectorsForRollback, insertDocument, insertDocumentBatch, prepareDocumentWrite, removeDocument, removeDocumentBatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, updateDocument, updateDocumentBatch } from './chunk-
|
|
1
|
+
import { readHeapStatistics, withOpenIndex, oneAtATime, validateBM25Params, storedBM25Params, loadSchemaCodeFor, loadStorageCode, lookupOfStoredSynonyms, reconstructSchemaFromMetadata, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, prepareStoredSynonyms, getVectorFieldPaths, arrayPositionsAreStale, validatePartitionConfig, emitSyncChange, validateEmbeddingConfig, isSyncEpoch, newSyncEpoch } from './chunk-QT2G6OMI.mjs';
|
|
2
|
+
export { bindOptionalWritesHost, holdVectorsForRollback, insertDocument, insertDocumentBatch, prepareDocumentWrite, removeDocument, removeDocumentBatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, updateDocument, updateDocumentBatch } from './chunk-QT2G6OMI.mjs';
|
|
3
3
|
import './chunk-QFPZ3VKE.mjs';
|
|
4
4
|
import './chunk-XE7AMKEW.mjs';
|
|
5
5
|
import './chunk-LX62Y4B5.mjs';
|