@delali/narsil 0.3.1-next.129 → 0.3.1-next.130

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.
Files changed (105) hide show
  1. package/dist/adapters/filesystem.mjs +1 -1
  2. package/dist/adapters/indexeddb.mjs +1 -1
  3. package/dist/browser/chunk-26A5JFT2.mjs +89 -0
  4. package/dist/browser/{chunk-5D6NJD6C.mjs → chunk-2Y3CO4EQ.mjs} +342 -201
  5. package/dist/browser/{chunk-WLD6DDIX.mjs → chunk-AIIJDWMG.mjs} +1 -1
  6. package/dist/browser/{chunk-YAGXZU4W.mjs → chunk-D7WQF6DV.mjs} +2 -2
  7. package/dist/browser/{chunk-WZBTVTSU.mjs → chunk-M5UAAXGU.mjs} +2 -2
  8. package/dist/browser/{chunk-XTFJZHQP.mjs → chunk-NSCSR6MA.mjs} +15 -5
  9. package/dist/browser/{chunk-3NVZD52E.mjs → chunk-UDGB2MWT.mjs} +5 -28
  10. package/dist/browser/{chunk-II5POT55.mjs → chunk-VBBLTD7O.mjs} +4 -3
  11. package/dist/browser/chunk-VEGHFP2P.mjs +30 -0
  12. package/dist/browser/{durability-wiring-HCCC6BJB.mjs → durability-wiring-FNZSRH4N.mjs} +8 -6
  13. package/dist/browser/{module-S2VDU2JE.mjs → module-4HIMOQM5.mjs} +6 -5
  14. package/dist/browser/phrase-module-WESYVU7K.mjs +327 -0
  15. package/dist/browser/{restore-queue-BZ7WWEC4.mjs → restore-queue-GEZ54CA5.mjs} +1 -1
  16. package/dist/browser/{runtime-PL4TTFJE.mjs → runtime-3X7ZJ5T3.mjs} +2 -1
  17. package/dist/browser/{snapshot-RTUCHI2L.mjs → snapshot-V7VF6BN6.mjs} +25 -10
  18. package/dist/browser/{write-IMU7G5NU.mjs → write-YIC2MKRY.mjs} +7 -5
  19. package/dist/{capabilities-BTjv-tK8.d.ts → capabilities-Bl8G9taj.d.ts} +2 -2
  20. package/dist/{chunk-3XHFVYIQ.mjs → chunk-2C3WXBQS.mjs} +1 -1
  21. package/dist/{chunk-37RTD6KD.mjs → chunk-2JWNJSNE.mjs} +8 -8
  22. package/dist/{chunk-K76F5YYX.mjs → chunk-2MKX2SCO.mjs} +219 -58
  23. package/dist/{chunk-AN3CUMPZ.mjs → chunk-2SEL6SBS.mjs} +4 -95
  24. package/dist/{chunk-OPO5SE4J.mjs → chunk-2WBY4Y4M.mjs} +1 -1
  25. package/dist/{chunk-PTIJAZWL.mjs → chunk-4GDLFDPZ.mjs} +1 -1
  26. package/dist/chunk-4UMZ7KQL.mjs +17 -0
  27. package/dist/{chunk-TY64A3ZW.mjs → chunk-5LX6MOIB.mjs} +2 -2
  28. package/dist/{chunk-PCRWCOZC.mjs → chunk-6M6SDH3S.mjs} +43 -23
  29. package/dist/{chunk-MGD7XETB.mjs → chunk-6SSVIW7Y.mjs} +19 -3
  30. package/dist/{chunk-5LC5VMDQ.mjs → chunk-7OIQ2SIO.mjs} +4 -4
  31. package/dist/{chunk-4XEVROSP.mjs → chunk-7XY6VD7B.mjs} +1 -1
  32. package/dist/{chunk-WI5Q3L43.mjs → chunk-CZ7ISLXA.mjs} +2 -0
  33. package/dist/{chunk-RC27KF7F.mjs → chunk-D5TFRB5G.mjs} +3 -15
  34. package/dist/{chunk-F4UKMTKM.mjs → chunk-EUCX5K74.mjs} +4 -4
  35. package/dist/{chunk-CTF6WFTX.mjs → chunk-F6AAXI7T.mjs} +3 -3
  36. package/dist/{chunk-DX2FI4LU.mjs → chunk-FQBFZAWG.mjs} +3 -1
  37. package/dist/{chunk-XTER67YM.mjs → chunk-HCGJKDZV.mjs} +1 -1
  38. package/dist/{chunk-WQYB4TNR.mjs → chunk-JJ6EUMXB.mjs} +2 -2
  39. package/dist/{chunk-2HQQ7Y5D.mjs → chunk-JT3YZGCE.mjs} +2 -2
  40. package/dist/chunk-JUKYYXSP.mjs +93 -0
  41. package/dist/{chunk-WUIDPBSY.mjs → chunk-K77FJXKS.mjs} +17 -7
  42. package/dist/{chunk-CSSCLRGY.mjs → chunk-NMXRXFGZ.mjs} +2 -2
  43. package/dist/{chunk-44TB6AIZ.mjs → chunk-NNO7CO3A.mjs} +1 -1
  44. package/dist/{chunk-FRSWYMXH.mjs → chunk-PATMDIMN.mjs} +1 -1
  45. package/dist/{chunk-AFOZR4ZQ.mjs → chunk-PU6SKH7O.mjs} +2 -2
  46. package/dist/{chunk-EZIGAOUJ.mjs → chunk-QQTXT65X.mjs} +6 -5
  47. package/dist/{chunk-Y4NOHICF.mjs → chunk-RNSC4NFI.mjs} +1 -1
  48. package/dist/{chunk-RYH3PASD.mjs → chunk-RWESFSJI.mjs} +21 -11
  49. package/dist/{chunk-QQS4QZQA.mjs → chunk-SOHMMNCH.mjs} +4 -4
  50. package/dist/{chunk-K73PZTBR.mjs → chunk-SZGRYEIC.mjs} +4 -4
  51. package/dist/{chunk-43Q7HAI2.mjs → chunk-T4OFG4IQ.mjs} +4 -4
  52. package/dist/{chunk-2YOAGAGF.mjs → chunk-TGHNXN7W.mjs} +59 -30
  53. package/dist/{chunk-J4LRE5Q7.mjs → chunk-WVRDRLIC.mjs} +6 -6
  54. package/dist/{chunk-XRXBCOA4.mjs → chunk-X5CNUKD5.mjs} +2 -2
  55. package/dist/{chunk-TB7YMDD5.mjs → chunk-XABMCBHA.mjs} +6 -4
  56. package/dist/{chunk-Y4US5EGH.mjs → chunk-Y2U5VVWX.mjs} +1 -1
  57. package/dist/{chunk-5VSTAJET.mjs → chunk-Y4BVTQ53.mjs} +2 -2
  58. package/dist/{chunk-3LJVM6XM.mjs → chunk-YBWSV5DV.mjs} +2 -2
  59. package/dist/{chunk-M6MBSVIJ.mjs → chunk-ZR4VM4A6.mjs} +1 -1
  60. package/dist/{client-BOcveV7A.d.ts → client-Cx-TiqPE.d.ts} +3 -3
  61. package/dist/client.d.ts +8 -8
  62. package/dist/client.mjs +2 -0
  63. package/dist/{config-CPmIY3aH.d.ts → config-CzB9YvF_.d.ts} +2 -2
  64. package/dist/{config-C3YXk5Rn.d.ts → config-hOWGBeC6.d.ts} +7 -5
  65. package/dist/direct-executor-HQ4QVDX7.mjs +28 -0
  66. package/dist/distribution/coordinator/etcd.d.ts +2 -2
  67. package/dist/distribution/coordinator/etcd.mjs +1 -1
  68. package/dist/distribution/coordinator/in-memory.d.ts +2 -2
  69. package/dist/distribution/transport/grpc.mjs +1 -1
  70. package/dist/distribution.d.ts +8 -8
  71. package/dist/distribution.mjs +85 -45
  72. package/dist/{durability-wiring-6R26AJDI.mjs → durability-wiring-S7OX2MAI.mjs} +27 -25
  73. package/dist/embeddings/openai.mjs +2 -2
  74. package/dist/{engine-JjRAXpT3.d.ts → engine-B_W9sdZK.d.ts} +2 -2
  75. package/dist/{events-pM0lna7M.d.ts → events-DErop1LM.d.ts} +12 -2
  76. package/dist/{index-DkQ2DlgR.d.ts → index-CKI1fDEl.d.ts} +1 -1
  77. package/dist/index.browser.mjs +5 -3
  78. package/dist/index.d.ts +7 -7
  79. package/dist/index.mjs +20 -18
  80. package/dist/{long-query-thread-6VLA6YJI.mjs → long-query-thread-WVSMIBYP.mjs} +17 -15
  81. package/dist/{module-S4WGMFNW.mjs → module-2E4XYSGT.mjs} +11 -11
  82. package/dist/partial-words.mjs +7 -6
  83. package/dist/pattern.mjs +4 -3
  84. package/dist/persistence/durability/checkpoint-worker.d.ts +2 -1
  85. package/dist/persistence/durability/checkpoint-worker.mjs +23 -21
  86. package/dist/phrase-module-JERF2IDG.mjs +329 -0
  87. package/dist/react.d.ts +7 -7
  88. package/dist/react.mjs +2 -0
  89. package/dist/{rerank-V4J4MIWR.mjs → rerank-DMMT4FZA.mjs} +6 -6
  90. package/dist/rerankers/http.mjs +2 -2
  91. package/dist/{restore-queue-PUGWCPCX.mjs → restore-queue-JAMNRC6T.mjs} +1 -1
  92. package/dist/{runtime-TBFBQQQO.mjs → runtime-7MLQ7J64.mjs} +7 -7
  93. package/dist/{schema-DGAP_8HJ.d.ts → schema-CS-clLun.d.ts} +4 -4
  94. package/dist/server.d.ts +10 -10
  95. package/dist/server.mjs +15 -15
  96. package/dist/{snapshot-PUVSMV7E.mjs → snapshot-DOQLGGEX.mjs} +44 -29
  97. package/dist/synonyms.mjs +4 -3
  98. package/dist/{tasks-txGvNz6h.d.ts → tasks-BfF-VRhm.d.ts} +2 -2
  99. package/dist/{thread-TA7QQBWP.mjs → thread-DNK5XWXG.mjs} +16 -14
  100. package/dist/vector/search-worker.d.ts +1 -1
  101. package/dist/vector/search-worker.mjs +4 -4
  102. package/dist/workers/entry.mjs +7 -7
  103. package/dist/{write-TGKYT3C4.mjs → write-ZKR7SNRT.mjs} +22 -20
  104. package/package.json +7 -7
  105. package/dist/direct-executor-ULA6V5HC.mjs +0 -26
