@delali/narsil 0.3.1-next.183 → 0.3.1-next.185
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-ZZUXMJIK.mjs → chunk-CPSHS46N.mjs} +129 -165
- package/dist/browser/{embed-24IPR4LP.mjs → embed-GG6PS3EA.mjs} +43 -1
- package/dist/browser/{optional-writes-IQFTXANH.mjs → optional-writes-ZTBHYQMN.mjs} +619 -314
- package/dist/browser/{resolve-vector-text-EJ6DHFF5.mjs → resolve-vector-text-XRR2OVHE.mjs} +19 -2
- package/dist/browser/{restore-queue-S4BWOGMU.mjs → restore-queue-SG5O735W.mjs} +7 -0
- package/dist/browser/{runtime-NU6VOVH2.mjs → runtime-OMKE7DF4.mjs} +23 -3
- package/dist/browser/{storage-leaf-2CO6SQ7R.mjs → storage-leaf-4XMCITJ6.mjs} +27 -9
- package/dist/{chunk-GGG5R4CU.mjs → chunk-2GONI5HL.mjs} +5 -3
- package/dist/{chunk-PK3BGGHO.mjs → chunk-2KCCQK4R.mjs} +1 -1
- package/dist/{chunk-JVR5KMO4.mjs → chunk-2YWWHMVC.mjs} +2 -2
- package/dist/chunk-3ECIRFS5.mjs +61 -0
- package/dist/{react-native/chunks/chunk-G4YYO5TC.mjs → chunk-4JBTALUC.mjs} +1 -1
- package/dist/{chunk-PXEGKQHS.mjs → chunk-5BUEBIXR.mjs} +2 -2
- package/dist/{chunk-DG6WIEB3.mjs → chunk-6SZQETSC.mjs} +1 -1
- package/dist/{chunk-NPXORGMK.mjs → chunk-7WXGUTWK.mjs} +3 -3
- package/dist/{chunk-2DK74OQL.mjs → chunk-A3OAFUZI.mjs} +1 -1
- package/dist/{chunk-632ABEIR.mjs → chunk-BVZWWMOU.mjs} +1 -1
- package/dist/{chunk-CQX5B6L2.mjs → chunk-CKEOTSF5.mjs} +2 -2
- package/dist/{chunk-F2UOTRY7.mjs → chunk-CODGHJVW.mjs} +4 -4
- package/dist/{chunk-6ICOWB6I.mjs → chunk-CYCVPTTR.mjs} +1 -1
- package/dist/{chunk-WUWSUJ2X.mjs → chunk-DU23J5JG.mjs} +5 -5
- package/dist/{chunk-C77OBNPP.mjs → chunk-EDEE7ETQ.mjs} +1 -1
- package/dist/{chunk-KL6W73BZ.mjs → chunk-EWGIF6FQ.mjs} +18 -1
- package/dist/{chunk-LPRRFCVU.mjs → chunk-F4OOBPKA.mjs} +2 -2
- package/dist/{chunk-V7F5DOSC.mjs → chunk-FBQYC5OX.mjs} +3 -3
- package/dist/{chunk-EGWBZSHK.mjs → chunk-FCQMZDRI.mjs} +2 -2
- package/dist/{chunk-MCAJOLVK.mjs → chunk-G3XRHAJA.mjs} +2 -2
- package/dist/{chunk-OQANB7SJ.mjs → chunk-H4QYQ5DE.mjs} +1 -1
- package/dist/{chunk-CKS4QQEC.mjs → chunk-II6XF6M4.mjs} +5 -5
- package/dist/{chunk-C3EINJNJ.mjs → chunk-JDG6CCXM.mjs} +1 -1
- package/dist/{chunk-3OEXOSWI.mjs → chunk-LR6JJVML.mjs} +4 -4
- package/dist/{chunk-TTTBE4TB.mjs → chunk-M5I64AQW.mjs} +3 -3
- package/dist/{chunk-FIXUVFUC.mjs → chunk-MHBG33R5.mjs} +7 -6
- package/dist/{chunk-X4UMDSB4.mjs → chunk-N3M4NPML.mjs} +1 -1
- package/dist/{chunk-M3H7CTIC.mjs → chunk-O337MDRJ.mjs} +5 -5
- package/dist/{chunk-CWXR7OP4.mjs → chunk-SL53DHVE.mjs} +804 -527
- package/dist/{chunk-JP77OWMI.mjs → chunk-UPDNNOTG.mjs} +1 -60
- package/dist/{chunk-SA7U67XF.mjs → chunk-URVH6BLO.mjs} +2 -2
- package/dist/{chunk-T3YI4KN6.mjs → chunk-VYSWVQCE.mjs} +1 -1
- package/dist/{chunk-TNEU32EN.mjs → chunk-WLFOLAQI.mjs} +2 -1
- package/dist/{chunk-ZVZ2V2PZ.mjs → chunk-WSIU6YXQ.mjs} +39 -20
- package/dist/{chunk-TBOZHYCF.mjs → chunk-Y7QUFIGV.mjs} +1 -1
- package/dist/{core-leaf-VIMO377O.mjs → core-leaf-NEUM7PU3.mjs} +3 -2
- package/dist/{direct-executor-JXYIL4OQ.mjs → direct-executor-37IH3ISS.mjs} +5 -4
- package/dist/distribution.mjs +254 -76
- package/dist/{embed-UNHDFGDU.mjs → embed-2QMYCD2Q.mjs} +43 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.react-native.mjs +4 -3
- package/dist/{long-query-thread-HPKGRYWM.mjs → long-query-thread-DIPJBMV7.mjs} +15 -14
- package/dist/{module-5SXNUCD5.mjs → module-Z3CL4GJ4.mjs} +10 -9
- package/dist/{optional-writes-QE7QUI45.mjs → optional-writes-YIVJMQ4D.mjs} +7 -6
- package/dist/{paged-partition-archive-IK2UOY2G.mjs → paged-partition-archive-IZ6U7DVN.mjs} +15 -14
- package/dist/partial-words.browser.mjs +1 -1
- package/dist/partial-words.mjs +5 -4
- package/dist/persistence/durability/checkpoint-worker.mjs +13 -12
- package/dist/{query-actions-COEFVUH3.mjs → query-actions-7EOKT3WD.mjs} +5 -4
- package/dist/query-suggestions/merge-worker.mjs +8 -7
- package/dist/query-suggestions.browser.mjs +1 -1
- package/dist/query-suggestions.mjs +6 -5
- package/dist/react-native/chunks/{chunk-DZ4FQW5K.mjs → chunk-7TPO4FLE.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-J2BQTJJE.mjs → chunk-BN6FUB7N.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-6A5XE2MA.mjs → chunk-CBU4M3EU.mjs} +803 -526
- package/dist/react-native/chunks/{chunk-DN2GVVR4.mjs → chunk-IEY4DARA.mjs} +1 -1
- package/dist/react-native/chunks/chunk-LX62Y4B5.mjs +61 -0
- package/dist/react-native/chunks/{chunk-I7DTUOK2.mjs → chunk-NLEFMPY3.mjs} +2 -60
- package/dist/react-native/chunks/{chunk-UPN4NUXU.mjs → chunk-T5HF3FW3.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-XNIH3WIB.mjs → chunk-ZQPSXN6C.mjs} +1 -1
- package/dist/{chunk-YWSIRKKQ.mjs → react-native/chunks/chunk-ZUFOYZ5P.mjs} +1 -1
- package/dist/react-native/chunks/core-leaf-TPBRRWVN.mjs +7 -0
- package/dist/react-native/chunks/{embed-U7CIKEY4.mjs → embed-4LBSQD7U.mjs} +43 -1
- package/dist/react-native/chunks/{module-7BJ3VOWQ.mjs → module-COLNJNML.mjs} +4 -3
- package/dist/react-native/chunks/{optional-writes-YZ7WTR7V.mjs → optional-writes-QETIM6BI.mjs} +5 -4
- package/dist/react-native/chunks/{resolve-vector-text-FTPD5EY6.mjs → resolve-vector-text-FU7D4QP5.mjs} +18 -1
- package/dist/react-native/chunks/{restore-queue-IGKD6Q2Y.mjs → restore-queue-3E2MJIJS.mjs} +14 -6
- package/dist/react-native/chunks/{runtime-BUCSAK4U.mjs → runtime-UOHD2XUJ.mjs} +23 -3
- package/dist/react-native/chunks/{segment-codec-leaf-JTTGDT3G.mjs → segment-codec-leaf-IE4DXUZV.mjs} +5 -4
- package/dist/react-native/chunks/{segment-merge-leaf-D5ZFJRUB.mjs → segment-merge-leaf-62LQ5WZB.mjs} +6 -5
- package/dist/react-native/chunks/{storage-leaf-ZKIM6IF6.mjs → storage-leaf-LNOLKWZB.mjs} +36 -17
- package/dist/react-native/chunks/{store-leaf-PHBOTT5J.mjs → store-leaf-Y7CBOPFZ.mjs} +6 -5
- package/dist/react-native/chunks/{suggestions-leaf-R7MIH6Q3.mjs → suggestions-leaf-PSUGL6MI.mjs} +6 -5
- package/dist/react-native/chunks/{worker-copies-U35KPVJ7.mjs → worker-copies-MW5O5U3D.mjs} +5 -4
- package/dist/react-native/partial-words.mjs +4 -3
- package/dist/react-native/query-suggestions.mjs +4 -3
- package/dist/react-native/sync.mjs +4 -3
- package/dist/react-native/synonyms.mjs +4 -3
- package/dist/{rerank-LYL3D7LU.mjs → rerank-KTV5L7MZ.mjs} +5 -4
- package/dist/resolve-vector-text-SD6BEMKZ.mjs +3 -0
- package/dist/{restore-queue-LF4DTVJC.mjs → restore-queue-ES7TDJ5V.mjs} +15 -7
- package/dist/{runtime-4GKUIAKV.mjs → runtime-USQYKN3I.mjs} +23 -3
- package/dist/{segment-codec-leaf-ACALKS2C.mjs → segment-codec-leaf-DO75VKEV.mjs} +6 -5
- package/dist/{segment-merge-leaf-SKMPASFK.mjs → segment-merge-leaf-JGND6LG5.mjs} +6 -5
- package/dist/server.mjs +22 -21
- package/dist/{storage-leaf-OJ55R4C5.mjs → storage-leaf-ZI3H2WJY.mjs} +26 -25
- package/dist/{store-leaf-CWHHEDRK.mjs → store-leaf-YIH36Y5J.mjs} +7 -6
- package/dist/{suggestions-leaf-ZTU3ZTWJ.mjs → suggestions-leaf-FP5HSTFP.mjs} +9 -8
- package/dist/sync/filesystem.mjs +10 -9
- package/dist/sync.browser.mjs +1 -1
- package/dist/sync.mjs +5 -4
- package/dist/synonyms.browser.mjs +1 -1
- package/dist/synonyms.mjs +5 -4
- package/dist/{thread-BEGFRULV.mjs → thread-NQRNW3IH.mjs} +14 -13
- package/dist/vector/search-worker.mjs +5 -4
- package/dist/{worker-copies-373P6IYZ.mjs → worker-copies-WYPRCNB7.mjs} +8 -7
- package/dist/workers/entry.mjs +11 -10
- package/package.json +7 -7
- package/dist/react-native/chunks/core-leaf-UDUMVC3M.mjs +0 -6
- package/dist/resolve-vector-text-6WPFFIX5.mjs +0 -2
package/dist/distribution.mjs
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
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, resolveAnalysisTarget, requireConfigurationWithinSizeLimit, memoryCheckpointStore, createByteReader, writeArchiveFile, namedSettingsOf, createDetachedIndex, loadPartitionSegments, holdsSettings, configOfNamedSettings, closePartitionWriter, requireRestoreMemory, archiveFootprint, storedBytesOfSegments, validateReplicationEntry, readSegmentManifest, replaySyncedWal, nestedSchemaOf } from './chunk-
|
|
6
|
-
import { readVectorFile } from './chunk-
|
|
7
|
-
import { addBackgroundAdmission, workWaitingForMemory, resolveHybridFusion, fuseRankings } from './chunk-
|
|
1
|
+
import { routableAllocation, resolvePartitionId, resolveNodeTargets, resolvePrimaryAssignment, requireAssignedPrimary, assertSufficientActiveReplicas, getInSyncReplicaTargets } from './chunk-FCQMZDRI.mjs';
|
|
2
|
+
import { emptySerializablePartition } from './chunk-A3OAFUZI.mjs';
|
|
3
|
+
import { applyStoredIndexBm25 } from './chunk-BVZWWMOU.mjs';
|
|
4
|
+
import { keyBytesOf, querySuggestionsOf, createQuerySuggestionsRuntime, publicBuildOf, buildRecordToWire, buildRecordFromWire, SUGGESTIONS_SCHEMA } from './chunk-DU23J5JG.mjs';
|
|
5
|
+
import { stampAnalysisGeneration, holdsNamedSettings, dropHeldAnalysisChange, releaseHeldAnalysisChange, heldAnalysisIsBuilt, buildHeldAnalysisChange, archiveStream, buildArchiveFromMemory, indexMetadataOf, applyIndexEntry, applyDeleteEntry, resolveAnalysisTarget, requireConfigurationWithinSizeLimit, memoryCheckpointStore, createByteReader, writeArchiveFile, namedSettingsOf, createDetachedIndex, loadPartitionSegments, holdsSettings, configOfNamedSettings, closePartitionWriter, requireRestoreMemory, archiveFootprint, storedBytesOfSegments, validateReplicationEntry, readSegmentManifest, replaySyncedWal, nestedSchemaOf } from './chunk-WSIU6YXQ.mjs';
|
|
6
|
+
import { readVectorFile } from './chunk-II6XF6M4.mjs';
|
|
7
|
+
import { addBackgroundAdmission, workWaitingForMemory, resolveHybridFusion, fuseRankings } from './chunk-Y7QUFIGV.mjs';
|
|
8
8
|
import { MAX_MESSAGE_SIZE_BYTES } from './chunk-UNEEFTEU.mjs';
|
|
9
|
-
import { bindEngineWriteBlock, bindIndexReads, syncServingSourceOf, bindSyncServing, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, bindWriteBlockLookup, backupKeys, validateBackupName, storedFilesOf, BACKUP_MANIFEST_READS_AT_ONCE, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, SYNC_BACKUP_TAKER, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, readRestorePlacement, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, SYNC_BACKUPS_KEPT, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-
|
|
10
|
-
import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, suggestionStateOfSettings, indexConfigKey, metadataWithSync, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, isRecord2, decodeIndexSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState } from './chunk-
|
|
11
|
-
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, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, FETCH_GROUP_DOCUMENT_IDS, COPY_FAILURE_RETRY_DELAY_MS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, 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-
|
|
12
|
-
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-
|
|
13
|
-
import { encodeIndexConfiguration, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, requireSyncSetting, requireNoQuerySuggestions, decodeIndexConfiguration, INDEX_CONFIGURATION_ENVELOPE_VERSION } from './chunk-
|
|
14
|
-
import { restoredConfigFields, restoredEmbedding } from './chunk-
|
|
15
|
-
import { estimatedArchiveBytes, readSnapshotArchive, archiveLayout, openManifestPayload, sourceIndexNameOf, listedKeysOf, decodeManifestPayload } from './chunk-
|
|
9
|
+
import { bindEngineWriteBlock, bindIndexReads, syncServingSourceOf, bindSyncServing, validateBackupConfig, BACKUP_SWEEP_INTERVAL_MS, bindWriteBlockLookup, backupKeys, validateBackupName, storedFilesOf, BACKUP_MANIFEST_READS_AT_ONCE, decodeBackupManifest, BACKUP_JOBS_KEY, BACKUP_DELETES_AT_ONCE, BACKUP_PROGRESS_REPORT_INTERVAL_MS, BACKUP_PARTITION_RESULT_RETENTION_MS, BACKUP_JOB_POLL_INTERVAL_MS, SYNC_BACKUP_TAKER, BACKUP_FILES_AT_ONCE, isCount, storeWithoutSaveIfAbsent, CLUSTER_UUID_KEY, isSha256Hex, BACKUP_PUBLISH_RETRY_MS, readRestorePlacement, BACKUP_JOB_CAS_ATTEMPTS, BACKUP_JOB_CAS_RETRY_MS, MAX_CLUSTER_UUID_BYTES, MAX_FINISHED_BACKUP_JOBS, BACKUP_FILE_CHUNK_BYTES, encodeBackupManifest, SYNC_BACKUPS_KEPT, BACKUP_PARTITIONS_AT_ONCE, BACKUP_PARTITION_POLL_INTERVAL_MS, BACKUP_PRIMARY_WAIT_MS, readBackupPartition, readStoredFile } from './chunk-5BUEBIXR.mjs';
|
|
10
|
+
import { DEFAULT_NODE_LIFECYCLE_CONFIG, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, indexMetadataSnapshotOf, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, suggestionStateOfSettings, indexConfigKey, metadataWithSync, indexConfigFromSettings, metadataWithBm25, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, isRecord2, decodeIndexSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, storedSynonymSetOf, RESHARD_FORWARD_BATCH_DOCUMENTS, RESHARD_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_RETRY_ROUNDS, ANALYSIS_CHANGE_RETRY_MS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, ANALYSIS_CHANGE_POLL_INTERVAL_MS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, ANALYSIS_REBUILD_RESEND_MS, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, SYNC_EPOCH_CAS_ATTEMPTS, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS, metadataWithSuggestionState } from './chunk-CODGHJVW.mjs';
|
|
11
|
+
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, 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-2GONI5HL.mjs';
|
|
12
|
+
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-2GONI5HL.mjs';
|
|
13
|
+
import { encodeIndexConfiguration, MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, requireSyncSetting, requireNoQuerySuggestions, decodeIndexConfiguration, INDEX_CONFIGURATION_ENVELOPE_VERSION } from './chunk-URVH6BLO.mjs';
|
|
14
|
+
import { restoredConfigFields, restoredEmbedding } from './chunk-N3M4NPML.mjs';
|
|
15
|
+
import { estimatedArchiveBytes, readSnapshotArchive, archiveLayout, openManifestPayload, sourceIndexNameOf, listedKeysOf, decodeManifestPayload } from './chunk-7WXGUTWK.mjs';
|
|
16
16
|
import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
|
|
17
17
|
import './chunk-T4HMSZCX.mjs';
|
|
18
|
-
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, createInsyncAddMessage, validateAckPayload, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-
|
|
19
|
-
import { directoryCheckpointStore, readListedFile, encodeSegmentManifest } from './chunk-
|
|
18
|
+
import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, createInsyncAddMessage, validateAckPayload, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-LR6JJVML.mjs';
|
|
19
|
+
import { directoryCheckpointStore, readListedFile, encodeSegmentManifest } from './chunk-M5I64AQW.mjs';
|
|
20
20
|
import { TransportErrorCodes, ClusterMessageTypes, ReplicationMessageTypes, SuggestionMessageTypes, SyncMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-5FLRXF73.mjs';
|
|
21
21
|
import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-JDDXV6UF.mjs';
|
|
22
|
-
import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-
|
|
22
|
+
import { manifestFileRefs, segmentKey, SEGMENT_MANIFEST_VERSION, vectorFileKey } from './chunk-2KCCQK4R.mjs';
|
|
23
23
|
import { getPath, getFs } from './chunk-HLPRHOSO.mjs';
|
|
24
24
|
import './chunk-MSIN4NM3.mjs';
|
|
25
25
|
import './chunk-CV3Q2EKO.mjs';
|
|
26
26
|
import './chunk-LNGE7SLY.mjs';
|
|
27
27
|
import './chunk-I2WJCRIH.mjs';
|
|
28
|
-
import './chunk-
|
|
29
|
-
import { deserializePartition } from './chunk-
|
|
30
|
-
import { decodeVectorFilePayload, bytesToVectors, isDead, MIN_EF_SEARCH, MAX_EF_SEARCH, MIN_OVERSAMPLE } from './chunk-
|
|
31
|
-
import './chunk-
|
|
32
|
-
import { RestoredHistory } from './chunk-
|
|
28
|
+
import './chunk-4JBTALUC.mjs';
|
|
29
|
+
import { deserializePartition } from './chunk-H4QYQ5DE.mjs';
|
|
30
|
+
import { decodeVectorFilePayload, bytesToVectors, isDead, MIN_EF_SEARCH, MAX_EF_SEARCH, MIN_OVERSAMPLE } from './chunk-WLFOLAQI.mjs';
|
|
31
|
+
import './chunk-2YWWHMVC.mjs';
|
|
32
|
+
import { RestoredHistory } from './chunk-G3XRHAJA.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-EDEE7ETQ.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, getLanguage, resolveIndexAnalysis, memoryFractionsOf, createMemoryMonitor, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, bm25SetsValue, prepareConfiguredSynonyms, storedArrayPositionGap, updateDocumentVectors, arrayPositionsAreStale, fnv1a, readRecentMemoryFigures, normalizeSort, sortModesOf, resolveProjection, 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, clampRowCount, now, sortSignatureOf, listBindingOf, requireMatchingCursor, decodePageCursor, encodePageCursor, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, clampLimit, requireWithinResultWindow, providedDocId, holdsQuotedText, queryBindingOf, engineCoreOf, sortSignatureEntry, fnv1aUint32s, loadRerankRuntime, mergePartitionStats, mergeEntries, regionsOverlap, compareScores } from './chunk-
|
|
36
|
+
import { oversampledShardSize, runtimeHost, bindRerankWindowSource, rerankWindowCapOf, validateMemoryFractions, requireKnownConfig, importOptionalReads, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, emitEngineEvent, synonymModule, createEngineIndex, generateId, getLanguage, resolveIndexAnalysis, memoryFractionsOf, createMemoryMonitor, readMemoryFigures, FULL_MEMORY_COLLECTION_INTERVAL_MS, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, bm25SetsValue, prepareConfiguredSynonyms, storedArrayPositionGap, updateDocumentVectors, arrayPositionsAreStale, fnv1a, readRecentMemoryFigures, normalizeSort, sortModesOf, resolveProjection, 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, clampRowCount, now, sortSignatureOf, listBindingOf, requireMatchingCursor, decodePageCursor, encodePageCursor, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, clampLimit, requireWithinResultWindow, providedDocId, holdsQuotedText, queryBindingOf, engineCoreOf, sortSignatureEntry, fnv1aUint32s, loadRerankRuntime, mergePartitionStats, mergeEntries, regionsOverlap, compareScores } from './chunk-SL53DHVE.mjs';
|
|
37
37
|
import { encodeDocument, encodeDocumentReply } from './chunk-KLVMK3R5.mjs';
|
|
38
|
-
import { collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal, onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes } from './chunk-
|
|
38
|
+
import { collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal, onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes } from './chunk-F4OOBPKA.mjs';
|
|
39
39
|
import { decode } from './chunk-GXCDWLQI.mjs';
|
|
40
40
|
import { newSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
41
41
|
import './chunk-7T4LAYT4.mjs';
|
|
42
42
|
import { MAX_FILTER_DEPTH, MAX_FILTER_TESTS, isPatternTolerance, MAX_FILTER_ARRAY_SIZE, buildStoredValues } from './chunk-YM2HI5N5.mjs';
|
|
43
43
|
import { loadMessagePack, validateSchema, requireCreatableSchema, schemaFieldsOf, getNestedValue, MAX_NESTING_DEPTH, MAX_STORED_VECTOR_DIMENSION, MIN_POLYGON_POINTS, isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES } from './chunk-X5NHWOXT.mjs';
|
|
44
44
|
import './chunk-U2BKYEC7.mjs';
|
|
45
|
-
import './chunk-
|
|
46
|
-
import { collectAndReturnPages
|
|
45
|
+
import './chunk-6SZQETSC.mjs';
|
|
46
|
+
import { collectAndReturnPages } from './chunk-UPDNNOTG.mjs';
|
|
47
|
+
import { BATCH_CHUNK_SIZE, MAX_SORT_FIELDS, MAX_DOC_ID_LENGTH, MAX_CURSOR_LENGTH, MAX_TOLERANCE, MAX_PREFIX_LENGTH, RESULT_WINDOW, MIN_HYBRID_DEPTH, MAX_HYBRID_DEPTH, DEFAULT_SUGGEST_LIMIT, MAX_SUGGEST_LIMIT, MAX_SUGGEST_SCATTER_LIMIT, DEFAULT_PAGE_SIZE, SUGGEST_OVERSAMPLE_FACTOR, SUGGEST_OVERSAMPLE_PADDING, HYBRID_RESCORE_WINDOW, DEFAULT_LINEAR_ALPHA, DEFAULT_RANK_CONSTANT } from './chunk-3ECIRFS5.mjs';
|
|
47
48
|
import { nativeSearchCoreIsEnabled, loadNativeCore, noteFallback } from './chunk-D6FYUTFN.mjs';
|
|
48
49
|
import './chunk-ZXX5GZEX.mjs';
|
|
49
50
|
import { joinChunks, readWhole } from './chunk-IE3Q62QD.mjs';
|
|
@@ -3432,6 +3433,7 @@ function createCatchUpState() {
|
|
|
3432
3433
|
admissionGenerations: /* @__PURE__ */ new Map(),
|
|
3433
3434
|
lastAdmissionGeneration: 0,
|
|
3434
3435
|
startedTerms: /* @__PURE__ */ new Map(),
|
|
3436
|
+
outOfStepRemovals: /* @__PURE__ */ new Map(),
|
|
3435
3437
|
inFlightBytes: 0,
|
|
3436
3438
|
timer: null,
|
|
3437
3439
|
activeTick: null,
|
|
@@ -3504,6 +3506,18 @@ function forgetCatchUpIndex(state, indexName) {
|
|
|
3504
3506
|
forgetKeysOfIndex(state.removedReplicas, indexName);
|
|
3505
3507
|
forgetKeysOfIndex(state.admissionGenerations, indexName);
|
|
3506
3508
|
forgetKeysOfIndex(state.startedTerms, indexName);
|
|
3509
|
+
forgetKeysOfIndex(state.outOfStepRemovals, indexName);
|
|
3510
|
+
}
|
|
3511
|
+
function forgetOutOfStepRemovalsOfIndex(state, indexName) {
|
|
3512
|
+
for (const key of [...state.outOfStepRemovals.keys()]) {
|
|
3513
|
+
if (key.slice(0, key.lastIndexOf(":")) !== indexName) continue;
|
|
3514
|
+
state.outOfStepRemovals.delete(key);
|
|
3515
|
+
state.startedTerms.delete(key);
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
function feedsReplica(state, indexName, partitionId, replicaNodeId) {
|
|
3519
|
+
const key = partitionKey(indexName, partitionId);
|
|
3520
|
+
return state.cursors.get(key)?.has(replicaNodeId) === true || state.pendingAdmissions.get(key)?.has(replicaNodeId) === true;
|
|
3507
3521
|
}
|
|
3508
3522
|
function getPendingAdmissions(state, indexName, partitionId) {
|
|
3509
3523
|
const pending = state.pendingAdmissions.get(partitionKey(indexName, partitionId));
|
|
@@ -3698,44 +3712,50 @@ async function removeFailedReplicasFromInsync(entry, failedReplicas, deps) {
|
|
|
3698
3712
|
);
|
|
3699
3713
|
}
|
|
3700
3714
|
async function removeEachFailedReplica(entry, failedReplicas, deps) {
|
|
3715
|
+
const controllerNodeId = await controllerForRemoval(entry, failedReplicas, deps);
|
|
3716
|
+
for (const replicaNodeId of failedReplicas) {
|
|
3717
|
+
const generationAtRemoval = admissionGenerationOf(deps.catchUp, entry.indexName, entry.partitionId, replicaNodeId);
|
|
3718
|
+
await removeReplicaFromInsync(entry, replicaNodeId, controllerNodeId, generationAtRemoval, deps);
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
async function controllerForRemoval(entry, failedReplicas, deps) {
|
|
3701
3722
|
const controllerNodeId = await deps.coordinator.getLeaseHolder(CONTROLLER_LEASE_KEY);
|
|
3702
|
-
if (controllerNodeId
|
|
3723
|
+
if (controllerNodeId !== null) return controllerNodeId;
|
|
3724
|
+
await deps.refreshAllocation?.(entry.indexName);
|
|
3725
|
+
await assertPrimaryWriteAuthority(entry, deps);
|
|
3726
|
+
throw new NarsilError(
|
|
3727
|
+
ErrorCodes.REPLICATION_INSYNC_REMOVAL_FAILED,
|
|
3728
|
+
`Failed to remove replicas from in-sync set for index '${entry.indexName}': no active controller lease holder`,
|
|
3729
|
+
{ indexName: entry.indexName, partitionId: entry.partitionId, failedReplicas }
|
|
3730
|
+
);
|
|
3731
|
+
}
|
|
3732
|
+
async function removeReplicaFromInsync(entry, replicaNodeId, controllerNodeId, generationAtRemoval, deps, stillWanted) {
|
|
3733
|
+
const accepted = await requestInsyncRemovalWithTargets(
|
|
3734
|
+
entry.indexName,
|
|
3735
|
+
entry.partitionId,
|
|
3736
|
+
replicaNodeId,
|
|
3737
|
+
entry.primaryTerm,
|
|
3738
|
+
controllerNodeId,
|
|
3739
|
+
deps,
|
|
3740
|
+
stillWanted
|
|
3741
|
+
);
|
|
3742
|
+
if (!accepted) {
|
|
3703
3743
|
await deps.refreshAllocation?.(entry.indexName);
|
|
3704
3744
|
await assertPrimaryWriteAuthority(entry, deps);
|
|
3705
3745
|
throw new NarsilError(
|
|
3706
3746
|
ErrorCodes.REPLICATION_INSYNC_REMOVAL_FAILED,
|
|
3707
|
-
`
|
|
3708
|
-
{ indexName: entry.indexName, partitionId: entry.partitionId,
|
|
3709
|
-
);
|
|
3710
|
-
}
|
|
3711
|
-
for (const replicaNodeId of failedReplicas) {
|
|
3712
|
-
const generationAtRemoval = admissionGenerationOf(deps.catchUp, entry.indexName, entry.partitionId, replicaNodeId);
|
|
3713
|
-
const accepted = await requestInsyncRemovalWithTargets(
|
|
3714
|
-
entry.indexName,
|
|
3715
|
-
entry.partitionId,
|
|
3716
|
-
replicaNodeId,
|
|
3717
|
-
entry.primaryTerm,
|
|
3718
|
-
controllerNodeId,
|
|
3719
|
-
deps
|
|
3720
|
-
);
|
|
3721
|
-
if (!accepted) {
|
|
3722
|
-
await deps.refreshAllocation?.(entry.indexName);
|
|
3723
|
-
await assertPrimaryWriteAuthority(entry, deps);
|
|
3724
|
-
throw new NarsilError(
|
|
3725
|
-
ErrorCodes.REPLICATION_INSYNC_REMOVAL_FAILED,
|
|
3726
|
-
`Controller rejected in-sync removal for replica '${replicaNodeId}' of index '${entry.indexName}' partition ${entry.partitionId}`,
|
|
3727
|
-
{ indexName: entry.indexName, partitionId: entry.partitionId, replicaNodeId }
|
|
3728
|
-
);
|
|
3729
|
-
}
|
|
3730
|
-
recordRemovalUnlessReadmitted(
|
|
3731
|
-
deps.catchUp,
|
|
3732
|
-
entry.indexName,
|
|
3733
|
-
entry.partitionId,
|
|
3734
|
-
replicaNodeId,
|
|
3735
|
-
entry.primaryTerm,
|
|
3736
|
-
generationAtRemoval
|
|
3747
|
+
`Controller rejected in-sync removal for replica '${replicaNodeId}' of index '${entry.indexName}' partition ${entry.partitionId}`,
|
|
3748
|
+
{ indexName: entry.indexName, partitionId: entry.partitionId, replicaNodeId }
|
|
3737
3749
|
);
|
|
3738
3750
|
}
|
|
3751
|
+
recordRemovalUnlessReadmitted(
|
|
3752
|
+
deps.catchUp,
|
|
3753
|
+
entry.indexName,
|
|
3754
|
+
entry.partitionId,
|
|
3755
|
+
replicaNodeId,
|
|
3756
|
+
entry.primaryTerm,
|
|
3757
|
+
generationAtRemoval
|
|
3758
|
+
);
|
|
3739
3759
|
}
|
|
3740
3760
|
function replicaTargetsOf(entry, assignment, deps) {
|
|
3741
3761
|
const admitted = admittedBeyondTable(deps.catchUp, entry.indexName, entry.partitionId, assignment);
|
|
@@ -3749,11 +3769,28 @@ function replicaTargetsOf(entry, assignment, deps) {
|
|
|
3749
3769
|
);
|
|
3750
3770
|
return { admitted, targets };
|
|
3751
3771
|
}
|
|
3752
|
-
async function requestInsyncRemovalWithTargets(indexName, partitionId, replicaNodeId, primaryTerm, controllerNodeId, deps) {
|
|
3772
|
+
async function requestInsyncRemovalWithTargets(indexName, partitionId, replicaNodeId, primaryTerm, controllerNodeId, deps, stillWanted) {
|
|
3753
3773
|
const targets = await resolveNodeTargets(controllerNodeId, deps);
|
|
3754
3774
|
const result = await sendThroughTargets(
|
|
3755
3775
|
targets,
|
|
3756
|
-
(target) =>
|
|
3776
|
+
async (target) => {
|
|
3777
|
+
if (stillWanted?.() === false) {
|
|
3778
|
+
throw new NarsilError(
|
|
3779
|
+
ErrorCodes.REPLICATION_INSYNC_REMOVAL_FAILED,
|
|
3780
|
+
`The primary no longer wants replica '${replicaNodeId}' of index '${indexName}' partition ${partitionId} removed from the in-sync set, so it sent no removal request`,
|
|
3781
|
+
{ indexName, partitionId, replicaNodeId, controllerNodeId }
|
|
3782
|
+
);
|
|
3783
|
+
}
|
|
3784
|
+
return requestInsyncRemoval(
|
|
3785
|
+
indexName,
|
|
3786
|
+
partitionId,
|
|
3787
|
+
replicaNodeId,
|
|
3788
|
+
primaryTerm,
|
|
3789
|
+
target,
|
|
3790
|
+
deps.transport,
|
|
3791
|
+
deps.nodeId
|
|
3792
|
+
);
|
|
3793
|
+
},
|
|
3757
3794
|
{
|
|
3758
3795
|
message: `Controller '${controllerNodeId}' did not answer an in-sync removal request for index '${indexName}' partition ${partitionId}`,
|
|
3759
3796
|
details: { indexName, partitionId, replicaNodeId, controllerNodeId }
|
|
@@ -4233,8 +4270,8 @@ function refusedByPrimaryChange(error, retriesEndedTerm = false) {
|
|
|
4233
4270
|
return abandonedWithTerm(error) && (retriesEndedTerm || abandonedWriteOf(error) !== void 0);
|
|
4234
4271
|
}
|
|
4235
4272
|
function nextCondition(error, current) {
|
|
4236
|
-
const
|
|
4237
|
-
return
|
|
4273
|
+
const abandoned2 = abandonedWriteOf(error);
|
|
4274
|
+
return abandoned2 === void 0 ? current : conditionOf(abandoned2);
|
|
4238
4275
|
}
|
|
4239
4276
|
function refusedForAnotherIndex(error) {
|
|
4240
4277
|
return refusedByPrimaryChange(error) && error instanceof NarsilError && typeof error.details.heldIndexUuid === "string";
|
|
@@ -4495,7 +4532,7 @@ function createGroupCommit(scope, appended, failed2) {
|
|
|
4495
4532
|
async function replicateAppendedWrites(scope, appended, failed2, compensate, deps) {
|
|
4496
4533
|
const succeeded2 = [];
|
|
4497
4534
|
const chunks = chunkReplicationEntries(appended);
|
|
4498
|
-
const
|
|
4535
|
+
const abandoned2 = [];
|
|
4499
4536
|
let abortError;
|
|
4500
4537
|
for (const chunk of chunks) {
|
|
4501
4538
|
if (abortError === void 0) {
|
|
@@ -4512,14 +4549,14 @@ async function replicateAppendedWrites(scope, appended, failed2, compensate, dep
|
|
|
4512
4549
|
abortError = error;
|
|
4513
4550
|
}
|
|
4514
4551
|
}
|
|
4515
|
-
|
|
4552
|
+
abandoned2.push(...chunk);
|
|
4516
4553
|
}
|
|
4517
|
-
const first =
|
|
4554
|
+
const first = abandoned2[0];
|
|
4518
4555
|
if (first === void 0) return succeeded2;
|
|
4519
4556
|
const failedAt = Date.now();
|
|
4520
4557
|
const compensated = [];
|
|
4521
|
-
for (let index =
|
|
4522
|
-
const item =
|
|
4558
|
+
for (let index = abandoned2.length - 1; index >= 0; index--) {
|
|
4559
|
+
const item = abandoned2[index];
|
|
4523
4560
|
try {
|
|
4524
4561
|
const compensation = await compensate(item, abortError);
|
|
4525
4562
|
compensated.push({ item, compensation: compensation ?? null });
|
|
@@ -4796,6 +4833,127 @@ function termStartAckOf(response, request) {
|
|
|
4796
4833
|
}
|
|
4797
4834
|
}
|
|
4798
4835
|
|
|
4836
|
+
// src/distribution/cluster-node/write-routing/out-of-step-removal.ts
|
|
4837
|
+
function termOf(scope) {
|
|
4838
|
+
return { indexName: scope.indexName, partitionId: scope.partitionId, primaryTerm: scope.assignment.primaryTerm };
|
|
4839
|
+
}
|
|
4840
|
+
function claimOutOfStepRemoval(scope) {
|
|
4841
|
+
const { catchUp } = scope.deps;
|
|
4842
|
+
const key = partitionKey(scope.indexName, scope.partitionId);
|
|
4843
|
+
const current = catchUp.outOfStepRemovals.get(key);
|
|
4844
|
+
if (current !== void 0 && current.primaryTerm > scope.assignment.primaryTerm) return void 0;
|
|
4845
|
+
const removal = { primaryTerm: scope.assignment.primaryTerm };
|
|
4846
|
+
catchUp.outOfStepRemovals.set(key, removal);
|
|
4847
|
+
return removal;
|
|
4848
|
+
}
|
|
4849
|
+
function releaseOutOfStepRemoval(scope, removal) {
|
|
4850
|
+
const { catchUp } = scope.deps;
|
|
4851
|
+
const key = partitionKey(scope.indexName, scope.partitionId);
|
|
4852
|
+
if (catchUp.outOfStepRemovals.get(key) === removal) catchUp.outOfStepRemovals.delete(key);
|
|
4853
|
+
}
|
|
4854
|
+
function outOfStepCopyOf(scope, replicaNodeId) {
|
|
4855
|
+
const { deps, indexName, partitionId } = scope;
|
|
4856
|
+
return { replicaNodeId, generation: admissionGenerationOf(deps.catchUp, indexName, partitionId, replicaNodeId) };
|
|
4857
|
+
}
|
|
4858
|
+
async function removeOutOfStepCopies(scope, removal, copies) {
|
|
4859
|
+
const pending = { copies };
|
|
4860
|
+
let settled = true;
|
|
4861
|
+
try {
|
|
4862
|
+
settled = await attemptRemoval(scope, removal, pending, false);
|
|
4863
|
+
} catch (error) {
|
|
4864
|
+
settled = lostTerm(error);
|
|
4865
|
+
}
|
|
4866
|
+
if (settled || abandoned(scope, removal)) {
|
|
4867
|
+
releaseOutOfStepRemoval(scope, removal);
|
|
4868
|
+
return;
|
|
4869
|
+
}
|
|
4870
|
+
void keepRemoving(scope, pending, removal).catch(() => void 0).finally(() => releaseOutOfStepRemoval(scope, removal));
|
|
4871
|
+
}
|
|
4872
|
+
function abandoned(scope, removal) {
|
|
4873
|
+
const { deps, indexName, partitionId } = scope;
|
|
4874
|
+
return deps.stopped?.() === true || deps.catchUp.stopped || deps.catchUp.outOfStepRemovals.get(partitionKey(indexName, partitionId)) !== removal;
|
|
4875
|
+
}
|
|
4876
|
+
function admittedSince(scope, copy) {
|
|
4877
|
+
const { deps, indexName, partitionId } = scope;
|
|
4878
|
+
return !admissionGenerationIs(deps.catchUp, indexName, partitionId, copy.replicaNodeId, copy.generation);
|
|
4879
|
+
}
|
|
4880
|
+
function removable(scope, copy) {
|
|
4881
|
+
const { deps, indexName, partitionId } = scope;
|
|
4882
|
+
return !admittedSince(scope, copy) && !feedsReplica(deps.catchUp, indexName, partitionId, copy.replicaNodeId);
|
|
4883
|
+
}
|
|
4884
|
+
function stillInSync(scope, current, copies) {
|
|
4885
|
+
const { deps, indexName, partitionId } = scope;
|
|
4886
|
+
const inSync = withoutRemovedReplicas(
|
|
4887
|
+
deps.catchUp,
|
|
4888
|
+
indexName,
|
|
4889
|
+
partitionId,
|
|
4890
|
+
current.primaryTerm,
|
|
4891
|
+
copies.map((copy) => copy.replicaNodeId).filter((replicaNodeId) => current.inSyncSet.includes(replicaNodeId))
|
|
4892
|
+
);
|
|
4893
|
+
return copies.filter((copy) => inSync.includes(copy.replicaNodeId));
|
|
4894
|
+
}
|
|
4895
|
+
async function tryRemoval(scope, pending, refresh, live) {
|
|
4896
|
+
if (!live()) return false;
|
|
4897
|
+
pending.copies = pending.copies.filter((copy) => !admittedSince(scope, copy));
|
|
4898
|
+
if (refresh && pending.copies.length > 0) {
|
|
4899
|
+
const current = await leadingAssignment(scope);
|
|
4900
|
+
if (!live()) return false;
|
|
4901
|
+
pending.copies = stillInSync(scope, current, pending.copies);
|
|
4902
|
+
}
|
|
4903
|
+
let controllerNodeId;
|
|
4904
|
+
for (const copy of [...pending.copies]) {
|
|
4905
|
+
if (!removable(scope, copy)) continue;
|
|
4906
|
+
if (controllerNodeId === void 0) {
|
|
4907
|
+
controllerNodeId = await controllerForRemoval(
|
|
4908
|
+
termOf(scope),
|
|
4909
|
+
pending.copies.map((other) => other.replicaNodeId),
|
|
4910
|
+
scope.deps
|
|
4911
|
+
);
|
|
4912
|
+
if (!live()) return false;
|
|
4913
|
+
if (!removable(scope, copy)) continue;
|
|
4914
|
+
}
|
|
4915
|
+
const wanted = () => live() && removable(scope, copy);
|
|
4916
|
+
await removeReplicaFromInsync(
|
|
4917
|
+
termOf(scope),
|
|
4918
|
+
copy.replicaNodeId,
|
|
4919
|
+
controllerNodeId,
|
|
4920
|
+
copy.generation,
|
|
4921
|
+
scope.deps,
|
|
4922
|
+
wanted
|
|
4923
|
+
);
|
|
4924
|
+
if (!live()) return false;
|
|
4925
|
+
pending.copies = pending.copies.filter((other) => other !== copy);
|
|
4926
|
+
}
|
|
4927
|
+
pending.copies = pending.copies.filter((copy) => !admittedSince(scope, copy));
|
|
4928
|
+
return pending.copies.length === 0;
|
|
4929
|
+
}
|
|
4930
|
+
async function attemptRemoval(scope, removal, pending, refresh) {
|
|
4931
|
+
const timeoutMs = replicationTimeoutOf(scope.deps);
|
|
4932
|
+
let open3 = true;
|
|
4933
|
+
try {
|
|
4934
|
+
return await withinDeadline(
|
|
4935
|
+
tryRemoval(scope, pending, refresh, () => open3 && !abandoned(scope, removal)),
|
|
4936
|
+
timeoutMs,
|
|
4937
|
+
() => new Error(`A try to remove out-of-step copies did not finish within ${timeoutMs}ms`)
|
|
4938
|
+
);
|
|
4939
|
+
} finally {
|
|
4940
|
+
open3 = false;
|
|
4941
|
+
}
|
|
4942
|
+
}
|
|
4943
|
+
async function keepRemoving(scope, pending, removal) {
|
|
4944
|
+
let delayMs = OUT_OF_STEP_REMOVAL_RETRY_INITIAL_DELAY_MS;
|
|
4945
|
+
for (; ; ) {
|
|
4946
|
+
await pause(delayMs);
|
|
4947
|
+
if (abandoned(scope, removal)) return;
|
|
4948
|
+
try {
|
|
4949
|
+
if (await attemptRemoval(scope, removal, pending, true)) return;
|
|
4950
|
+
} catch (error) {
|
|
4951
|
+
if (lostTerm(error)) return;
|
|
4952
|
+
}
|
|
4953
|
+
delayMs = Math.min(delayMs * 2, OUT_OF_STEP_REMOVAL_RETRY_DELAY_CAP_MS);
|
|
4954
|
+
}
|
|
4955
|
+
}
|
|
4956
|
+
|
|
4799
4957
|
// src/distribution/cluster-node/write-routing/term-start.ts
|
|
4800
4958
|
async function startTermInQueue(scope) {
|
|
4801
4959
|
const { deps, indexName, partitionId, assignment } = scope;
|
|
@@ -4804,13 +4962,28 @@ async function startTermInQueue(scope) {
|
|
|
4804
4962
|
deps.catchUp.startedTerms.set(key, assignment.primaryTerm);
|
|
4805
4963
|
const copies = getInSyncReplicaTargets(assignment, deps.nodeId);
|
|
4806
4964
|
if (copies.length === 0) return false;
|
|
4807
|
-
const
|
|
4965
|
+
const removal = claimOutOfStepRemoval(scope);
|
|
4966
|
+
const work = startTermOnCopies(scope, copies, removal).catch(() => void 0);
|
|
4808
4967
|
await withinDeadline(work, replicationTimeoutOf(deps), () => new Error("The term start outlasted its hold")).catch(
|
|
4809
4968
|
() => void 0
|
|
4810
4969
|
);
|
|
4811
4970
|
return true;
|
|
4812
4971
|
}
|
|
4813
|
-
async function startTermOnCopies(scope, copies) {
|
|
4972
|
+
async function startTermOnCopies(scope, copies, removal) {
|
|
4973
|
+
let outOfStep = [];
|
|
4974
|
+
try {
|
|
4975
|
+
outOfStep = await settleCopies(scope, copies);
|
|
4976
|
+
} finally {
|
|
4977
|
+
if (removal !== void 0) {
|
|
4978
|
+
await removeOutOfStepCopies(
|
|
4979
|
+
scope,
|
|
4980
|
+
removal,
|
|
4981
|
+
outOfStep.filter((copy) => copy !== null)
|
|
4982
|
+
);
|
|
4983
|
+
}
|
|
4984
|
+
}
|
|
4985
|
+
}
|
|
4986
|
+
async function settleCopies(scope, copies) {
|
|
4814
4987
|
const { deps, indexName, partitionId, assignment } = scope;
|
|
4815
4988
|
const log = deps.getReplicationLog(indexName, partitionId);
|
|
4816
4989
|
const lastSeqNo = log.localLogEnd;
|
|
@@ -4822,9 +4995,13 @@ async function startTermOnCopies(scope, copies) {
|
|
|
4822
4995
|
lastPrimaryTerm: lastSeqNo === 0 ? 0 : log.termAt(lastSeqNo) ?? 0
|
|
4823
4996
|
};
|
|
4824
4997
|
if (scope.indexUuid !== void 0) request.indexUuid = scope.indexUuid;
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4998
|
+
return Promise.all(
|
|
4999
|
+
copies.map(async (copy) => {
|
|
5000
|
+
const beforeRequest = outOfStepCopyOf(scope, copy);
|
|
5001
|
+
const inStep = await settleCopy(scope, log, request, copy).catch(() => false);
|
|
5002
|
+
return inStep ? null : beforeRequest;
|
|
5003
|
+
})
|
|
5004
|
+
);
|
|
4828
5005
|
}
|
|
4829
5006
|
async function settleCopy(scope, log, request, copy) {
|
|
4830
5007
|
const { deps } = scope;
|
|
@@ -14824,6 +15001,7 @@ function deleteIndexReplicationLogs(replicationLogs, indexName) {
|
|
|
14824
15001
|
function forgetClosedCopy(state, indexName) {
|
|
14825
15002
|
deleteIndexReplicationLogs(state.replicationLogs, indexName);
|
|
14826
15003
|
forgetReshardIndex(state.reshard, indexName);
|
|
15004
|
+
forgetOutOfStepRemovalsOfIndex(state.catchUp(), indexName);
|
|
14827
15005
|
}
|
|
14828
15006
|
function forgetDroppedCopy(state, indexName) {
|
|
14829
15007
|
forgetClosedCopy(state, indexName);
|
|
@@ -14949,7 +15127,7 @@ async function openOnce(core, indexName, partitionId) {
|
|
|
14949
15127
|
if (directory === void 0) throw durabilityRequired(indexName, partitionId);
|
|
14950
15128
|
if ((checkpoint.manifest.analysisGeneration ?? 0) !== entry.analysisGeneration) return null;
|
|
14951
15129
|
const config = await encodeIndexConfiguration(entry);
|
|
14952
|
-
const { openPagedPartitionArchive } = await import('./paged-partition-archive-
|
|
15130
|
+
const { openPagedPartitionArchive } = await import('./paged-partition-archive-IZ6U7DVN.mjs');
|
|
14953
15131
|
const archive = await openPagedPartitionArchive(checkpoint, directory, indexName, partitionId, manager);
|
|
14954
15132
|
handedOver = true;
|
|
14955
15133
|
try {
|
|
@@ -15657,7 +15835,7 @@ async function archiveReplicationPartition(core, indexName, partitionId, lastSeq
|
|
|
15657
15835
|
);
|
|
15658
15836
|
}
|
|
15659
15837
|
try {
|
|
15660
|
-
const { openPagedPartitionArchive } = await import('./paged-partition-archive-
|
|
15838
|
+
const { openPagedPartitionArchive } = await import('./paged-partition-archive-IZ6U7DVN.mjs');
|
|
15661
15839
|
const archive = await openPagedPartitionArchive(checkpoint2, directory, indexName, partitionId, manager);
|
|
15662
15840
|
return {
|
|
15663
15841
|
stream: archiveStream({ ...archive, config, sourceIndexName: indexName }),
|
|
@@ -15872,7 +16050,7 @@ async function restoreReplicationPartition(core, engine, indexName, partitionId,
|
|
|
15872
16050
|
if (directory !== null) {
|
|
15873
16051
|
const durable = core.durability?.manager;
|
|
15874
16052
|
await (durable?.checkpointFromMemory?.(indexName) ?? durable?.checkpoint(indexName));
|
|
15875
|
-
const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-
|
|
16053
|
+
const { removeReceivedFilesNothingReads } = await import('./paged-partition-archive-IZ6U7DVN.mjs');
|
|
15876
16054
|
await removeReceivedFilesNothingReads(
|
|
15877
16055
|
directory,
|
|
15878
16056
|
core.requireManager(indexName),
|
|
@@ -19677,7 +19855,7 @@ async function queryCluster(deps, indexName, params, settingName) {
|
|
|
19677
19855
|
(reader) => searchCluster(deps, indexName, settingName, params, allocation, reader, false)
|
|
19678
19856
|
);
|
|
19679
19857
|
}
|
|
19680
|
-
const { rerankClusterQuery } = await import('./rerank-
|
|
19858
|
+
const { rerankClusterQuery } = await import('./rerank-KTV5L7MZ.mjs');
|
|
19681
19859
|
return withRankedReader(
|
|
19682
19860
|
deps,
|
|
19683
19861
|
indexName,
|
|
@@ -217,5 +217,47 @@ async function embedBatchDocumentFields(documents, embeddingConfig, adapter, sig
|
|
|
217
217
|
}
|
|
218
218
|
return { embedded, failed };
|
|
219
219
|
}
|
|
220
|
+
function lacksMappedVectors(documents, embeddingConfig) {
|
|
221
|
+
const targets = Object.keys(embeddingConfig.fields);
|
|
222
|
+
for (const document of documents) {
|
|
223
|
+
for (const target of targets) {
|
|
224
|
+
const existing = resolveFieldValue(document, target);
|
|
225
|
+
if (existing === void 0 || existing === null) return true;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
function clearWriteEmbedding(earlier) {
|
|
231
|
+
for (const [document, fields] of earlier.fields) {
|
|
232
|
+
for (const field of fields) deleteFieldValue(document, field);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
async function embedDocumentsForWrite(documents, embeddingConfig, adapter, signal, together) {
|
|
236
|
+
const fields = /* @__PURE__ */ new Map();
|
|
237
|
+
const failed = /* @__PURE__ */ new Map();
|
|
238
|
+
const documentFailures = /* @__PURE__ */ new Map();
|
|
239
|
+
if (together && documents.length > 1) {
|
|
240
|
+
try {
|
|
241
|
+
const result = await embedBatchDocumentFields(documents, embeddingConfig, adapter, signal);
|
|
242
|
+
for (const [position, embedded] of result.embedded) fields.set(documents[position], embedded);
|
|
243
|
+
for (const [position, error] of result.failed) documentFailures.set(position, error);
|
|
244
|
+
} catch (err) {
|
|
245
|
+
const error = err instanceof NarsilError ? err : new NarsilError(ErrorCodes.EMBEDDING_FAILED, String(err));
|
|
246
|
+
for (let position = 0; position < documents.length; position++) failed.set(position, error);
|
|
247
|
+
}
|
|
248
|
+
} else {
|
|
249
|
+
for (let position = 0; position < documents.length; position++) {
|
|
250
|
+
try {
|
|
251
|
+
fields.set(
|
|
252
|
+
documents[position],
|
|
253
|
+
await embedDocumentFields(documents[position], embeddingConfig, adapter, signal)
|
|
254
|
+
);
|
|
255
|
+
} catch (err) {
|
|
256
|
+
failed.set(position, err);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return { embedding: { adapter, mapping: embeddingConfig.fields, fields }, failed, documentFailures };
|
|
261
|
+
}
|
|
220
262
|
|
|
221
|
-
export { assertDocumentCarriesMappedVectors, bindEmbedHost, embedBatchDocumentFields, embedDocumentFields };
|
|
263
|
+
export { assertDocumentCarriesMappedVectors, bindEmbedHost, clearWriteEmbedding, embedBatchDocumentFields, embedDocumentFields, embedDocumentsForWrite, lacksMappedVectors };
|
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-CPSHS46N.mjs';
|
|
2
2
|
import './browser/chunk-4ZICWS4V.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
4
|
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-2Q45HI5H.mjs';
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
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-SL53DHVE.mjs';
|
|
2
2
|
import './chunk-KLVMK3R5.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-F4OOBPKA.mjs';
|
|
4
4
|
import './chunk-GXCDWLQI.mjs';
|
|
5
5
|
import './chunk-BUMREPLU.mjs';
|
|
6
6
|
import './chunk-7T4LAYT4.mjs';
|
|
7
7
|
import './chunk-YM2HI5N5.mjs';
|
|
8
8
|
import './chunk-X5NHWOXT.mjs';
|
|
9
9
|
import './chunk-U2BKYEC7.mjs';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-6SZQETSC.mjs';
|
|
11
|
+
import './chunk-UPDNNOTG.mjs';
|
|
12
|
+
import './chunk-3ECIRFS5.mjs';
|
|
12
13
|
import './chunk-D6FYUTFN.mjs';
|
|
13
14
|
import './chunk-ZXX5GZEX.mjs';
|
|
14
15
|
import './chunk-4PY4JYMY.mjs';
|
|
@@ -1,6 +1,7 @@
|
|
|
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-
|
|
2
|
-
import './react-native/chunks/chunk-
|
|
3
|
-
import './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-CBU4M3EU.mjs';
|
|
2
|
+
import './react-native/chunks/chunk-BN6FUB7N.mjs';
|
|
3
|
+
import './react-native/chunks/chunk-NLEFMPY3.mjs';
|
|
4
|
+
import './react-native/chunks/chunk-LX62Y4B5.mjs';
|
|
4
5
|
import './react-native/chunks/chunk-SK3DPAI4.mjs';
|
|
5
6
|
import './react-native/chunks/chunk-WFQ6YQZA.mjs';
|
|
6
7
|
import './react-native/chunks/chunk-PVMEHBQO.mjs';
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-
|
|
2
|
-
import { answerRequest } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { createRelayClient, createThreadReadEngine, searchHandler, isLongQueryPortNote } from './chunk-FBQYC5OX.mjs';
|
|
2
|
+
import { answerRequest } from './chunk-JDG6CCXM.mjs';
|
|
3
|
+
import './chunk-MHBG33R5.mjs';
|
|
4
4
|
import './chunk-FETZYCH7.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
5
|
+
import './chunk-2GONI5HL.mjs';
|
|
6
|
+
import './chunk-7WXGUTWK.mjs';
|
|
7
|
+
import './chunk-2KCCQK4R.mjs';
|
|
8
8
|
import './chunk-CV3Q2EKO.mjs';
|
|
9
9
|
import './chunk-LNGE7SLY.mjs';
|
|
10
10
|
import './chunk-I2WJCRIH.mjs';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
11
|
+
import './chunk-4JBTALUC.mjs';
|
|
12
|
+
import './chunk-H4QYQ5DE.mjs';
|
|
13
|
+
import './chunk-WLFOLAQI.mjs';
|
|
14
14
|
import './chunk-V6EUBAIT.mjs';
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
15
|
+
import './chunk-EDEE7ETQ.mjs';
|
|
16
|
+
import './chunk-SL53DHVE.mjs';
|
|
17
17
|
import './chunk-KLVMK3R5.mjs';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-F4OOBPKA.mjs';
|
|
19
19
|
import './chunk-GXCDWLQI.mjs';
|
|
20
20
|
import './chunk-BUMREPLU.mjs';
|
|
21
21
|
import './chunk-7T4LAYT4.mjs';
|
|
22
22
|
import './chunk-YM2HI5N5.mjs';
|
|
23
23
|
import './chunk-X5NHWOXT.mjs';
|
|
24
24
|
import './chunk-U2BKYEC7.mjs';
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
25
|
+
import './chunk-6SZQETSC.mjs';
|
|
26
|
+
import './chunk-UPDNNOTG.mjs';
|
|
27
|
+
import './chunk-3ECIRFS5.mjs';
|
|
27
28
|
import './chunk-D6FYUTFN.mjs';
|
|
28
29
|
import './chunk-ZXX5GZEX.mjs';
|
|
29
30
|
import './chunk-4PY4JYMY.mjs';
|