@delali/narsil 0.4.3 → 0.4.4-next.306
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/browser/{chunk-EKISQBV2.mjs → chunk-5DMZ5ZSZ.mjs} +1 -1
- package/dist/browser/{module-ZZTNG5JZ.mjs → module-GACFFKMM.mjs} +18 -12
- package/dist/{chunk-K34UNLP6.mjs → chunk-3AHS23FF.mjs} +3 -3
- package/dist/{chunk-SPA7GXST.mjs → chunk-3NFSZ4RD.mjs} +2 -2
- package/dist/{chunk-ZO7VLAIT.mjs → chunk-4EAMU6WT.mjs} +1 -1
- package/dist/{chunk-PNFP5THV.mjs → chunk-4EG7CALD.mjs} +2 -2
- package/dist/{chunk-R3PFPFME.mjs → chunk-7TYH2S54.mjs} +1 -1
- package/dist/{chunk-PQWK7KXS.mjs → chunk-C33MJKF5.mjs} +1 -1
- package/dist/{chunk-LRIJ7U3T.mjs → chunk-D657RY3J.mjs} +2 -2
- package/dist/{chunk-KXA77DPZ.mjs → chunk-DFMPK7HQ.mjs} +2 -2
- package/dist/{chunk-6LVQ3GLT.mjs → chunk-HQLVNWG7.mjs} +2 -2
- package/dist/{chunk-G3KVEHIW.mjs → chunk-IT5QRFFS.mjs} +1 -1
- package/dist/{chunk-FE2XILWN.mjs → chunk-K3TE7CIR.mjs} +3 -3
- package/dist/{chunk-4YIVY3PB.mjs → chunk-KCBZNUA6.mjs} +2 -2
- package/dist/{chunk-WYH3QHBK.mjs → chunk-KKH47MYK.mjs} +9 -9
- package/dist/{chunk-QNZJYMCF.mjs → chunk-LLUQZHJQ.mjs} +5 -5
- package/dist/{chunk-ACNHJOGC.mjs → chunk-MBKYSQ4W.mjs} +1 -1
- package/dist/{chunk-3YPBBOSS.mjs → chunk-O5NCHDWG.mjs} +1 -1
- package/dist/{chunk-C57GWAXN.mjs → chunk-OZK76TFB.mjs} +1 -1
- package/dist/{chunk-6SIEVWMG.mjs → chunk-PIGXP4RG.mjs} +4 -4
- package/dist/{chunk-FGOGPDZF.mjs → chunk-QXP4VXOO.mjs} +2 -2
- package/dist/{chunk-DRZP5MSG.mjs → chunk-SQHKHTER.mjs} +4 -4
- package/dist/{chunk-GTGQLCEI.mjs → chunk-U7LJDUTA.mjs} +1 -1
- package/dist/{chunk-EZJ6HBG7.mjs → chunk-V3QD7TUZ.mjs} +2 -2
- package/dist/{chunk-BWPVDIRN.mjs → chunk-VGDOIXJQ.mjs} +9 -9
- package/dist/{chunk-H23FB267.mjs → chunk-YCN6RDDX.mjs} +2 -2
- package/dist/{chunk-DZMD4OMD.mjs → chunk-Z7ZYVJPQ.mjs} +1 -1
- package/dist/{direct-executor-7G57AYXH.mjs → direct-executor-CPIF53SB.mjs} +1 -1
- package/dist/distribution.mjs +25 -25
- 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-7KO3GFHX.mjs → long-query-thread-LBJLR2IL.mjs} +10 -10
- package/dist/{module-5ZSLUQII.mjs → module-RUOHVXRS.mjs} +18 -12
- package/dist/{optional-writes-CSULLISE.mjs → optional-writes-G3GESSDV.mjs} +3 -3
- package/dist/{paged-partition-archive-BKQADXOT.mjs → paged-partition-archive-MOMKGKJX.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-HTSJKZRU.mjs → query-actions-TMMBUFTV.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-X3VY2YT4.mjs → chunk-EF4A45GN.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-QYVRD6C5.mjs → chunk-EMRFK5QS.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-H6LK5WCF.mjs → chunk-Q2LG2DAA.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-EF4Y5C3Y.mjs → chunk-UAXQ3YBW.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-JEYZQA4Z.mjs → chunk-VH6HUFVC.mjs} +9 -9
- package/dist/react-native/chunks/{chunk-KJQ3BUVM.mjs → chunk-YZNW3DG2.mjs} +1 -1
- package/dist/react-native/chunks/{module-FMBX75GP.mjs → module-6QZWMTD5.mjs} +18 -12
- package/dist/react-native/chunks/{optional-writes-MGFFGKYQ.mjs → optional-writes-4RA6KODI.mjs} +2 -2
- package/dist/react-native/chunks/{restore-queue-MVJTP3E4.mjs → restore-queue-G7OBFVYU.mjs} +4 -4
- package/dist/react-native/chunks/{segment-codec-leaf-PSWHL55A.mjs → segment-codec-leaf-KNN5ZUXR.mjs} +2 -2
- package/dist/react-native/chunks/{segment-merge-leaf-WOJWSDLW.mjs → segment-merge-leaf-R665FQ37.mjs} +3 -3
- package/dist/react-native/chunks/{storage-leaf-ZUN6Y44X.mjs → storage-leaf-GGSLAQYK.mjs} +5 -5
- package/dist/react-native/chunks/{store-leaf-K5XG46FV.mjs → store-leaf-CI77A32M.mjs} +3 -3
- package/dist/react-native/chunks/{suggestions-leaf-KDPM3P27.mjs → suggestions-leaf-IIXQLDAU.mjs} +3 -3
- package/dist/react-native/chunks/{worker-copies-FVFMBBH6.mjs → worker-copies-RUP5S2HQ.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-3QEJNMFH.mjs → rerank-3ANTPUWH.mjs} +1 -1
- package/dist/{restore-queue-Q76Q4S35.mjs → restore-queue-MON4BZQX.mjs} +4 -4
- package/dist/{segment-codec-leaf-BSDDR7DQ.mjs → segment-codec-leaf-56FBHVVW.mjs} +2 -2
- package/dist/{segment-merge-leaf-6TT66HC5.mjs → segment-merge-leaf-OIJKS2SS.mjs} +2 -2
- package/dist/server.mjs +16 -16
- package/dist/{storage-leaf-R5JQ2X2M.mjs → storage-leaf-22FOJCUO.mjs} +18 -18
- package/dist/{store-leaf-NCGETZYY.mjs → store-leaf-GAZC5TFZ.mjs} +3 -3
- package/dist/{suggestions-leaf-TX3GTD6S.mjs → suggestions-leaf-322GDGQK.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-RRSEKJWU.mjs → thread-6J2NLGNS.mjs} +9 -9
- package/dist/{worker-copies-NZSBQZKG.mjs → worker-copies-XCHSTQV7.mjs} +4 -4
- package/dist/workers/entry.mjs +7 -7
- package/package.json +5 -7
package/dist/distribution.mjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-
|
|
2
|
-
import { emptySerializablePartition } from './chunk-
|
|
3
|
-
import { applyStoredIndexBm25 } from './chunk-
|
|
4
|
-
import { keyBytesOf, querySuggestionsOf, createQuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-
|
|
5
|
-
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-
|
|
6
|
-
import { readVectorFile } from './chunk-
|
|
1
|
+
import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-V3QD7TUZ.mjs';
|
|
2
|
+
import { emptySerializablePartition } from './chunk-OZK76TFB.mjs';
|
|
3
|
+
import { applyStoredIndexBm25 } from './chunk-Z7ZYVJPQ.mjs';
|
|
4
|
+
import { keyBytesOf, querySuggestionsOf, createQuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-SQHKHTER.mjs';
|
|
5
|
+
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-VGDOIXJQ.mjs';
|
|
6
|
+
import { readVectorFile } from './chunk-K3TE7CIR.mjs';
|
|
7
7
|
import { addBackgroundAdmission, workWaitingForMemory, resolveHybridFusion, fuseRankings } from './chunk-GXED6R3Q.mjs';
|
|
8
8
|
import { UNADDRESSABLE_TARGET_DETAIL, MAX_MESSAGE_SIZE_BYTES } from './chunk-HZ3OAUTL.mjs';
|
|
9
|
-
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-
|
|
10
|
-
import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, readIndexMetadataSnapshot, validateIndexName, indexConfigKey, metadataWithSync, suggestionStateOfSettings, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, isRecord2, decodeIndexSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, syncSettingsOfSnapshot, epochFeaturesOn, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState, UNFED_REPLICA_CHECK_INTERVAL_MS, UNFED_REPLICA_RESYNC_MS } from './chunk-
|
|
9
|
+
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-3NFSZ4RD.mjs';
|
|
10
|
+
import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, readIndexMetadataSnapshot, validateIndexName, indexConfigKey, metadataWithSync, suggestionStateOfSettings, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, isRecord2, decodeIndexSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, syncSettingsOfSnapshot, epochFeaturesOn, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState, UNFED_REPLICA_CHECK_INTERVAL_MS, UNFED_REPLICA_RESYNC_MS } from './chunk-HQLVNWG7.mjs';
|
|
11
11
|
import './chunk-4H4RG2FR.mjs';
|
|
12
|
-
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-
|
|
13
|
-
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-
|
|
14
|
-
import { encodeIndexConfiguration, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, decodeIndexConfiguration, requireSyncSetting, requireNoQuerySuggestions, validChangeFilter, createDocumentTest, INDEX_CONFIGURATION_ENVELOPE_VERSION, changesNotEnabled } from './chunk-
|
|
12
|
+
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-MBKYSQ4W.mjs';
|
|
13
|
+
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-MBKYSQ4W.mjs';
|
|
14
|
+
import { encodeIndexConfiguration, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, decodeIndexConfiguration, requireSyncSetting, requireNoQuerySuggestions, validChangeFilter, createDocumentTest, INDEX_CONFIGURATION_ENVELOPE_VERSION, changesNotEnabled } from './chunk-4EG7CALD.mjs';
|
|
15
15
|
import { restoredConfigFields, restoredEmbedding } from './chunk-M2Z5WVWW.mjs';
|
|
16
|
-
import { readSnapshotArchive, archiveLayout, openManifestPayload, sourceIndexNameOf, listedKeysOf, decodeManifestPayload, estimatedArchiveBytes } from './chunk-
|
|
16
|
+
import { readSnapshotArchive, archiveLayout, openManifestPayload, sourceIndexNameOf, listedKeysOf, decodeManifestPayload, estimatedArchiveBytes } from './chunk-D657RY3J.mjs';
|
|
17
17
|
import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
|
|
18
18
|
import './chunk-T4HMSZCX.mjs';
|
|
19
|
-
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, DEFAULT_LOG_RETENTION_BYTES, buildEntry, optionalIndexUuid, entryByteEstimate, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, createInsyncRemoveMessage, SNAPSHOT_CHUNK_SIZE, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, checkpointLastSeqNo, checkpointPrimaryTerm, INSYNC_CAS_ATTEMPTS, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-
|
|
20
|
-
import { directoryCheckpointStore, readListedFile, encodeSegmentManifest } from './chunk-
|
|
19
|
+
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, DEFAULT_LOG_RETENTION_BYTES, buildEntry, optionalIndexUuid, entryByteEstimate, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, createInsyncRemoveMessage, SNAPSHOT_CHUNK_SIZE, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, checkpointLastSeqNo, checkpointPrimaryTerm, INSYNC_CAS_ATTEMPTS, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-PIGXP4RG.mjs';
|
|
20
|
+
import { directoryCheckpointStore, readListedFile, encodeSegmentManifest } from './chunk-YCN6RDDX.mjs';
|
|
21
21
|
import { TransportErrorCodes, ClusterMessageTypes, ReplicationMessageTypes, SuggestionMessageTypes, SyncMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-5FLRXF73.mjs';
|
|
22
22
|
import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-JDDXV6UF.mjs';
|
|
23
|
-
import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-
|
|
23
|
+
import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-U7LJDUTA.mjs';
|
|
24
24
|
import './chunk-S5QMWECL.mjs';
|
|
25
25
|
import './chunk-LNGE7SLY.mjs';
|
|
26
26
|
import './chunk-5SHWA6PE.mjs';
|
|
27
|
-
import './chunk-
|
|
28
|
-
import { deserializePartition } from './chunk-
|
|
27
|
+
import './chunk-C33MJKF5.mjs';
|
|
28
|
+
import { deserializePartition } from './chunk-4EAMU6WT.mjs';
|
|
29
29
|
import { decodeVectorFilePayload, bytesToVectors, isDead, MIN_EF_SEARCH, MAX_EF_SEARCH, MIN_OVERSAMPLE } from './chunk-R724DJSG.mjs';
|
|
30
|
-
import './chunk-
|
|
31
|
-
import { RestoredHistory } from './chunk-
|
|
30
|
+
import './chunk-DFMPK7HQ.mjs';
|
|
31
|
+
import { RestoredHistory } from './chunk-KCBZNUA6.mjs';
|
|
32
32
|
import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
|
|
33
|
-
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-
|
|
33
|
+
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-IT5QRFFS.mjs';
|
|
34
34
|
import { boundQuerySuggestionsOf, bindQuerySuggestions } from './chunk-S2POFTLN.mjs';
|
|
35
|
-
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, bm25SetsValue, prepareConfiguredSynonyms, storedArrayPositionGap, updateDocumentVectors, arrayPositionsAreStale, fnv1a, readRecentMemoryFigures, normalizeSort, sortModesOf, resolveProjection, noteDocumentChurn, MAP_TABLE_MIN_CAPACITY, MAP_TABLE_SHRINK_DIVISOR, requireLoadedOptionalReads, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, validateBM25Shape, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, 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-
|
|
35
|
+
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, bm25SetsValue, prepareConfiguredSynonyms, storedArrayPositionGap, updateDocumentVectors, arrayPositionsAreStale, fnv1a, readRecentMemoryFigures, normalizeSort, sortModesOf, resolveProjection, noteDocumentChurn, MAP_TABLE_MIN_CAPACITY, MAP_TABLE_SHRINK_DIVISOR, requireLoadedOptionalReads, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, validateBM25Shape, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, 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-KKH47MYK.mjs';
|
|
36
36
|
import { encodeDocument, encodeDocumentReply } from './chunk-2CKDCC65.mjs';
|
|
37
37
|
import { collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal, onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes } from './chunk-2AFZE7Y3.mjs';
|
|
38
38
|
import { decode } from './chunk-Y7GXGJFZ.mjs';
|
|
@@ -16054,7 +16054,7 @@ async function openOnce(core, indexName, partitionId) {
|
|
|
16054
16054
|
if (directory === void 0) throw durabilityRequired(indexName, partitionId);
|
|
16055
16055
|
if ((checkpoint.manifest.analysisGeneration ?? 0) !== entry.analysisGeneration) return null;
|
|
16056
16056
|
const config = await encodeIndexConfiguration(entry);
|
|
16057
|
-
const { openPagedPartitionArchive } = await import('./paged-partition-archive-
|
|
16057
|
+
const { openPagedPartitionArchive } = await import('./paged-partition-archive-MOMKGKJX.mjs');
|
|
16058
16058
|
const archive = await openPagedPartitionArchive(checkpoint, directory, indexName, partitionId, manager);
|
|
16059
16059
|
handedOver = true;
|
|
16060
16060
|
try {
|
|
@@ -16769,7 +16769,7 @@ async function archiveReplicationPartition(core, indexName, partitionId, lastSeq
|
|
|
16769
16769
|
);
|
|
16770
16770
|
}
|
|
16771
16771
|
try {
|
|
16772
|
-
const { openPagedPartitionArchive } = await import('./paged-partition-archive-
|
|
16772
|
+
const { openPagedPartitionArchive } = await import('./paged-partition-archive-MOMKGKJX.mjs');
|
|
16773
16773
|
const archive = await openPagedPartitionArchive(checkpoint2, directory, indexName, partitionId, manager);
|
|
16774
16774
|
return {
|
|
16775
16775
|
stream: archiveStream({ ...archive, config, sourceIndexName: indexName }),
|
|
@@ -16984,7 +16984,7 @@ async function restoreReplicationPartition(core, engine, indexName, partitionId,
|
|
|
16984
16984
|
if (directory !== null) {
|
|
16985
16985
|
const durable = core.durability?.manager;
|
|
16986
16986
|
await (durable?.checkpointFromMemory?.(indexName) ?? durable?.checkpoint(indexName));
|
|
16987
|
-
const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-
|
|
16987
|
+
const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-MOMKGKJX.mjs');
|
|
16988
16988
|
await removeReceivedFilesNothingReads(
|
|
16989
16989
|
directory,
|
|
16990
16990
|
core.requireManager(indexName),
|
|
@@ -20840,7 +20840,7 @@ async function queryCluster(deps, indexName, params, settingName) {
|
|
|
20840
20840
|
(reader) => searchCluster(deps, indexName, settingName, params, allocation, reader, false)
|
|
20841
20841
|
);
|
|
20842
20842
|
}
|
|
20843
|
-
const { rerankClusterQuery } = await import('./rerank-
|
|
20843
|
+
const { rerankClusterQuery } = await import('./rerank-3ANTPUWH.mjs');
|
|
20844
20844
|
return withRankedReader(
|
|
20845
20845
|
deps,
|
|
20846
20846
|
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-5DMZ5ZSZ.mjs';
|
|
2
2
|
import './browser/chunk-56UNHLAF.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
4
|
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-VAPCFSMX.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-KKH47MYK.mjs';
|
|
2
2
|
import './chunk-2CKDCC65.mjs';
|
|
3
3
|
import './chunk-2AFZE7Y3.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-VH6HUFVC.mjs';
|
|
2
2
|
import './react-native/chunks/chunk-HQEVQEDJ.mjs';
|
|
3
3
|
import './react-native/chunks/chunk-AKRYHAVG.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-QXP4VXOO.mjs';
|
|
2
|
+
import { answerRequest } from './chunk-O5NCHDWG.mjs';
|
|
3
|
+
import './chunk-3AHS23FF.mjs';
|
|
4
4
|
import './chunk-TACP6VK6.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
5
|
+
import './chunk-MBKYSQ4W.mjs';
|
|
6
|
+
import './chunk-D657RY3J.mjs';
|
|
7
|
+
import './chunk-U7LJDUTA.mjs';
|
|
8
8
|
import './chunk-S5QMWECL.mjs';
|
|
9
9
|
import './chunk-LNGE7SLY.mjs';
|
|
10
10
|
import './chunk-5SHWA6PE.mjs';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import './chunk-C33MJKF5.mjs';
|
|
12
|
+
import './chunk-4EAMU6WT.mjs';
|
|
13
13
|
import './chunk-R724DJSG.mjs';
|
|
14
14
|
import './chunk-V6EUBAIT.mjs';
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
15
|
+
import './chunk-IT5QRFFS.mjs';
|
|
16
|
+
import './chunk-KKH47MYK.mjs';
|
|
17
17
|
import './chunk-2CKDCC65.mjs';
|
|
18
18
|
import './chunk-2AFZE7Y3.mjs';
|
|
19
19
|
import './chunk-Y7GXGJFZ.mjs';
|
|
@@ -1105,6 +1105,13 @@ async function releaseVectorSearchPool() {
|
|
|
1105
1105
|
await closing;
|
|
1106
1106
|
}
|
|
1107
1107
|
|
|
1108
|
+
// src/vector/vector-index/searched-graph.ts
|
|
1109
|
+
function threadsSearchOnly(state, graph) {
|
|
1110
|
+
for (const [held, shared] of state.sharedHandles) {
|
|
1111
|
+
if (held !== graph && shared.searchable) state.sharedHandles.set(held, { ...shared, searchable: false });
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1108
1115
|
// src/vector/vector-index/worker-copies.ts
|
|
1109
1116
|
var handleCounter = 0;
|
|
1110
1117
|
function nextHandle(state) {
|
|
@@ -1177,6 +1184,7 @@ function refreshWorkerCopies(state) {
|
|
|
1177
1184
|
}
|
|
1178
1185
|
function recordSharedField(state, record) {
|
|
1179
1186
|
const { graph, handle, searchable, mode, revision, layoutRevision } = record;
|
|
1187
|
+
if (searchable) threadsSearchOnly(state, graph);
|
|
1180
1188
|
state.sharedHandles.set(graph, { handle, searchable, mode });
|
|
1181
1189
|
state.sharedLayoutRevision = layoutRevision;
|
|
1182
1190
|
if (!searchable) return;
|
|
@@ -1303,14 +1311,11 @@ function scheduleWorkerCopyLoad(state) {
|
|
|
1303
1311
|
if (existing?.searchable && threadsHoldCurrentLayout(state)) return;
|
|
1304
1312
|
if (host === void 0 && liveSize(state) < WORKER_COPY_MIN_VECTORS) return;
|
|
1305
1313
|
state.workerCopyLoading = true;
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
state.workerCopyLoading = false;
|
|
1312
|
-
}
|
|
1313
|
-
);
|
|
1314
|
+
const settle = () => {
|
|
1315
|
+
state.workerCopyLoading = false;
|
|
1316
|
+
if (state.hnsw !== graph) scheduleWorkerCopyLoad(state);
|
|
1317
|
+
};
|
|
1318
|
+
void shareGraph(state, graph, true).then(settle, settle);
|
|
1314
1319
|
}
|
|
1315
1320
|
async function searchViaWorkerCopies(state, query, k, metric, minSimilarity, options) {
|
|
1316
1321
|
const pool = state.workerCopyPool;
|
|
@@ -1744,7 +1749,8 @@ function moveWhatTheCopyHoldsOutOfBuffer(state, copy) {
|
|
|
1744
1749
|
}
|
|
1745
1750
|
}
|
|
1746
1751
|
async function publishCopy(state, graph, copy) {
|
|
1747
|
-
|
|
1752
|
+
const threadsSearchAField = state.workerCopies.host !== void 0;
|
|
1753
|
+
if (threadsSearchAField || state.sharedHandles.get(graph)?.searchable === true) await shareGraph(state, copy, true);
|
|
1748
1754
|
if (state.disposed || state.hnsw !== graph) return false;
|
|
1749
1755
|
lineages.set(copy, lineageOfGraph(graph));
|
|
1750
1756
|
state.hnsw = copy;
|
|
@@ -1871,9 +1877,8 @@ async function buildExclusively(state, work, waitsForShuffledRebuild = true, kee
|
|
|
1871
1877
|
} finally {
|
|
1872
1878
|
state.building = false;
|
|
1873
1879
|
state.pendingBuild = null;
|
|
1874
|
-
if (state.buffer.size > 0)
|
|
1875
|
-
|
|
1876
|
-
}
|
|
1880
|
+
if (state.buffer.size > 0) scheduleBuild(state);
|
|
1881
|
+
else scheduleWorkerCopyLoad(state);
|
|
1877
1882
|
}
|
|
1878
1883
|
}
|
|
1879
1884
|
async function rebuildInShuffledOrder(state) {
|
|
@@ -2842,6 +2847,7 @@ function vectorPublicationSource(state) {
|
|
|
2842
2847
|
const pin = holdAdmission(state.store.view);
|
|
2843
2848
|
try {
|
|
2844
2849
|
const handles = fieldHandlesOf(state, state.hnsw, true);
|
|
2850
|
+
if (state.workerCopies.host !== void 0) threadsSearchOnly(state, state.hnsw);
|
|
2845
2851
|
return {
|
|
2846
2852
|
field: { handle, sequence: pin.admission.pin, handles },
|
|
2847
2853
|
release: pin.release
|
|
@@ -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-Z7ZYVJPQ.mjs';
|
|
2
|
+
import { readHeapStatistics, loadSchemaCodeFor, loadStorageCode, lookupOfStoredSynonyms, reconstructSchemaFromMetadata, getLanguage, validatePatternValueLimit, requireSurfaceFormsForPartialFields, prepareStoredSynonyms, getVectorFieldPaths, arrayPositionsAreStale, validatePartitionConfig, validateEmbeddingConfig } from './chunk-KKH47MYK.mjs';
|
|
3
|
+
export { bindOptionalWritesHost, holdVectorsForRollback, insertDocument, insertDocumentBatch, prepareDocumentWrite, removeDocument, removeDocumentBatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, updateDocument, updateDocumentBatch } from './chunk-KKH47MYK.mjs';
|
|
4
4
|
import './chunk-2CKDCC65.mjs';
|
|
5
5
|
import './chunk-2AFZE7Y3.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-V3QD7TUZ.mjs';
|
|
2
|
+
import { readVectorFile, VECTOR_FILE_ENVELOPE_VERSION } from './chunk-K3TE7CIR.mjs';
|
|
3
|
+
import './chunk-HQLVNWG7.mjs';
|
|
4
4
|
import './chunk-M2Z5WVWW.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-YCN6RDDX.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-U7LJDUTA.mjs';
|
|
8
8
|
import './chunk-S5QMWECL.mjs';
|
|
9
9
|
import './chunk-LNGE7SLY.mjs';
|
|
10
10
|
import './chunk-5SHWA6PE.mjs';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import './chunk-C33MJKF5.mjs';
|
|
12
|
+
import './chunk-4EAMU6WT.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-IT5QRFFS.mjs';
|
|
16
|
+
import { generateId, isCompositePartition } from './chunk-KKH47MYK.mjs';
|
|
17
17
|
import './chunk-2CKDCC65.mjs';
|
|
18
18
|
import './chunk-2AFZE7Y3.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-5DMZ5ZSZ.mjs';
|
|
2
2
|
import { fuzzyTermMatches, storedText } from './browser/chunk-56UNHLAF.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
4
|
import { compareCodePoints, codePointCount, NarsilError, ErrorCodes } from './browser/chunk-VAPCFSMX.mjs';
|
package/dist/partial-words.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { createDurableDirectory } from '../../chunk-KL4ORYJW.mjs';
|
|
2
|
-
import { writeCheckpointSegments } from '../../chunk-
|
|
3
|
-
import { directoryCheckpointStore } from '../../chunk-
|
|
2
|
+
import { writeCheckpointSegments } from '../../chunk-PIGXP4RG.mjs';
|
|
3
|
+
import { directoryCheckpointStore } from '../../chunk-YCN6RDDX.mjs';
|
|
4
4
|
import '../../chunk-5FLRXF73.mjs';
|
|
5
5
|
import '../../chunk-JDDXV6UF.mjs';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-U7LJDUTA.mjs';
|
|
7
7
|
import '../../chunk-S5QMWECL.mjs';
|
|
8
8
|
import '../../chunk-LNGE7SLY.mjs';
|
|
9
9
|
import '../../chunk-5SHWA6PE.mjs';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-C33MJKF5.mjs';
|
|
11
|
+
import '../../chunk-4EAMU6WT.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-IT5QRFFS.mjs';
|
|
15
|
+
import { importOptionalReads, loadGeoCodeFor } from '../../chunk-KKH47MYK.mjs';
|
|
16
16
|
import '../../chunk-2CKDCC65.mjs';
|
|
17
17
|
import '../../chunk-2AFZE7Y3.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-KKH47MYK.mjs';
|
|
2
2
|
import './chunk-2CKDCC65.mjs';
|
|
3
3
|
import './chunk-2AFZE7Y3.mjs';
|
|
4
4
|
import './chunk-Y7GXGJFZ.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Merger } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { Merger } from '../chunk-DFMPK7HQ.mjs';
|
|
2
|
+
import '../chunk-KCBZNUA6.mjs';
|
|
3
3
|
import '../chunk-V6EUBAIT.mjs';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-IT5QRFFS.mjs';
|
|
5
|
+
import '../chunk-KKH47MYK.mjs';
|
|
6
6
|
import '../chunk-2CKDCC65.mjs';
|
|
7
7
|
import '../chunk-2AFZE7Y3.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-5DMZ5ZSZ.mjs';
|
|
2
2
|
import './browser/chunk-56UNHLAF.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
4
|
import { NarsilError, ErrorCodes } from './browser/chunk-VAPCFSMX.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { querySuggestions } from './chunk-
|
|
1
|
+
export { querySuggestions } from './chunk-7TYH2S54.mjs';
|
|
2
2
|
import './chunk-S2POFTLN.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-KKH47MYK.mjs';
|
|
4
4
|
import './chunk-2CKDCC65.mjs';
|
|
5
5
|
import './chunk-2AFZE7Y3.mjs';
|
|
6
6
|
import './chunk-Y7GXGJFZ.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VERSION, GROUP_PATTERN_SOURCE, loadGzip } from './chunk-
|
|
1
|
+
import { VERSION, GROUP_PATTERN_SOURCE, loadGzip } from './chunk-VH6HUFVC.mjs';
|
|
2
2
|
import { flattenSchema } from './chunk-AOLLV37A.mjs';
|
|
3
3
|
import { MAX_FILE_BYTES, CHECKSUM_YIELD_CHUNK_BYTES } from './chunk-VUJCSQG5.mjs';
|
|
4
4
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
@@ -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-VH6HUFVC.mjs';
|
|
2
2
|
import { getFlatSchema, schemaFieldsOf, getNestedValue } from './chunk-AOLLV37A.mjs';
|
|
3
3
|
|
|
4
4
|
// src/core/partition/pattern-snapshot.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-VH6HUFVC.mjs';
|
|
2
2
|
|
|
3
3
|
// src/partitioning/constants.ts
|
|
4
4
|
var REBALANCE_CHUNK_SIZE = 1e3;
|
|
@@ -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-EF4A45GN.mjs';
|
|
2
|
+
import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-VH6HUFVC.mjs';
|
|
3
3
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
4
4
|
|
|
5
5
|
// src/query-suggestions/engine-hooks.ts
|
|
@@ -8682,7 +8682,7 @@ function resolvePartitionInsertOptions(config, analysis, options) {
|
|
|
8682
8682
|
|
|
8683
8683
|
// src/core/segment-codec-code.ts
|
|
8684
8684
|
var segmentCodec = codeLoader(async () => {
|
|
8685
|
-
const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./segment-codec-leaf-
|
|
8685
|
+
const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./segment-codec-leaf-KNN5ZUXR.mjs')]);
|
|
8686
8686
|
code7.bindSegmentCodecHost(optionalCodeHost(), msgpack);
|
|
8687
8687
|
return code7;
|
|
8688
8688
|
}, "segment codec");
|
|
@@ -8693,7 +8693,7 @@ var segmentMerge = codeLoader(async () => {
|
|
|
8693
8693
|
const [msgpack, codec, code7] = await Promise.all([
|
|
8694
8694
|
loadMessagePack(),
|
|
8695
8695
|
loadSegmentCodec(),
|
|
8696
|
-
import('./segment-merge-leaf-
|
|
8696
|
+
import('./segment-merge-leaf-R665FQ37.mjs')
|
|
8697
8697
|
]);
|
|
8698
8698
|
code7.bindSegmentMergeHost(optionalCodeHost(), msgpack, codec);
|
|
8699
8699
|
return code7;
|
|
@@ -8702,7 +8702,7 @@ var loadSegmentMerge = segmentMerge.load;
|
|
|
8702
8702
|
|
|
8703
8703
|
// src/query-suggestions/store-code.ts
|
|
8704
8704
|
var suggestionStore = codeLoader(async () => {
|
|
8705
|
-
const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./store-leaf-
|
|
8705
|
+
const [msgpack, code7] = await Promise.all([loadMessagePack(), import('./store-leaf-CI77A32M.mjs')]);
|
|
8706
8706
|
code7.bindSuggestionStoreHost(optionalCodeHost(), msgpack);
|
|
8707
8707
|
return code7;
|
|
8708
8708
|
}, "query suggestions store");
|
|
@@ -8783,7 +8783,7 @@ var storageCode = codeLoader(async () => {
|
|
|
8783
8783
|
loadSegmentMerge(),
|
|
8784
8784
|
loadSuggestionStore(),
|
|
8785
8785
|
loadVectorCore(),
|
|
8786
|
-
import('./storage-leaf-
|
|
8786
|
+
import('./storage-leaf-GGSLAQYK.mjs')
|
|
8787
8787
|
]);
|
|
8788
8788
|
code7.bindStorageHost(optionalCodeHost(), digest2, msgpack, segmentCodec2, segmentMerge2, suggestionStore2, vectorCore2);
|
|
8789
8789
|
return code7;
|
|
@@ -19995,7 +19995,7 @@ function hasLanguage(name) {
|
|
|
19995
19995
|
|
|
19996
19996
|
// src/narsil/restore-queue-code.ts
|
|
19997
19997
|
var restoreQueue = codeLoader(async () => {
|
|
19998
|
-
const [suggestionStore2, code7] = await Promise.all([loadSuggestionStore(), import('./restore-queue-
|
|
19998
|
+
const [suggestionStore2, code7] = await Promise.all([loadSuggestionStore(), import('./restore-queue-G7OBFVYU.mjs')]);
|
|
19999
19999
|
code7.bindRestoreQueueHost(optionalCodeHost(), suggestionStore2);
|
|
20000
20000
|
return code7;
|
|
20001
20001
|
}, "restore");
|
|
@@ -20217,7 +20217,7 @@ function storedBM25Params(params) {
|
|
|
20217
20217
|
|
|
20218
20218
|
// src/workers/vector-code.ts
|
|
20219
20219
|
var vectorCode = codeLoader(async () => {
|
|
20220
|
-
const [vectorCore2, code7] = await Promise.all([loadVectorCore(), import('./module-
|
|
20220
|
+
const [vectorCore2, code7] = await Promise.all([loadVectorCore(), import('./module-6QZWMTD5.mjs')]);
|
|
20221
20221
|
code7.bindVectorHost(optionalCodeHost(), vectorCore2);
|
|
20222
20222
|
return code7;
|
|
20223
20223
|
}, "vector");
|
|
@@ -20623,7 +20623,7 @@ var loadEmbedCode = embedCode.load;
|
|
|
20623
20623
|
|
|
20624
20624
|
// src/engine/optional-writes-code.ts
|
|
20625
20625
|
var optionalWrites = codeLoader(async () => {
|
|
20626
|
-
const [segmentCodec2, code7] = await Promise.all([loadSegmentCodec(), import('./optional-writes-
|
|
20626
|
+
const [segmentCodec2, code7] = await Promise.all([loadSegmentCodec(), import('./optional-writes-4RA6KODI.mjs')]);
|
|
20627
20627
|
code7.bindOptionalWritesHost(optionalCodeHost(), segmentCodec2);
|
|
20628
20628
|
return code7;
|
|
20629
20629
|
}, "write");
|
|
@@ -22992,7 +22992,7 @@ var suggestionsCode = codeLoader(async () => {
|
|
|
22992
22992
|
const [msgpack, suggestionStore2, code7] = await Promise.all([
|
|
22993
22993
|
loadMessagePack(),
|
|
22994
22994
|
loadSuggestionStore(),
|
|
22995
|
-
import('./suggestions-leaf-
|
|
22995
|
+
import('./suggestions-leaf-IIXQLDAU.mjs')
|
|
22996
22996
|
]);
|
|
22997
22997
|
code7.bindSuggestionsHost(optionalCodeHost(), msgpack, suggestionStore2);
|
|
22998
22998
|
return code7;
|
|
@@ -24593,7 +24593,7 @@ var workerCopies = codeLoader(async () => {
|
|
|
24593
24593
|
const [segmentCodec2, segmentMerge2, code7] = await Promise.all([
|
|
24594
24594
|
loadSegmentCodec(),
|
|
24595
24595
|
loadSegmentMerge(),
|
|
24596
|
-
import('./worker-copies-
|
|
24596
|
+
import('./worker-copies-RUP5S2HQ.mjs')
|
|
24597
24597
|
]);
|
|
24598
24598
|
code7.bindWorkerCopiesHost(optionalCodeHost(), segmentCodec2, segmentMerge2);
|
|
24599
24599
|
return code7;
|
|
@@ -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-VH6HUFVC.mjs';
|
|
2
2
|
import { storedText, bitsetIterator } from './chunk-ESVBC3AT.mjs';
|
|
3
3
|
import { encodeDocument } from './chunk-DN4FT62B.mjs';
|
|
4
4
|
import { schemaFieldsOf, getNestedValue, isWordIndexedBase, validateDocument, validateDocumentStrict } from './chunk-AOLLV37A.mjs';
|
|
@@ -2571,6 +2571,13 @@ async function releaseVectorSearchPool() {
|
|
|
2571
2571
|
await closing;
|
|
2572
2572
|
}
|
|
2573
2573
|
|
|
2574
|
+
// src/vector/vector-index/searched-graph.ts
|
|
2575
|
+
function threadsSearchOnly(state, graph) {
|
|
2576
|
+
for (const [held, shared] of state.sharedHandles) {
|
|
2577
|
+
if (held !== graph && shared.searchable) state.sharedHandles.set(held, { ...shared, searchable: false });
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2574
2581
|
// src/vector/vector-index/worker-copies.ts
|
|
2575
2582
|
var handleCounter = 0;
|
|
2576
2583
|
function nextHandle(state) {
|
|
@@ -2643,6 +2650,7 @@ function refreshWorkerCopies(state) {
|
|
|
2643
2650
|
}
|
|
2644
2651
|
function recordSharedField(state, record) {
|
|
2645
2652
|
const { graph, handle, searchable, mode, revision, layoutRevision } = record;
|
|
2653
|
+
if (searchable) threadsSearchOnly(state, graph);
|
|
2646
2654
|
state.sharedHandles.set(graph, { handle, searchable, mode });
|
|
2647
2655
|
state.sharedLayoutRevision = layoutRevision;
|
|
2648
2656
|
if (!searchable) return;
|
|
@@ -2769,14 +2777,11 @@ function scheduleWorkerCopyLoad(state) {
|
|
|
2769
2777
|
if (existing?.searchable && threadsHoldCurrentLayout(state)) return;
|
|
2770
2778
|
if (host === void 0 && liveSize(state) < WORKER_COPY_MIN_VECTORS) return;
|
|
2771
2779
|
state.workerCopyLoading = true;
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
state.workerCopyLoading = false;
|
|
2778
|
-
}
|
|
2779
|
-
);
|
|
2780
|
+
const settle = () => {
|
|
2781
|
+
state.workerCopyLoading = false;
|
|
2782
|
+
if (state.hnsw !== graph) scheduleWorkerCopyLoad(state);
|
|
2783
|
+
};
|
|
2784
|
+
void shareGraph(state, graph, true).then(settle, settle);
|
|
2780
2785
|
}
|
|
2781
2786
|
async function searchViaWorkerCopies(state, query, k, metric, minSimilarity, options) {
|
|
2782
2787
|
const pool = state.workerCopyPool;
|
|
@@ -3224,7 +3229,8 @@ function moveWhatTheCopyHoldsOutOfBuffer(state, copy) {
|
|
|
3224
3229
|
}
|
|
3225
3230
|
}
|
|
3226
3231
|
async function publishCopy(state, graph, copy) {
|
|
3227
|
-
|
|
3232
|
+
const threadsSearchAField = state.workerCopies.host !== void 0;
|
|
3233
|
+
if (threadsSearchAField || state.sharedHandles.get(graph)?.searchable === true) await shareGraph(state, copy, true);
|
|
3228
3234
|
if (state.disposed || state.hnsw !== graph) return false;
|
|
3229
3235
|
lineages.set(copy, lineageOfGraph(graph));
|
|
3230
3236
|
state.hnsw = copy;
|
|
@@ -3351,9 +3357,8 @@ async function buildExclusively(state, work, waitsForShuffledRebuild = true, kee
|
|
|
3351
3357
|
} finally {
|
|
3352
3358
|
state.building = false;
|
|
3353
3359
|
state.pendingBuild = null;
|
|
3354
|
-
if (state.buffer.size > 0)
|
|
3355
|
-
|
|
3356
|
-
}
|
|
3360
|
+
if (state.buffer.size > 0) scheduleBuild(state);
|
|
3361
|
+
else scheduleWorkerCopyLoad(state);
|
|
3357
3362
|
}
|
|
3358
3363
|
}
|
|
3359
3364
|
async function rebuildInShuffledOrder(state) {
|
|
@@ -4322,6 +4327,7 @@ function vectorPublicationSource(state) {
|
|
|
4322
4327
|
const pin = holdAdmission(state.store.view);
|
|
4323
4328
|
try {
|
|
4324
4329
|
const handles = fieldHandlesOf(state, state.hnsw, true);
|
|
4330
|
+
if (state.workerCopies.host !== void 0) threadsSearchOnly(state, state.hnsw);
|
|
4325
4331
|
return {
|
|
4326
4332
|
field: { handle, sequence: pin.admission.pin, handles },
|
|
4327
4333
|
release: pin.release
|
package/dist/react-native/chunks/{optional-writes-MGFFGKYQ.mjs → optional-writes-4RA6KODI.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-VH6HUFVC.mjs';
|
|
2
|
+
export { bindOptionalWritesHost, holdVectorsForRollback, insertDocument, insertDocumentBatch, prepareDocumentWrite, removeDocument, removeDocumentBatch, rollbackInsertedDocument, rollbackRemovedDocument, rollbackUpdatedDocument, updateDocument, updateDocumentBatch } from './chunk-VH6HUFVC.mjs';
|
|
3
3
|
import './chunk-HQEVQEDJ.mjs';
|
|
4
4
|
import './chunk-AKRYHAVG.mjs';
|
|
5
5
|
import './chunk-LX62Y4B5.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-
|
|
2
|
-
export { startQuerySuggestions } from './chunk-
|
|
3
|
-
import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-
|
|
4
|
-
import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-
|
|
1
|
+
import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-UAXQ3YBW.mjs';
|
|
2
|
+
export { startQuerySuggestions } from './chunk-UAXQ3YBW.mjs';
|
|
3
|
+
import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-EF4A45GN.mjs';
|
|
4
|
+
import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-VH6HUFVC.mjs';
|
|
5
5
|
import './chunk-HQEVQEDJ.mjs';
|
|
6
6
|
import './chunk-AKRYHAVG.mjs';
|
|
7
7
|
import './chunk-LX62Y4B5.mjs';
|
package/dist/react-native/chunks/{segment-codec-leaf-PSWHL55A.mjs → segment-codec-leaf-KNN5ZUXR.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-
|
|
2
|
-
export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-
|
|
1
|
+
export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-Q2LG2DAA.mjs';
|
|
2
|
+
export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-VH6HUFVC.mjs';
|
|
3
3
|
import './chunk-HQEVQEDJ.mjs';
|
|
4
4
|
import './chunk-AKRYHAVG.mjs';
|
|
5
5
|
import './chunk-LX62Y4B5.mjs';
|