@@ -0,0 +1,28 @@
1
+ export { createDirectExecutor } from './chunk-RWESFSJI.mjs';
2
+ import './chunk-2MKX2SCO.mjs';
3
+ import './chunk-ZR4VM4A6.mjs';
4
+ import './chunk-ZATRDAYU.mjs';
5
+ import './chunk-EBIHRL7B.mjs';
6
+ import './chunk-TGP5M5R7.mjs';
7
+ import './chunk-U2BKYEC7.mjs';
8
+ import './chunk-2SEL6SBS.mjs';
9
+ import './chunk-WQBCBKY3.mjs';
10
+ import './chunk-JUKYYXSP.mjs';
11
+ import './chunk-EUCX5K74.mjs';
12
+ import './chunk-PU6SKH7O.mjs';
13
+ import './chunk-U476IXKQ.mjs';
14
+ import './chunk-FQBFZAWG.mjs';
15
+ import './chunk-VJS4JFBQ.mjs';
16
+ import './chunk-GES7U2PM.mjs';
17
+ import './chunk-7XY6VD7B.mjs';
18
+ import './chunk-6SSVIW7Y.mjs';
19
+ import './chunk-X5CV2E2B.mjs';
20
+ import './chunk-7X5JST5L.mjs';
21
+ import './chunk-D5TFRB5G.mjs';
22
+ import './chunk-4UMZ7KQL.mjs';
23
+ import './chunk-R6A773WK.mjs';
24
+ import './chunk-YTJCGKM4.mjs';
25
+ import './chunk-HCGJKDZV.mjs';
26
+ import './chunk-22YPZVMG.mjs';
27
+ import './chunk-L5ORED7V.mjs';
28
+ import './chunk-CZ7ISLXA.mjs';
@@ -1,5 +1,5 @@
1
- import { C as ClusterCoordinator } from '../../index-DkQ2DlgR.js';
2
- import '../../schema-DGAP_8HJ.js';
1
+ import { C as ClusterCoordinator } from '../../index-CKI1fDEl.js';
2
+ import '../../schema-CS-clLun.js';
3
3
  import '../../adapters-BQFQ4PRz.js';
4
4
  import '../../synonyms-CpOAHPa-.js';
5
5
 
@@ -2,7 +2,7 @@ import { INDEX_METADATA_KEY_PREFIX, indexNameOfMetadataSuffix } from '../../chun
2
2
  import { MAX_NODE_ID_LENGTH, CONTROLLER_LEASE_KEY, MAX_WATCHERS } from '../../chunk-44W3CBNG.mjs';
3
3
  import '../../chunk-R6A773WK.mjs';
4
4
  import { compareCodePoints } from '../../chunk-YTJCGKM4.mjs';
5
- import { NarsilError, ErrorCodes, describeError } from '../../chunk-WI5Q3L43.mjs';
5
+ import { NarsilError, ErrorCodes, describeError } from '../../chunk-CZ7ISLXA.mjs';
6
6
  import { encode, decode } from '@msgpack/msgpack';
7
7
 
8
8
  // src/distribution/coordinator/etcd/constants.ts
@@ -1,5 +1,5 @@
1
- import { C as ClusterCoordinator } from '../../index-DkQ2DlgR.js';
2
- import '../../schema-DGAP_8HJ.js';
1
+ import { C as ClusterCoordinator } from '../../index-CKI1fDEl.js';
2
+ import '../../schema-CS-clLun.js';
3
3
  import '../../adapters-BQFQ4PRz.js';
4
4
  import '../../synonyms-CpOAHPa-.js';
5
5
 
@@ -2,7 +2,7 @@ import { decodeTransportMessage, encodeTransportMessage } from '../../chunk-J6YV
2
2
  import { timeoutsOf, replyDeadlineMs } from '../../chunk-PWIWSUCX.mjs';
3
3
  import { MAX_MESSAGE_SIZE_BYTES, GRPC_KEEPALIVE_TIMEOUT_MS, GRPC_KEEPALIVE_TIME_MS, GRPC_ENVELOPE_OVERHEAD_BYTES } from '../../chunk-UNEEFTEU.mjs';
4
4
  import { TransportError, TransportErrorCodes } from '../../chunk-YH5OIL7B.mjs';
5
- import { NarsilError, ErrorCodes } from '../../chunk-WI5Q3L43.mjs';
5
+ import { NarsilError, ErrorCodes } from '../../chunk-CZ7ISLXA.mjs';
6
6
 
7
7
  // src/distribution/transport/grpc/codec.ts
8
8
  var FIELD_ONE_LENGTH_DELIMITED_KEY = 10;
@@ -1,14 +1,14 @@
1
- import { a as CreateIndexOptions, C as ClusterNamespace, b as ClusterNodeConfig } from './config-CPmIY3aH.js';
2
- export { c as ClusterControllerConfig, d as ClusterHealth, e as ClusterHealthStatus, f as ClusterMemoryConfig, g as ClusterMetrics, h as ClusterNodeInfo, i as ClusterQueryConfig, j as CommitPointFigure, k as CoordinatorRequestFigure, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, l as ReplicationConfig, V as VectorRebuildWaitFigure } from './config-CPmIY3aH.js';
1
+ import { a as CreateIndexOptions, C as ClusterNamespace, b as ClusterNodeConfig } from './config-CzB9YvF_.js';
2
+ export { c as ClusterControllerConfig, d as ClusterHealth, e as ClusterHealthStatus, f as ClusterMemoryConfig, g as ClusterMetrics, h as ClusterNodeInfo, i as ClusterQueryConfig, j as CommitPointFigure, k as CoordinatorRequestFigure, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, l as ReplicationConfig, V as VectorRebuildWaitFigure } from './config-CzB9YvF_.js';
3
3
  import { R as RerankAdapter } from './adapters-BQFQ4PRz.js';
4
- import { B as BatchResult, L as ListParams, g as ListResult, h as SuggestParams, j as SuggestResult, Q as QueryParams, P as PreflightResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, M as MemoryStats, m as NarsilEventMap, e as QueryResult } from './events-pM0lna7M.js';
5
- import { B as BM25Params, I as IndexConfig, A as AnyDocument, a as InsertOptions } from './schema-DGAP_8HJ.js';
6
- import { b as NodeCapacity, N as NodeRole } from './index-DkQ2DlgR.js';
7
- export { c as AllocationConstraints, d as AllocationEvent, A as AllocationTable, C as ClusterCoordinator, I as IndexMetadataEvent, e as IndexMetadataWatch, f as IndexPartitionBytes, g as NodeEvent, h as NodeMemoryReport, a as NodeRegistration, P as PartitionAssignment, i as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-DkQ2DlgR.js';
4
+ import { B as BatchResult, L as ListParams, g as ListResult, h as SuggestParams, j as SuggestResult, Q as QueryParams, P as PreflightResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, M as MemoryStats, m as NarsilEventMap, e as QueryResult } from './events-DErop1LM.js';
5
+ import { B as BM25Params, I as IndexConfig, A as AnyDocument, a as InsertOptions } from './schema-CS-clLun.js';
6
+ import { b as NodeCapacity, N as NodeRole } from './index-CKI1fDEl.js';
7
+ export { c as AllocationConstraints, d as AllocationEvent, A as AllocationTable, C as ClusterCoordinator, I as IndexMetadataEvent, e as IndexMetadataWatch, f as IndexPartitionBytes, g as NodeEvent, h as NodeMemoryReport, a as NodeRegistration, P as PartitionAssignment, i as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-CKI1fDEl.js';
8
8
  import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
9
- import { N as Narsil } from './engine-JjRAXpT3.js';
9
+ import { N as Narsil } from './engine-B_W9sdZK.js';
10
10
  export { L as ListenHandler, N as NodeTransport, R as RespondFn, T as TransportConfig, a as TransportMessage } from './types-DvncmvuQ.js';
11
- import './config-C3YXk5Rn.js';
11
+ import './config-hOWGBeC6.js';
12
12
 
13
13
  /**
14
14
  * The cluster splits an index into this many partitions when
@@ -1,63 +1,65 @@
1
- import { DEFAULT_NODE_LIFECYCLE_CONFIG, bindWriteBlockLookup, bindEngineWriteBlock, bindIndexReads, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, metadataWithBm25, indexConfigKey, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, isRecord2, decodeIndexSettings, HIDDEN_GENERATION_PREFIX, indexConfigFromSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, RESHARD_FORWARD_BATCH_DOCUMENTS, storedSynonymSetOf, RESHARD_RETRY_DELAY_MS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, TEARDOWN_RETRY_ROUNDS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS } from './chunk-43Q7HAI2.mjs';
2
- 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, DEFAULT_RESUME_WRITES_BELOW, DEFAULT_BLOCK_WRITES_ABOVE, readMemoryFigures, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, refuseEncodeWithoutRoom, readRecentMemoryFigures, 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, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, MAX_SOURCE_ID_LENGTH, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, ADMISSION_TIMEOUT_MS, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, COPY_FAILURE_RETRY_DELAY_MS, FETCH_GROUP_DOCUMENT_IDS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, FULL_MEMORY_COLLECTION_INTERVAL_MS, MEMORY_SAMPLE_INTERVAL_MS, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-PTIJAZWL.mjs';
3
- export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-PTIJAZWL.mjs';
1
+ import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive } from './chunk-WVRDRLIC.mjs';
2
+ import { DEFAULT_NODE_LIFECYCLE_CONFIG, bindWriteBlockLookup, bindEngineWriteBlock, bindIndexReads, DEFAULT_CONTROLLER_CONFIG, readIndexMetadataSnapshot, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, metadataWithBm25, indexConfigKey, readIndexState, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, isRecord2, decodeIndexSettings, HIDDEN_GENERATION_PREFIX, indexConfigFromSettings, metadataWithSynonymSet, RESHARD_RECORD_CAS_ATTEMPTS, indexUuidOfStoredMetadata, RESHARD_FORWARD_BATCH_DOCUMENTS, storedSynonymSetOf, RESHARD_RETRY_DELAY_MS, RESHARD_RECORD_CHECK_INTERVAL_MS, RESHARD_POLL_INTERVAL_MS, ALLOCATION_RETRY_DELAY_MS, TEARDOWN_CAS_ATTEMPTS, TEARDOWN_RETRY_ROUNDS, putIndexReplicationFactor, ALLOCATION_CAS_ATTEMPTS, TEARDOWN_RETRY_DELAY_MS, RESHARD_CONTROLLER_POLL_INTERVAL_MS, MAX_RESHARD_CUTOVER_ATTEMPTS, RECOVERY_CAS_ATTEMPTS, ESTIMATED_PARTITION_BYTES, REBALANCE_THRESHOLD, putGenerationMetadata, RESHARD_CUTOVER_LAG_ENTRIES, RESHARD_CUTOVER_TIMEOUT_MS, PARTITION_STORES_TIMEOUT_MS, LEADERSHIP_IMBALANCE_THRESHOLD, BOOTSTRAP_CAS_ATTEMPTS } from './chunk-T4OFG4IQ.mjs';
3
+ 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, DEFAULT_RESUME_WRITES_BELOW, DEFAULT_BLOCK_WRITES_ABOVE, readMemoryFigures, createWritePressure, WRITE_MEMORY_SAMPLE_MAX_AGE_MS, DEFAULT_IN_FLIGHT_WRITE_FRACTION, MAX_SETTINGS_REPLACEMENT_ATTEMPTS, MAX_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, refuseEncodeWithoutRoom, readRecentMemoryFigures, 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, answerRefusalOf, withAdmittedWrite, estimateForwardedBytes, CASE_FOLD_EXPANSION_FACTOR, PATTERN_RUN_HEAP_BYTES, ENUM_VALUE_HEAP_BYTES, MAX_SOURCE_ID_LENGTH, DOCUMENT_VALUE_HEAP_BYTES, DOCUMENT_HEAP_BYTES_PER_ESTIMATED_BYTE, DOCUMENT_PROPERTY_HEAP_BYTES, VECTOR_DOCUMENT_HEAP_BYTES, VECTOR_COMPONENT_HEAP_BYTES, NORMALIZATION_EXPANSION_FACTOR, TERM_UNIT_HEAP_BYTES, PARTITION_BYTES_INDEX_OVERHEAD_BYTES, DISTINCT_TERM_HEAP_BYTES, PARTIAL_SPELLING_HEAP_BYTES, PARTITION_BYTES_ENTRY_BYTES, PARTITION_BYTES_REPORT_BUDGET_BYTES, SNAPSHOT_CHUNK_YIELD_INTERVAL_MS, CATCH_UP_FEED_WINDOW_MS, MAX_CATCH_UP_IN_FLIGHT_BYTES, SYNCED_POSITION_REPORT_TIMEOUT_MS, ADMISSION_TIMEOUT_MS, REGISTRATION_LEASE_DRIFT_SHARE, REGISTRATION_LEASE_CONFIRM_TIMEOUT_MS, WRITE_APPLY_YIELD_INTERVAL_MS, ROLLBACK_RETRY_INITIAL_DELAY_MS, ROLLBACK_RETRY_DELAY_CAP_MS, COPY_FAILURE_RETRY_DELAY_MS, FETCH_GROUP_DOCUMENT_IDS, SEARCH_CONTEXT_ENTRY_HEAP_BYTES, FULL_MEMORY_COLLECTION_INTERVAL_MS, MEMORY_SAMPLE_INTERVAL_MS, ANSWER_DECODE_HEAP_BYTES_PER_PAYLOAD_BYTE, CLEAR_PAGE_SIZE, estimateDocumentsBytes, estimateDocumentBytes, PRIMARY_CHANGE_RETRY_WINDOW_MS, PRIMARY_CHANGE_POLL_INTERVAL_MS, PARTITION_WRITE_CONCURRENCY, FORWARD_RETRY_INITIAL_DELAY_MS, FORWARD_RETRY_DELAY_CAP_MS } from './chunk-4GDLFDPZ.mjs';
4
+ export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-4GDLFDPZ.mjs';
4
5
  import { addBackgroundAdmission, workWaitingForMemory } from './chunk-PELHVTO7.mjs';
6
+ import './chunk-SOHMMNCH.mjs';
5
7
  import { onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes, collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal } from './chunk-IWVEG5CX.mjs';
6
- import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-TY64A3ZW.mjs';
7
- import { closePartitionWriter, replaySyncedWal } from './chunk-CTF6WFTX.mjs';
8
- import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive } from './chunk-J4LRE5Q7.mjs';
9
- import './chunk-QQS4QZQA.mjs';
10
- import { indexMetadataOf, loadPartitionSegments, readSegmentManifest, readVectorFile } from './chunk-WUIDPBSY.mjs';
11
- import { decodeVectorFilePayload, bytesToVectors, isDead } from './chunk-Y4US5EGH.mjs';
8
+ import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-5LX6MOIB.mjs';
9
+ import { closePartitionWriter, replaySyncedWal } from './chunk-F6AAXI7T.mjs';
10
+ import { indexMetadataOf, loadPartitionSegments, readSegmentManifest, readVectorFile } from './chunk-K77FJXKS.mjs';
11
+ import { decodeVectorFilePayload, bytesToVectors, isDead } from './chunk-Y2U5VVWX.mjs';
12
12
  import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
13
13
  import { MAX_MESSAGE_SIZE_BYTES } from './chunk-UNEEFTEU.mjs';
14
- import './chunk-XRXBCOA4.mjs';
14
+ import './chunk-X5CNUKD5.mjs';
15
15
  import './chunk-DJHHF2L5.mjs';
16
16
  import './chunk-37CD3OKS.mjs';
17
17
  import { getPath, getFs } from './chunk-HLPRHOSO.mjs';
18
- import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, readListedFile, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, directoryCheckpointStore, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-37RTD6KD.mjs';
19
- import { applyIndexEntry, applyDeleteEntry, validateReplicationEntry } from './chunk-5LC5VMDQ.mjs';
18
+ import { createForwardBatchResultMessage, validateEntryBatchPayload, createAckMessage, validateEntryPayload, validateForwardBatchPayload, readListedFile, optionalIndexUuid, computeEntryChecksum, createPrimaryResignMessage, validateInsyncConfirmPayload, buildEntry, createInsyncRemoveMessage, createEntryBatchMessage, createInsyncConfirmMessage, createEntryMessage, validateAckPayload, createInsyncAddMessage, directoryCheckpointStore, checkpointLastSeqNo, checkpointPrimaryTerm, createForwardBatchMessage, validateForwardBatchResultPayload, createForwardMessage } from './chunk-2JWNJSNE.mjs';
19
+ import { applyIndexEntry, applyDeleteEntry, validateReplicationEntry } from './chunk-7OIQ2SIO.mjs';
20
20
  import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-P36MUFEJ.mjs';
21
21
  import { TransportErrorCodes, ReplicationMessageTypes, ClusterMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-YH5OIL7B.mjs';
22
- import { requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, applyStoredIndexBm25, createEngineIndex, encodeIndexConfiguration, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, createByteReader, openChecksummedEnvelope, emptySerializablePartition, crc32Init, crc32Final, crc32Update, yieldToEventLoop } from './chunk-2YOAGAGF.mjs';
23
- import { runtimeHost, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, validateBM25Shape, now, listBindingOf, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-PCRWCOZC.mjs';
24
- import { bindRerankWindowSource, rerankWindowCapOf, providedDocId, engineCoreOf } from './chunk-2HQQ7Y5D.mjs';
25
- import './chunk-44TB6AIZ.mjs';
22
+ import { requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, applyStoredIndexBm25, createEngineIndex, encodeIndexConfiguration, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, createByteReader, openChecksummedEnvelope, storedArrayPositionGap, emptySerializablePartition, arrayPositionsAreStale, crc32Init, crc32Final, crc32Update, yieldToEventLoop } from './chunk-TGHNXN7W.mjs';
23
+ import { runtimeHost, validateBM25Params, storedBM25Params, requireSurfaceFormsForPartialFields, validateBM25Shape, now, listBindingOf, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-6M6SDH3S.mjs';
24
+ import { bindRerankWindowSource, rerankWindowCapOf, providedDocId, engineCoreOf } from './chunk-JT3YZGCE.mjs';
25
+ import './chunk-NNO7CO3A.mjs';
26
26
  import './chunk-AV4IJKD2.mjs';
27
- import { synonymModule } from './chunk-RYH3PASD.mjs';
28
- import { oversampledShardSize, bm25SetsValue, normalizeSort, sortModesOf, readSortValues, resolveProjection, fnv1a, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, requireWithinResultWindow, sortSignatureEntry, fnv1aUint32s, mergePartitionStats } from './chunk-K76F5YYX.mjs';
29
- import { generateId, getLanguage } from './chunk-M6MBSVIJ.mjs';
27
+ import { synonymModule } from './chunk-RWESFSJI.mjs';
28
+ import { oversampledShardSize, bm25SetsValue, normalizeSort, sortModesOf, readSortValues, resolveProjection, fnv1a, applyProjection, FILTER_EXPRESSION_KEYS, filterTestCount, setNestedValue, FIELD_FILTER_OPERATORS, clampRowCount, sortSignatureOf, requireMatchingCursor, decodePageCursor, encodePageCursor, holdsQuotedText, requireWithinResultWindow, sortSignatureEntry, fnv1aUint32s, mergePartitionStats } from './chunk-2MKX2SCO.mjs';
29
+ import { generateId, getLanguage } from './chunk-ZR4VM4A6.mjs';
30
30
  import './chunk-ZATRDAYU.mjs';
31
31
  import './chunk-EBIHRL7B.mjs';
32
32
  import './chunk-HJSN7UYG.mjs';
33
- import { MAX_DOC_ID_LENGTH, BATCH_CHUNK_SIZE, DEFAULT_SUGGEST_LIMIT, MAX_SUGGEST_LIMIT, MAX_SUGGEST_SCATTER_LIMIT, SUGGEST_OVERSAMPLE_FACTOR, SUGGEST_OVERSAMPLE_PADDING } from './chunk-Y4NOHICF.mjs';
33
+ import { MAX_DOC_ID_LENGTH, BATCH_CHUNK_SIZE, DEFAULT_SUGGEST_LIMIT, MAX_SUGGEST_LIMIT, MAX_SUGGEST_SCATTER_LIMIT, SUGGEST_OVERSAMPLE_FACTOR, SUGGEST_OVERSAMPLE_PADDING } from './chunk-RNSC4NFI.mjs';
34
34
  import './chunk-TGP5M5R7.mjs';
35
35
  import './chunk-U2BKYEC7.mjs';
36
36
  import './chunk-KOKM4PQN.mjs';
37
37
  import { MIN_OVERSAMPLE } from './chunk-QSK35UC2.mjs';
38
- import './chunk-3XHFVYIQ.mjs';
39
- import { isPatternTolerance } from './chunk-AN3CUMPZ.mjs';
38
+ import './chunk-2C3WXBQS.mjs';
39
+ import { isPatternTolerance } from './chunk-2SEL6SBS.mjs';
40
40
  import { MAX_FILTER_DEPTH, MAX_FILTER_TESTS, MAX_FILTER_ARRAY_SIZE } from './chunk-WQBCBKY3.mjs';
41
- import { getNestedValue } from './chunk-F4UKMTKM.mjs';
42
- import { encodeDocument, validateSchema, requireCreatableSchema, encodeDocumentReply, schemaFieldsOf, MIN_POLYGON_POINTS, isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES } from './chunk-AFOZR4ZQ.mjs';
41
+ import './chunk-JUKYYXSP.mjs';
42
+ import { getNestedValue } from './chunk-EUCX5K74.mjs';
43
+ import { encodeDocument, validateSchema, requireCreatableSchema, encodeDocumentReply, schemaFieldsOf, MIN_POLYGON_POINTS, isLatitude, MAX_LATITUDE_DEGREES, isLongitude, MAX_LONGITUDE_DEGREES } from './chunk-PU6SKH7O.mjs';
43
44
  import { MAX_DOCUMENT_ENCODING_DEPTH } from './chunk-U476IXKQ.mjs';
44
- import { MAX_SORT_FIELDS, MAX_CURSOR_LENGTH, MAX_TOLERANCE, MAX_PREFIX_LENGTH, RESULT_WINDOW, MIN_HYBRID_DEPTH, MAX_HYBRID_DEPTH, DEFAULT_PAGE_SIZE, HYBRID_RESCORE_WINDOW } from './chunk-DX2FI4LU.mjs';
45
+ import { MAX_SORT_FIELDS, MAX_CURSOR_LENGTH, MAX_TOLERANCE, MAX_PREFIX_LENGTH, RESULT_WINDOW, MIN_HYBRID_DEPTH, MAX_HYBRID_DEPTH, DEFAULT_PAGE_SIZE, HYBRID_RESCORE_WINDOW } from './chunk-FQBFZAWG.mjs';
45
46
  import './chunk-VJS4JFBQ.mjs';
46
47
  import './chunk-GES7U2PM.mjs';
47
- import './chunk-4XEVROSP.mjs';
48
- import { resolveIndexAnalysis } from './chunk-MGD7XETB.mjs';
48
+ import './chunk-7XY6VD7B.mjs';
49
+ import { resolveIndexAnalysis } from './chunk-6SSVIW7Y.mjs';
49
50
  import './chunk-X5CV2E2B.mjs';
50
51
  import './chunk-7X5JST5L.mjs';
51
- import './chunk-RC27KF7F.mjs';
52
+ import './chunk-D5TFRB5G.mjs';
53
+ import './chunk-4UMZ7KQL.mjs';
52
54
  import { isSortMode, SORT_MODES, toComparableSortValue, compareComparableKeys, compareSortValues } from './chunk-R6A773WK.mjs';
53
55
  import { compareCodePoints, exceedsCodePoints } from './chunk-YTJCGKM4.mjs';
54
56
  import { collectAndReturnPages } from './chunk-RIIUZJQ3.mjs';
55
57
  import './chunk-UJWGQIXU.mjs';
56
- import './chunk-XTER67YM.mjs';
58
+ import './chunk-HCGJKDZV.mjs';
57
59
  import { HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE } from './chunk-22YPZVMG.mjs';
58
60
  import './chunk-RFBLQLLZ.mjs';
59
61
  import { MAX_STORED_VECTOR_DIMENSION, MAX_NESTING_DEPTH } from './chunk-L5ORED7V.mjs';
60
- import { ErrorCodes, NarsilError, describeError, ServerErrorCodes } from './chunk-WI5Q3L43.mjs';
62
+ import { ErrorCodes, NarsilError, describeError, ServerErrorCodes } from './chunk-CZ7ISLXA.mjs';
61
63
  import { encode, decode } from '@msgpack/msgpack';
62
64
  import { randomUUID } from 'crypto';
63
65
  import { openSync, writeSync, closeSync, rmSync, readSync } from 'fs';
@@ -728,6 +730,7 @@ async function stopRegistrationHeartbeat(state) {
728
730
 
729
731
  // src/distribution/cluster/version.ts
730
732
  var SPEC_VERSION = "1.1";
733
+ var PHRASE_SEARCH_SPEC_VERSION = "1.1";
731
734
  var BM25_TUNING_SPEC_VERSION = "1.1";
732
735
  var VERSION_PATTERN = /^(\d+)\.(\d+)$/;
733
736
  function versionPartsOf(version) {
@@ -7951,6 +7954,7 @@ async function receiveArchive(indexName, partitionId, source, schema) {
7951
7954
  const store = memoryCheckpointStore();
7952
7955
  let language = "";
7953
7956
  let analysisRevision = null;
7957
+ let arrayPositionGap = null;
7954
7958
  let received = null;
7955
7959
  await readSnapshotArchive(createByteReader(source), {
7956
7960
  config: async (bytes) => {
@@ -7963,6 +7967,7 @@ async function receiveArchive(indexName, partitionId, source, schema) {
7963
7967
  if (typeof raw.language !== "string") restoreFailed("partition archive names no language", { indexName });
7964
7968
  language = raw.language;
7965
7969
  analysisRevision = typeof raw.analysisRevision === "string" ? raw.analysisRevision : null;
7970
+ arrayPositionGap = storedArrayPositionGap(raw.arrayPositionGap);
7966
7971
  },
7967
7972
  manifest: async (manifest, sourceName) => {
7968
7973
  const listed = manifest.partitions.map((partition) => partition.partitionId);
@@ -7989,7 +7994,7 @@ async function receiveArchive(indexName, partitionId, source, schema) {
7989
7994
  file: async (name, _ref, bytes) => store.write(`${indexName}/${name}`, [bytes])
7990
7995
  });
7991
7996
  if (received === null) restoreFailed("partition archive holds no manifest", { indexName, partitionId });
7992
- return { language, analysisRevision, manifest: received, store };
7997
+ return { language, analysisRevision, arrayPositionGap, manifest: received, store };
7993
7998
  }
7994
7999
  async function replacePartition(manager, partitionId, archive, writeRecords) {
7995
8000
  const vectorIndexes = manager.getVectorIndexes();
@@ -8033,11 +8038,15 @@ async function replacePartition(manager, partitionId, archive, writeRecords) {
8033
8038
  vectorIndex.scheduleBuild();
8034
8039
  }
8035
8040
  }
8036
- function recordReceivedAnalysis(core, indexName, receivedRevision) {
8041
+ function recordReceivedAnalysis(core, indexName, receivedRevision, receivedGap) {
8037
8042
  const entry = core.requireIndex(indexName);
8038
8043
  const current = entry.language.revision;
8039
- if (receivedRevision === current) return;
8040
- entry.analysisRevision = entry.analysisRevision === current || entry.analysisRevision === receivedRevision ? receivedRevision : null;
8044
+ const staleGap = arrayPositionsAreStale(entry.config, receivedGap);
8045
+ if (receivedRevision === current && !staleGap) return;
8046
+ if (staleGap) entry.arrayPositionGap = null;
8047
+ if (receivedRevision !== current) {
8048
+ entry.analysisRevision = entry.analysisRevision === current || entry.analysisRevision === receivedRevision ? receivedRevision : null;
8049
+ }
8041
8050
  core.analysisRebuild.markStale({
8042
8051
  indexName,
8043
8052
  language: entry.language.name,
@@ -8074,7 +8083,7 @@ async function restoreReplicationPartition(core, engine, indexName, partitionId,
8074
8083
  const wasScaledOut = core.orchestrator.desyncIndex(indexName);
8075
8084
  try {
8076
8085
  await replacePartition(core.requireManager(indexName), partitionId, archive, writeRecords);
8077
- recordReceivedAnalysis(core, indexName, archive.analysisRevision);
8086
+ recordReceivedAnalysis(core, indexName, archive.analysisRevision, archive.arrayPositionGap);
8078
8087
  } finally {
8079
8088
  await core.orchestrator.resyncIndex(indexName, wasScaledOut);
8080
8089
  }
@@ -10183,6 +10192,8 @@ var QUERY_REJECTION_CODES = /* @__PURE__ */ new Set([
10183
10192
  ErrorCodes.SEARCH_INVALID_CURSOR,
10184
10193
  ErrorCodes.SEARCH_RESULT_WINDOW_EXCEEDED,
10185
10194
  ErrorCodes.SEARCH_WORK_CAP_EXCEEDED,
10195
+ ErrorCodes.SEARCH_INVALID_PHRASE,
10196
+ ErrorCodes.SEARCH_PHRASE_NOT_READY,
10186
10197
  ErrorCodes.BM25_NOT_READY,
10187
10198
  ErrorCodes.VECTOR_DIMENSION_MISMATCH,
10188
10199
  ErrorCodes.CONFIG_INVALID
@@ -13632,14 +13643,8 @@ async function rebuildClusterAnalysis(deps, indexName) {
13632
13643
  indexName
13633
13644
  });
13634
13645
  }
13635
- const holders = /* @__PURE__ */ new Set();
13636
- for (const assignment of table.assignments.values()) {
13637
- if (assignment.primary !== null) holders.add(assignment.primary);
13638
- for (const replica of assignment.replicas) holders.add(replica);
13639
- for (const replica of assignment.removingReplicas ?? []) holders.add(replica);
13640
- }
13641
13646
  const payload = { indexName, indexUuid: metadata.indexUuid };
13642
- const holderIds = [...holders].sort();
13647
+ const holderIds = [...copyHoldersOf2(table)].sort();
13643
13648
  const outcomes = await Promise.allSettled(holderIds.map((holder) => rebuildOn(deps, holder, payload)));
13644
13649
  const failedNodeIds = holderIds.filter((_, position) => outcomes[position]?.status === "rejected");
13645
13650
  if (failedNodeIds.length > 0) {
@@ -15800,6 +15805,38 @@ async function sendToFirstReachableTarget2(transport, targets, message) {
15800
15805
  throw lastError instanceof Error ? lastError : new Error(String(lastError));
15801
15806
  }
15802
15807
 
15808
+ // src/distribution/query/phrase-routing.ts
15809
+ function queryReadsPhrases(term) {
15810
+ return typeof term === "string" && holdsQuotedText(term);
15811
+ }
15812
+ function withRegisteredCopies2(assignment, registered) {
15813
+ return {
15814
+ ...assignment,
15815
+ primary: assignment.primary !== null && registered.has(assignment.primary) ? assignment.primary : null,
15816
+ replicas: assignment.replicas.filter((replica) => registered.has(replica))
15817
+ };
15818
+ }
15819
+ async function allocationForPhraseQuery(indexName, table, listNodes) {
15820
+ const nodes = await listNodes();
15821
+ const versions = new Map(nodes.map((node) => [node.nodeId, node.version]));
15822
+ const olderNodes = [...copyHoldersOf2(table)].filter(
15823
+ (holder) => versions.has(holder) && !reachesVersion(versions.get(holder), PHRASE_SEARCH_SPEC_VERSION)
15824
+ );
15825
+ if (olderNodes.length > 0) {
15826
+ throw new NarsilError(
15827
+ ErrorCodes.SEARCH_PHRASE_NOT_READY,
15828
+ `Index '${indexName}' has copies on ${olderNodes.length} node(s) below specification version ${PHRASE_SEARCH_SPEC_VERSION}, which cannot match a phrase. Try the query again once every node registers that version`,
15829
+ { indexName, nodeIds: olderNodes.sort(), minimumVersion: PHRASE_SEARCH_SPEC_VERSION }
15830
+ );
15831
+ }
15832
+ const registered = new Set(versions.keys());
15833
+ const assignments = /* @__PURE__ */ new Map();
15834
+ for (const [partitionId, assignment] of table.assignments) {
15835
+ assignments.set(partitionId, withRegisteredCopies2(assignment, registered));
15836
+ }
15837
+ return { ...table, assignments };
15838
+ }
15839
+
15803
15840
  // src/distribution/query/search-contexts.ts
15804
15841
  function searchContextKeepAlive(routing, partitionTimeout, transport) {
15805
15842
  let copies = 1;
@@ -15906,6 +15943,7 @@ async function countLeftOutTokens(indexName, answered, deps, config) {
15906
15943
  return extra;
15907
15944
  }
15908
15945
  async function collectDistributedStats(indexName, params, routing, deps, config) {
15946
+ if (routing.nodeToPartitions.size === 0 && queryReadsPhrases(params.term)) return mergePartitionStats([]);
15909
15947
  const terms = params.term !== null ? params.term.split(/\s+/).filter((t) => t.length > 0) : [];
15910
15948
  const expansion = statsExpansionOf(params);
15911
15949
  const outcomes = await sendWithFailover(
@@ -16539,7 +16577,8 @@ async function distributedQuery(indexName, params, deps, config, selector) {
16539
16577
  coverage: { totalPartitions: 0, queriedPartitions: 0, timedOutPartitions: 0, failedPartitions: 0 }
16540
16578
  };
16541
16579
  }
16542
- const routedTable = deps.listNodes !== void 0 && deps.carriesBm25 === true ? await allocationForBm25Query(indexName, allocationTable, deps.listNodes) : allocationTable;
16580
+ const bm25Table = deps.listNodes !== void 0 && deps.carriesBm25 === true ? await allocationForBm25Query(indexName, allocationTable, deps.listNodes) : allocationTable;
16581
+ const routedTable = deps.listNodes !== void 0 && queryReadsPhrases(params.term) ? await allocationForPhraseQuery(indexName, bm25Table, deps.listNodes) : bm25Table;
16543
16582
  const routing = selectReplicasForQuery(routedTable, queryKeyedSelector(binding));
16544
16583
  const totalPartitions = allocationTable.assignments.size;
16545
16584
  if (routing.unavailablePartitions.length > 0 && !resolvedConfig.allowPartialResults) {
@@ -17288,7 +17327,8 @@ async function preflightCluster(deps, indexName, params, settingName) {
17288
17327
  const startTime = performance.now();
17289
17328
  const { wireParams, indexBm25, carriesBm25 } = await bm25RoutingFor(deps, settingName, params);
17290
17329
  const coordinator = deps.config.coordinator;
17291
- const routedAllocation = carriesBm25 ? await allocationForBm25Query(indexName, allocation, () => coordinator.listNodes()) : allocation;
17330
+ const bm25Allocation = carriesBm25 ? await allocationForBm25Query(indexName, allocation, () => coordinator.listNodes()) : allocation;
17331
+ const routedAllocation = queryReadsPhrases(params.term) ? await allocationForPhraseQuery(indexName, bm25Allocation, () => coordinator.listNodes()) : bm25Allocation;
17292
17332
  const gathered = await gatherFromEveryPartition(routedAllocation, indexName, async (group) => {
17293
17333
  if (group.nodeId === deps.nodeId) {
17294
17334
  const local = await deps.engine.preflightPartitions(indexName, params, group.partitionIds, indexBm25).catch(rethrowAsRefusal);
@@ -17376,7 +17416,7 @@ async function queryCluster(deps, indexName, params, settingName) {
17376
17416
  (reader) => searchCluster(deps, indexName, settingName, params, allocation, reader, false)
17377
17417
  );
17378
17418
  }
17379
- const { rerankClusterQuery } = await import('./rerank-V4J4MIWR.mjs');
17419
+ const { rerankClusterQuery } = await import('./rerank-DMMT4FZA.mjs');
17380
17420
  return withRankedReader(
17381
17421
  deps,
17382
17422
  indexName,
@@ -1,53 +1,55 @@
1
- import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-WQYB4TNR.mjs';
2
- import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-CTF6WFTX.mjs';
3
- import { decodeSegmentManifest, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, writeMetadataEnvelope, metadataFromConfig, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, isRecord, invalidManifest, unpackEnvelopeBytes, isId, isUint32, isSequenceNumber, writeLiveVectors, growPartitionsTo, VECTOR_FILE_ENVELOPE_VERSION, metadataConfigOf, readCurrentManifest } from './chunk-WUIDPBSY.mjs';
4
- import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-Y4US5EGH.mjs';
1
+ import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-JJ6EUMXB.mjs';
2
+ import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-F6AAXI7T.mjs';
3
+ import { decodeSegmentManifest, SINGLE_NODE_PRIMARY_TERM, readMetadataEnvelope, writeMetadataEnvelope, metadataFromConfig, createSeqOwner, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, isRecord, invalidManifest, unpackEnvelopeBytes, isId, isUint32, isSequenceNumber, writeLiveVectors, growPartitionsTo, VECTOR_FILE_ENVELOPE_VERSION, metadataConfigOf, readCurrentManifest } from './chunk-K77FJXKS.mjs';
4
+ import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-Y2U5VVWX.mjs';
5
5
  import './chunk-37CD3OKS.mjs';
6
- import { createDurableDirectory } from './chunk-CSSCLRGY.mjs';
6
+ import { createDurableDirectory } from './chunk-NMXRXFGZ.mjs';
7
7
  import { spawnNodeWorker } from './chunk-W55X2BYN.mjs';
8
8
  import { getFs } from './chunk-HLPRHOSO.mjs';
9
- import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, directoryCheckpointStore, manifestKey, readListedFile, adapterCheckpointStore, snapshotBundleKey, manifestReferencedKeys, manifestFileRefs, readSegmentFile, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, MAX_SEGMENTS_PER_PARTITION, writeSegmentHeader, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, SEGMENT_HEADER_SIZE, buildEntry, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, captureWholePartition, checkpointLastSeqNo, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-37RTD6KD.mjs';
10
- import './chunk-5LC5VMDQ.mjs';
9
+ import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, directoryCheckpointStore, manifestKey, readListedFile, adapterCheckpointStore, snapshotBundleKey, manifestReferencedKeys, manifestFileRefs, readSegmentFile, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, commitCheckpointManifest, removeCheckpointGarbage, MAX_SEGMENTS_PER_PARTITION, writeSegmentHeader, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, DIRECTORY_IDENTITY_CHECK_INTERVAL_MS, SEGMENT_HEADER_SIZE, buildEntry, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, captureWholePartition, checkpointLastSeqNo, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-2JWNJSNE.mjs';
10
+ import './chunk-7OIQ2SIO.mjs';
11
11
  import './chunk-P36MUFEJ.mjs';
12
12
  import './chunk-YH5OIL7B.mjs';
13
- import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-2YOAGAGF.mjs';
14
- import './chunk-PCRWCOZC.mjs';
15
- import './chunk-2HQQ7Y5D.mjs';
16
- import { resolveWorkerEntry } from './chunk-44TB6AIZ.mjs';
13
+ import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-TGHNXN7W.mjs';
14
+ import './chunk-6M6SDH3S.mjs';
15
+ import './chunk-JT3YZGCE.mjs';
16
+ import { resolveWorkerEntry } from './chunk-NNO7CO3A.mjs';
17
17
  import { detectRuntime } from './chunk-AV4IJKD2.mjs';
18
- import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-RYH3PASD.mjs';
19
- import { fnv1a } from './chunk-K76F5YYX.mjs';
20
- import './chunk-M6MBSVIJ.mjs';
18
+ import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-RWESFSJI.mjs';
19
+ import { fnv1a } from './chunk-2MKX2SCO.mjs';
20
+ import './chunk-ZR4VM4A6.mjs';
21
21
  import './chunk-ZATRDAYU.mjs';
22
22
  import './chunk-EBIHRL7B.mjs';
23
23
  import './chunk-HJSN7UYG.mjs';
24
- import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-Y4NOHICF.mjs';
24
+ import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-RNSC4NFI.mjs';
25
25
  import './chunk-TGP5M5R7.mjs';
26
26
  import './chunk-U2BKYEC7.mjs';
27
27
  import './chunk-KOKM4PQN.mjs';
28
28
  import './chunk-QSK35UC2.mjs';
29
- import './chunk-3XHFVYIQ.mjs';
30
- import './chunk-AN3CUMPZ.mjs';
29
+ import './chunk-2C3WXBQS.mjs';
30
+ import './chunk-2SEL6SBS.mjs';
31
31
  import './chunk-WQBCBKY3.mjs';
32
- import './chunk-F4UKMTKM.mjs';
33
- import { encodeDocument, requireValidFieldTypes } from './chunk-AFOZR4ZQ.mjs';
32
+ import './chunk-JUKYYXSP.mjs';
33
+ import './chunk-EUCX5K74.mjs';
34
+ import { encodeDocument, requireValidFieldTypes } from './chunk-PU6SKH7O.mjs';
34
35
  import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
35
- import './chunk-DX2FI4LU.mjs';
36
+ import './chunk-FQBFZAWG.mjs';
36
37
  import { MIN_M } from './chunk-VJS4JFBQ.mjs';
37
38
  import './chunk-GES7U2PM.mjs';
38
- import './chunk-4XEVROSP.mjs';
39
- import './chunk-MGD7XETB.mjs';
39
+ import './chunk-7XY6VD7B.mjs';
40
+ import './chunk-6SSVIW7Y.mjs';
40
41
  import './chunk-X5CV2E2B.mjs';
41
42
  import './chunk-7X5JST5L.mjs';
42
- import './chunk-RC27KF7F.mjs';
43
+ import './chunk-D5TFRB5G.mjs';
44
+ import './chunk-4UMZ7KQL.mjs';
43
45
  import './chunk-R6A773WK.mjs';
44
46
  import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
45
47
  import './chunk-UJWGQIXU.mjs';
46
- import './chunk-XTER67YM.mjs';
48
+ import './chunk-HCGJKDZV.mjs';
47
49
  import './chunk-22YPZVMG.mjs';
48
50
  import './chunk-RFBLQLLZ.mjs';
49
51
  import './chunk-L5ORED7V.mjs';
50
- import { NarsilError, ErrorCodes } from './chunk-WI5Q3L43.mjs';
52
+ import { NarsilError, ErrorCodes } from './chunk-CZ7ISLXA.mjs';
51
53
  import { decode } from '@msgpack/msgpack';
52
54
 
53
55
  // src/persistence/durability/sha256.ts
@@ -1,5 +1,5 @@
1
- import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-OPO5SE4J.mjs';
2
- import { NarsilError, ErrorCodes } from '../chunk-WI5Q3L43.mjs';
1
+ import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-2WBY4Y4M.mjs';
2
+ import { NarsilError, ErrorCodes } from '../chunk-CZ7ISLXA.mjs';
3
3
 
4
4
  // src/embeddings/constants.ts
5
5
  var DEFAULT_REQUEST_TIMEOUT_MS = 3e4;
@@ -1,6 +1,6 @@
1
1
  import { E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
2
- import { B as BM25Params, A as AnyDocument, a as InsertOptions, W as WriteOptions, I as IndexConfig, P as PartitionConfig } from './schema-DGAP_8HJ.js';
3
- import { B as BatchResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, L as ListParams, g as ListResult, Q as QueryParams, e as QueryResult, P as PreflightResult, h as SuggestParams, j as SuggestResult, D as DocumentImportResult, M as MemoryStats, V as VectorMaintenanceResult, m as NarsilEventMap } from './events-pM0lna7M.js';
2
+ import { B as BM25Params, A as AnyDocument, a as InsertOptions, W as WriteOptions, I as IndexConfig, P as PartitionConfig } from './schema-CS-clLun.js';
3
+ import { B as BatchResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, L as ListParams, g as ListResult, Q as QueryParams, e as QueryResult, P as PreflightResult, h as SuggestParams, j as SuggestResult, D as DocumentImportResult, M as MemoryStats, V as VectorMaintenanceResult, m as NarsilEventMap } from './events-DErop1LM.js';
4
4
  import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
5
5
 
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { A as AnyDocument, S as SchemaDefinition, B as BM25Params, e as ScoringMode } from './schema-DGAP_8HJ.js';
1
+ import { A as AnyDocument, S as SchemaDefinition, B as BM25Params, e as ScoringMode } from './schema-CS-clLun.js';
2
2
 
3
3
  /**
4
4
  * Every code a {@link NarsilError} carries, grouped by the part of the engine
@@ -42,6 +42,8 @@ declare const ErrorCodes: {
42
42
  readonly SEARCH_INVALID_CURSOR: "SEARCH_INVALID_CURSOR";
43
43
  readonly SEARCH_RESULT_WINDOW_EXCEEDED: "SEARCH_RESULT_WINDOW_EXCEEDED";
44
44
  readonly SEARCH_WORK_CAP_EXCEEDED: "SEARCH_WORK_CAP_EXCEEDED";
45
+ readonly SEARCH_INVALID_PHRASE: "SEARCH_INVALID_PHRASE";
46
+ readonly SEARCH_PHRASE_NOT_READY: "SEARCH_PHRASE_NOT_READY";
45
47
  readonly BM25_NOT_READY: "BM25_NOT_READY";
46
48
  readonly LANGUAGE_NOT_SUPPORTED: "LANGUAGE_NOT_SUPPORTED";
47
49
  readonly ENVELOPE_VERSION_MISMATCH: "ENVELOPE_VERSION_MISMATCH";
@@ -1166,7 +1168,15 @@ type SortSpec = Record<string, 'asc' | 'desc'> | readonly SortField[];
1166
1168
  * @public
1167
1169
  */
1168
1170
  interface QueryParams {
1169
- /** The engine analyses this text with the index's language module and searches for the terms that result. */
1171
+ /**
1172
+ * The engine analyses this text with the index's language module and searches
1173
+ * for the terms that result. Words inside double quotes form a phrase, which
1174
+ * a document has to hold side by side and in that order inside one field. The
1175
+ * engine throws `SEARCH_INVALID_PHRASE` for a phrase of more than 32 words, for
1176
+ * more than 32 phrases, and for a phrase on an index with `trackPositions` off.
1177
+ * It throws `SEARCH_PHRASE_NOT_READY` while an index with a `string[]` field
1178
+ * waits for a rebuild.
1179
+ */
1170
1180
  term?: string;
1171
1181
  /** The engine searches the term in these fields, and in every text field in the schema by default. */
1172
1182
  fields?: string[];
@@ -1,4 +1,4 @@
1
- import { S as SchemaDefinition } from './schema-DGAP_8HJ.js';
1
+ import { S as SchemaDefinition } from './schema-CS-clLun.js';
2
2
 
3
3
  /**
4
4
  * Tells watchers that the stored metadata of an index changed.
@@ -1,4 +1,6 @@
1
- export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-5D6NJD6C.mjs';
2
- export { isSimdAvailable } from './browser/chunk-WLD6DDIX.mjs';
1
+ export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-2Y3CO4EQ.mjs';
2
+ import './browser/chunk-26A5JFT2.mjs';
3
+ export { isSimdAvailable } from './browser/chunk-AIIJDWMG.mjs';
3
4
  import './browser/chunk-JPTQZWJQ.mjs';
4
- export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-3NVZD52E.mjs';
5
+ import './browser/chunk-VEGHFP2P.mjs';
6
+ export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-UDGB2MWT.mjs';
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { b as StopWordOverride, C as CustomTokenizer } from './schema-DGAP_8HJ.js';
2
- export { A as AnyDocument, c as BM25FieldParams, B as BM25Params, E as EmbeddingFieldConfig, F as FieldOptionChain, d as FieldType, I as IndexConfig, a as InsertOptions, P as PartitionConfig, S as SchemaDefinition, e as ScoringMode, T as TextFieldOption, V as VectorIndexConfig, f as VectorQuantizationMode, g as VectorStorageMode, W as WriteOptions } from './schema-DGAP_8HJ.js';
1
+ import { b as StopWordOverride, C as CustomTokenizer } from './schema-CS-clLun.js';
2
+ export { A as AnyDocument, c as BM25FieldParams, B as BM25Params, E as EmbeddingFieldConfig, F as FieldOptionChain, d as FieldType, I as IndexConfig, a as InsertOptions, P as PartitionConfig, S as SchemaDefinition, e as ScoringMode, T as TextFieldOption, V as VectorIndexConfig, f as VectorQuantizationMode, g as VectorStorageMode, W as WriteOptions } from './schema-CS-clLun.js';
3
3
  import { P as PartialWordSearch } from './partial-words-DTIHO8G4.js';
4
4
  import { P as PatternSearch } from './pattern-Cledccbl.js';
5
5
  import { S as SynonymSearch } from './synonyms-CpOAHPa-.js';
6
6
  export { O as OneWaySynonymRule, a as SynonymRule, T as TwoWaySynonymRule } from './synonyms-CpOAHPa-.js';
7
7
  import { L as LanguageModule } from './language-DB8KG1z5.js';
8
8
  export { T as TokenizerConfig } from './language-DB8KG1z5.js';
9
- export { A as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, n as ComparisonFilter, D as DocumentImportResult, o as DocumentProjection, E as ErrorCode, b as ErrorCodes, F as FacetConfig, p as FacetResult, q as FieldFilter, r as FilterExpression, G as GeoFilter, s as GeoPolygonFilter, t as GeoRadiusFilter, u as GroupConfig, v as GroupReducer, w as GroupResult, H as HeldCheckpointReport, x as HighlightConfig, y as HighlightMatch, z as Hit, J as HybridConfig, I as IndexInfo, k as IndexStats, L as ListParams, g as ListResult, K as ListedDocument, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, f as NarsilEventHandlers, m as NarsilEventMap, l as PartitionStatsResult, P as PreflightResult, O as PresenceFilter, R as ProcessMemoryReport, T as QueryCoverage, Q as QueryParams, e as QueryResult, U as RerankConfig, W as ScoreComponents, X as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, Y as SortField, Z as SortSpec, _ as StringFilter, h as SuggestParams, j as SuggestResult, $ as TermMatchPolicy, V as VectorMaintenanceResult, a0 as VectorQueryConfig, a1 as WorkerCopyReport, i as isNarsilError } from './events-pM0lna7M.js';
10
- import { N as NarsilConfig } from './config-C3YXk5Rn.js';
11
- export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, d as StaleAnalysis, U as UpdateContext, W as WorkerConfig, e as WorkerContext } from './config-C3YXk5Rn.js';
12
- import { N as Narsil } from './engine-JjRAXpT3.js';
13
- export { A as AdapterRegistrationOperations, B as BM25Operations, a as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-JjRAXpT3.js';
9
+ export { A as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, n as ComparisonFilter, D as DocumentImportResult, o as DocumentProjection, E as ErrorCode, b as ErrorCodes, F as FacetConfig, p as FacetResult, q as FieldFilter, r as FilterExpression, G as GeoFilter, s as GeoPolygonFilter, t as GeoRadiusFilter, u as GroupConfig, v as GroupReducer, w as GroupResult, H as HeldCheckpointReport, x as HighlightConfig, y as HighlightMatch, z as Hit, J as HybridConfig, I as IndexInfo, k as IndexStats, L as ListParams, g as ListResult, K as ListedDocument, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, f as NarsilEventHandlers, m as NarsilEventMap, l as PartitionStatsResult, P as PreflightResult, O as PresenceFilter, R as ProcessMemoryReport, T as QueryCoverage, Q as QueryParams, e as QueryResult, U as RerankConfig, W as ScoreComponents, X as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, Y as SortField, Z as SortSpec, _ as StringFilter, h as SuggestParams, j as SuggestResult, $ as TermMatchPolicy, V as VectorMaintenanceResult, a0 as VectorQueryConfig, a1 as WorkerCopyReport, i as isNarsilError } from './events-DErop1LM.js';
10
+ import { N as NarsilConfig } from './config-hOWGBeC6.js';
11
+ export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, d as StaleAnalysis, U as UpdateContext, W as WorkerConfig, e as WorkerContext } from './config-hOWGBeC6.js';
12
+ import { N as Narsil } from './engine-B_W9sdZK.js';
13
+ export { A as AdapterRegistrationOperations, B as BM25Operations, a as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-B_W9sdZK.js';
14
14
  export { E as EmbeddingAdapter, I as InvalidationAdapter, a as InvalidationEvent, b as PartitionStatistics, P as PersistenceAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
15
15
 
16
16
  /**