@delali/narsil 0.3.1-next.131 → 0.3.1-next.141
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/adapters/filesystem.mjs +1 -1
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/analysis-change-HQUT2Z3I.mjs +43 -0
- package/dist/analysis-change-entry-TZTG4AZB.mjs +1 -0
- package/dist/browser/analysis-change-JPV775LR.mjs +900 -0
- package/dist/browser/analysis-change-entry-7HR4LWL3.mjs +1 -0
- package/dist/browser/{chunk-UDGB2MWT.mjs → chunk-35B42UFM.mjs} +4 -0
- package/dist/browser/chunk-3ZBJYAS4.mjs +19 -0
- package/dist/browser/{chunk-2Y3CO4EQ.mjs → chunk-5DB2VDGI.mjs} +1149 -1853
- package/dist/browser/chunk-6RHTAVZX.mjs +656 -0
- package/dist/browser/chunk-CCOAOO73.mjs +86 -0
- package/dist/browser/{chunk-AIIJDWMG.mjs → chunk-D33A5VMU.mjs} +16 -16
- package/dist/browser/{chunk-VBBLTD7O.mjs → chunk-HKX2G6WH.mjs} +1520 -2159
- package/dist/browser/{chunk-NSCSR6MA.mjs → chunk-KTOK275N.mjs} +606 -830
- package/dist/browser/{chunk-D7WQF6DV.mjs → chunk-LVY2LI35.mjs} +2 -2
- package/dist/browser/chunk-MVM33ZUL.mjs +993 -0
- package/dist/browser/chunk-MWUK3DA5.mjs +2634 -0
- package/dist/browser/{chunk-VEGHFP2P.mjs → chunk-MZI3TEOW.mjs} +4 -2
- package/dist/browser/chunk-OIZS5KIX.mjs +6 -0
- package/dist/browser/chunk-R4WUDZQV.mjs +176 -0
- package/dist/browser/{chunk-M5UAAXGU.mjs → chunk-TCLEOZ4P.mjs} +3 -3
- package/dist/browser/chunk-VFYMPCOV.mjs +212 -0
- package/dist/browser/chunk-WCFCHIBB.mjs +177 -0
- package/dist/browser/chunk-XNWPP5NS.mjs +21 -0
- package/dist/browser/chunk-ZEV26AQ6.mjs +270 -0
- package/dist/browser/cold-module-MJMKNUYJ.mjs +745 -0
- package/dist/browser/{durability-wiring-FNZSRH4N.mjs → durability-wiring-SNOWIT6Z.mjs} +370 -95
- package/dist/browser/import-TLB2A5LJ.mjs +9 -0
- package/dist/browser/module-BUFNZMEU.mjs +12 -0
- package/dist/browser/{module-4HIMOQM5.mjs → module-BVP4TKZU.mjs} +397 -109
- package/dist/browser/{phrase-module-WESYVU7K.mjs → phrase-module-HGVBO24W.mjs} +1 -1
- package/dist/{restore-queue-JAMNRC6T.mjs → browser/restore-queue-ONYNYUDE.mjs} +8 -2
- package/dist/browser/{runtime-3X7ZJ5T3.mjs → runtime-VEUH674B.mjs} +2 -2
- package/dist/browser/{snapshot-V7VF6BN6.mjs → snapshot-QXBKHJAG.mjs} +135 -183
- package/dist/browser/{write-YIC2MKRY.mjs → write-WHFBDWQS.mjs} +64 -90
- package/dist/{capabilities-B6WxrWxt.d.ts → capabilities-BCdUwK_L.d.ts} +10 -3
- package/dist/chunk-46NZOPHS.mjs +21 -0
- package/dist/{chunk-JT3YZGCE.mjs → chunk-5WYVUPGD.mjs} +3 -188
- package/dist/chunk-6SNBQESJ.mjs +214 -0
- package/dist/{chunk-2C3WXBQS.mjs → chunk-74XB2SXI.mjs} +1 -1
- package/dist/chunk-7AUASRE7.mjs +653 -0
- package/dist/{chunk-NMXRXFGZ.mjs → chunk-AST3SHFA.mjs} +27 -25
- package/dist/chunk-BOJZGUS6.mjs +177 -0
- package/dist/{chunk-T4OFG4IQ.mjs → chunk-BRUUBXCB.mjs} +92 -17
- package/dist/{chunk-5LX6MOIB.mjs → chunk-C3YDYX6C.mjs} +1 -1
- package/dist/chunk-CZQ33DLW.mjs +78 -0
- package/dist/{chunk-4GDLFDPZ.mjs → chunk-DD2673TX.mjs} +3 -2
- package/dist/{chunk-EUCX5K74.mjs → chunk-DQNKVOJ2.mjs} +65 -65
- package/dist/{chunk-RNSC4NFI.mjs → chunk-EEBCDP36.mjs} +3 -1
- package/dist/chunk-FOCV4CBZ.mjs +87 -0
- package/dist/{chunk-HCGJKDZV.mjs → chunk-GLZHNSGB.mjs} +1 -1
- package/dist/chunk-GWOS5DYC.mjs +2637 -0
- package/dist/{chunk-PATMDIMN.mjs → chunk-HJJWY6PT.mjs} +1 -1
- package/dist/{chunk-CZ7ISLXA.mjs → chunk-HNHCNTVG.mjs} +4 -0
- package/dist/{chunk-Y2U5VVWX.mjs → chunk-ICW45TTU.mjs} +1 -1
- package/dist/{chunk-TGHNXN7W.mjs → chunk-IO5F7ZBE.mjs} +261 -948
- package/dist/{chunk-P36MUFEJ.mjs → chunk-JDDXV6UF.mjs} +2 -1
- package/dist/{chunk-7OIQ2SIO.mjs → chunk-KEIYVZUX.mjs} +5 -5
- package/dist/{chunk-PU6SKH7O.mjs → chunk-KGOXHLLZ.mjs} +7 -3
- package/dist/{chunk-WVRDRLIC.mjs → chunk-KZL72VTC.mjs} +70 -18
- package/dist/chunk-L76W3IZJ.mjs +193 -0
- package/dist/{chunk-2JWNJSNE.mjs → chunk-LA4WNDHL.mjs} +88 -801
- package/dist/{chunk-ZR4VM4A6.mjs → chunk-N37VMC62.mjs} +1 -18
- package/dist/{chunk-JJ6EUMXB.mjs → chunk-NJJCPFXN.mjs} +2 -2
- package/dist/chunk-NN33CZRE.mjs +86 -0
- package/dist/{chunk-2WBY4Y4M.mjs → chunk-NOT5QOHU.mjs} +1 -1
- package/dist/{chunk-D5TFRB5G.mjs → chunk-NPNK57CA.mjs} +1 -1
- package/dist/chunk-NRUXBYPH.mjs +121 -0
- package/dist/{chunk-6SSVIW7Y.mjs → chunk-O4LJQI4G.mjs} +31 -5
- package/dist/{chunk-UJWGQIXU.mjs → chunk-QHPYS427.mjs} +1 -0
- package/dist/{chunk-F6AAXI7T.mjs → chunk-RHKRTYGO.mjs} +13 -4
- package/dist/{chunk-2SEL6SBS.mjs → chunk-RKAVHNRW.mjs} +2 -2
- package/dist/{chunk-RCMNL7RI.mjs → chunk-SBMAWTRG.mjs} +41 -4
- package/dist/chunk-SRJBFG2T.mjs +881 -0
- package/dist/{chunk-X5CNUKD5.mjs → chunk-TNBIK2LQ.mjs} +1663 -1652
- package/dist/{chunk-NNO7CO3A.mjs → chunk-UIKN2OTQ.mjs} +1 -1
- package/dist/chunk-UUZCQQG2.mjs +209 -0
- package/dist/{chunk-6M6SDH3S.mjs → chunk-VEFN6X6Q.mjs} +8 -8
- package/dist/chunk-VJEGOELZ.mjs +177 -0
- package/dist/chunk-W2COJ5AH.mjs +148 -0
- package/dist/{chunk-RWESFSJI.mjs → chunk-WJGO5PGV.mjs} +317 -174
- package/dist/{chunk-7X5JST5L.mjs → chunk-WNBRW4Q2.mjs} +16 -2
- package/dist/{chunk-SZGRYEIC.mjs → chunk-XS2VM7UE.mjs} +3 -3
- package/dist/{chunk-Y4BVTQ53.mjs → chunk-XZ3SRNDJ.mjs} +25 -64
- package/dist/{chunk-K77FJXKS.mjs → chunk-YHUTF6EA.mjs} +474 -93
- package/dist/{chunk-OGLV4I3L.mjs → chunk-YLNSJQLX.mjs} +12 -7
- package/dist/{chunk-SOHMMNCH.mjs → chunk-Z4HFMYNX.mjs} +32 -27
- package/dist/{chunk-5W7AEVTH.mjs → chunk-ZMBFWQXN.mjs} +2 -2
- package/dist/{chunk-2MKX2SCO.mjs → chunk-ZPWS2SKJ.mjs} +297 -274
- package/dist/{chunk-7XY6VD7B.mjs → chunk-ZSWHPKGM.mjs} +1 -1
- package/dist/{client-gNAfaHcE.d.ts → client-B12YFALP.d.ts} +18 -3
- package/dist/client.d.ts +7 -7
- package/dist/client.mjs +11 -1
- package/dist/cold-module-4X7WJCFM.mjs +783 -0
- package/dist/{config-D1cDv3sE.d.ts → config-BhZxIeb1.d.ts} +10 -1
- package/dist/{config-CmYJO34X.d.ts → config-CIG5yDyg.d.ts} +2 -2
- package/dist/{direct-executor-HQ4QVDX7.mjs → direct-executor-7XOQ7VQP.mjs} +14 -14
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/transport/grpc.mjs +1 -1
- package/dist/distribution.d.ts +24 -8
- package/dist/distribution.mjs +982 -211
- package/dist/{durability-wiring-S7OX2MAI.mjs → durability-wiring-324D2DDD.mjs} +362 -94
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-m_Ddr1bz.d.ts → engine-CtzbHOmG.d.ts} +64 -7
- package/dist/import-OOBUW3RR.mjs +44 -0
- package/dist/{index-HYnqS1SE.d.ts → index-DsEurhSl.d.ts} +1 -1
- package/dist/index.browser.mjs +5 -5
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +22 -22
- package/dist/{long-query-thread-BSL25PD6.mjs → long-query-thread-4SW7RWDE.mjs} +15 -15
- package/dist/{module-2E4XYSGT.mjs → module-DXSJ5LT2.mjs} +378 -87
- package/dist/module-IYPLWHGC.mjs +48 -0
- package/dist/paged-partition-archive-HFP45PLU.mjs +269 -0
- package/dist/partial-words.mjs +5 -5
- package/dist/pattern.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.d.ts +16 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +28 -26
- package/dist/{phrase-module-JERF2IDG.mjs → phrase-module-5QHBD2VJ.mjs} +1 -1
- package/dist/react.d.ts +9 -9
- package/dist/react.mjs +4 -0
- package/dist/{rerank-DMMT4FZA.mjs → rerank-KTLC3E6N.mjs} +5 -5
- package/dist/rerankers/http.mjs +2 -2
- package/dist/{browser/restore-queue-GEZ54CA5.mjs → restore-queue-FEYAC4SB.mjs} +8 -2
- package/dist/{runtime-7MLQ7J64.mjs → runtime-DYV75DCB.mjs} +6 -6
- package/dist/{schema-BTXbHCqA.d.ts → schema-B-Runv0n.d.ts} +7 -0
- package/dist/server.d.ts +12 -10
- package/dist/server.mjs +54 -21
- package/dist/{snapshot-DOQLGGEX.mjs → snapshot-CGM65VCD.mjs} +101 -197
- package/dist/synonyms.mjs +6 -4
- package/dist/{tasks-Co8HfRD7.d.ts → tasks-CjRJRGTb.d.ts} +26 -8
- package/dist/{thread-SKO7CN3R.mjs → thread-KGNAIKPD.mjs} +14 -14
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +6 -5
- package/dist/workers/entry.mjs +8 -8
- package/dist/{write-ZKR7SNRT.mjs → write-2DZPEQL2.mjs} +82 -107
- package/openapi.json +114 -6
- package/package.json +12 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as PersistenceAdapter, I as InvalidationAdapter, E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
2
|
-
import { A as AnyDocument, S as SchemaDefinition, B as BM25Params, e as ScoringMode, a as IndexConfig } from './schema-
|
|
2
|
+
import { A as AnyDocument, S as SchemaDefinition, B as BM25Params, e as ScoringMode, a as IndexConfig } from './schema-B-Runv0n.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Every code a {@link NarsilError} carries, grouped by the part of the engine
|
|
@@ -51,6 +51,10 @@ declare const ErrorCodes: {
|
|
|
51
51
|
readonly ENVELOPE_INVALID_MAGIC: "ENVELOPE_INVALID_MAGIC";
|
|
52
52
|
readonly PARTITION_CAPACITY_EXCEEDED: "PARTITION_CAPACITY_EXCEEDED";
|
|
53
53
|
readonly RESTORE_MEMORY_EXCEEDED: "RESTORE_MEMORY_EXCEEDED";
|
|
54
|
+
readonly ANALYSIS_CHANGE_REPLACED: "ANALYSIS_CHANGE_REPLACED";
|
|
55
|
+
readonly ANALYSIS_CHANGE_NOT_READY: "ANALYSIS_CHANGE_NOT_READY";
|
|
56
|
+
readonly ANALYSIS_GENERATION_MISSING: "ANALYSIS_GENERATION_MISSING";
|
|
57
|
+
readonly ANALYSIS_REBUILD_MEMORY_EXCEEDED: "ANALYSIS_REBUILD_MEMORY_EXCEEDED";
|
|
54
58
|
readonly EMBEDDING_FAILED: "EMBEDDING_FAILED";
|
|
55
59
|
readonly EMBEDDING_DIMENSION_MISMATCH: "EMBEDDING_DIMENSION_MISMATCH";
|
|
56
60
|
readonly EMBEDDING_NO_SOURCE: "EMBEDDING_NO_SOURCE";
|
|
@@ -572,6 +576,11 @@ interface VectorMaintenanceResult {
|
|
|
572
576
|
* room for a second graph beside the one it serves, and false once it starts.
|
|
573
577
|
*/
|
|
574
578
|
waitingForMemory: boolean;
|
|
579
|
+
/**
|
|
580
|
+
* This stays true after a restart while a field kept on disk loads its codes and graph in the
|
|
581
|
+
* background, during which a search reads them from the field's files.
|
|
582
|
+
*/
|
|
583
|
+
loadingFromFiles: boolean;
|
|
575
584
|
/** {@link Narsil.compactVectors} would take about this many milliseconds. */
|
|
576
585
|
estimatedCompactMs: number;
|
|
577
586
|
/** {@link Narsil.optimizeVectors} would take about this many milliseconds. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as NarsilConfig } from './config-
|
|
2
|
-
import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-
|
|
1
|
+
import { e as NarsilConfig } from './config-BhZxIeb1.js';
|
|
2
|
+
import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-DsEurhSl.js';
|
|
3
3
|
import { N as NodeTransport } from './types-DvncmvuQ.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export { createDirectExecutor } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { createDirectExecutor } from './chunk-WJGO5PGV.mjs';
|
|
2
|
+
import './chunk-ZPWS2SKJ.mjs';
|
|
3
|
+
import './chunk-N37VMC62.mjs';
|
|
4
4
|
import './chunk-ZATRDAYU.mjs';
|
|
5
5
|
import './chunk-EBIHRL7B.mjs';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-U2BKYEC7.mjs';
|
|
8
|
-
import './chunk-2SEL6SBS.mjs';
|
|
6
|
+
import './chunk-RKAVHNRW.mjs';
|
|
9
7
|
import './chunk-WQBCBKY3.mjs';
|
|
10
8
|
import './chunk-JUKYYXSP.mjs';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
9
|
+
import './chunk-DQNKVOJ2.mjs';
|
|
10
|
+
import './chunk-KGOXHLLZ.mjs';
|
|
13
11
|
import './chunk-U476IXKQ.mjs';
|
|
14
12
|
import './chunk-FQBFZAWG.mjs';
|
|
15
13
|
import './chunk-VJS4JFBQ.mjs';
|
|
16
14
|
import './chunk-GES7U2PM.mjs';
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
15
|
+
import './chunk-ZSWHPKGM.mjs';
|
|
16
|
+
import './chunk-O4LJQI4G.mjs';
|
|
19
17
|
import './chunk-X5CV2E2B.mjs';
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
18
|
+
import './chunk-WNBRW4Q2.mjs';
|
|
19
|
+
import './chunk-TGP5M5R7.mjs';
|
|
20
|
+
import './chunk-U2BKYEC7.mjs';
|
|
21
|
+
import './chunk-NPNK57CA.mjs';
|
|
22
22
|
import './chunk-4UMZ7KQL.mjs';
|
|
23
23
|
import './chunk-R6A773WK.mjs';
|
|
24
24
|
import './chunk-YTJCGKM4.mjs';
|
|
25
|
-
import './chunk-
|
|
25
|
+
import './chunk-GLZHNSGB.mjs';
|
|
26
26
|
import './chunk-22YPZVMG.mjs';
|
|
27
27
|
import './chunk-L5ORED7V.mjs';
|
|
28
|
-
import './chunk-
|
|
28
|
+
import './chunk-HNHCNTVG.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ClusterCoordinator } from '../../index-
|
|
2
|
-
import '../../schema-
|
|
1
|
+
import { C as ClusterCoordinator } from '../../index-DsEurhSl.js';
|
|
2
|
+
import '../../schema-B-Runv0n.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-
|
|
5
|
+
import { NarsilError, ErrorCodes, describeError } from '../../chunk-HNHCNTVG.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-
|
|
2
|
-
import '../../schema-
|
|
1
|
+
import { C as ClusterCoordinator } from '../../index-DsEurhSl.js';
|
|
2
|
+
import '../../schema-B-Runv0n.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-
|
|
5
|
+
import { NarsilError, ErrorCodes } from '../../chunk-HNHCNTVG.mjs';
|
|
6
6
|
|
|
7
7
|
// src/distribution/transport/grpc/codec.ts
|
|
8
8
|
var FIELD_ONE_LENGTH_DELIMITED_KEY = 10;
|
package/dist/distribution.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as CreateIndexOptions, C as ClusterNamespace, c as ClusterNodeConfig } from './config-
|
|
2
|
-
export { d as ClusterControllerConfig, e as ClusterHealth, f as ClusterHealthStatus, g as ClusterMemoryConfig, h as ClusterMetrics, a as ClusterNodeInfo, i as ClusterQueryConfig, j as CommitPointFigure, k as CoordinatorRequestFigure, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, l as ReplicationConfig, V as VectorRebuildWaitFigure } from './config-
|
|
1
|
+
import { b as CreateIndexOptions, C as ClusterNamespace, c as ClusterNodeConfig } from './config-CIG5yDyg.js';
|
|
2
|
+
export { d as ClusterControllerConfig, e as ClusterHealth, f as ClusterHealthStatus, g as ClusterMemoryConfig, h as ClusterMetrics, a 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-CIG5yDyg.js';
|
|
3
3
|
import { R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
4
|
-
import {
|
|
5
|
-
import { B as
|
|
6
|
-
import {
|
|
7
|
-
|
|
4
|
+
import { A as AnalysisChange, N as Narsil } from './engine-CtzbHOmG.js';
|
|
5
|
+
import { B as BatchResult, L as ListParams, f as ListResult, g as SuggestParams, h as SuggestResult, Q as QueryParams, j as PreflightResult, I as IndexInfo, k as IndexStats, P as PartitionStatsResult, M as MemoryStats, l as NarsilEventMap, m as QueryResult } from './config-BhZxIeb1.js';
|
|
6
|
+
import { B as BM25Params, a as IndexConfig, A as AnyDocument, I as InsertOptions } from './schema-B-Runv0n.js';
|
|
7
|
+
import { b as NodeCapacity, N as NodeRole } from './index-DsEurhSl.js';
|
|
8
|
+
export { d as AllocationConstraints, e as AllocationEvent, A as AllocationTable, C as ClusterCoordinator, I as IndexMetadataEvent, f as IndexMetadataWatch, g as IndexPartitionBytes, h as NodeEvent, c as NodeMemoryReport, a as NodeRegistration, P as PartitionAssignment, i as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-DsEurhSl.js';
|
|
8
9
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
9
|
-
import { N as Narsil } from './engine-m_Ddr1bz.js';
|
|
10
10
|
export { L as ListenHandler, N as NodeTransport, R as RespondFn, T as TransportConfig, a as TransportMessage } from './types-DvncmvuQ.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -290,6 +290,22 @@ interface ClusterNode extends ClusterNodeSearchSettings {
|
|
|
290
290
|
* the cluster before it answers.
|
|
291
291
|
*/
|
|
292
292
|
rebuildAnalysis(indexName: string): Promise<void>;
|
|
293
|
+
/**
|
|
294
|
+
* Gives a cluster index a new language, stop word set, or tokeniser, and resolves once the cluster publishes the new
|
|
295
|
+
* settings, while the index keeps answering searches under the old settings.
|
|
296
|
+
*
|
|
297
|
+
* Every node that holds a copy builds the new terms beside the old ones, and the controller finishes the change if
|
|
298
|
+
* this node dies. A later change replaces one that is still building, so the latest change wins.
|
|
299
|
+
*
|
|
300
|
+
* @param indexName - The index to change.
|
|
301
|
+
* @param change - The settings to change, each by a registered name, with `null` returning a setting to its default.
|
|
302
|
+
* @throws A `NarsilError` with `LANGUAGE_NOT_SUPPORTED` or `CONFIG_INVALID` for an unregistered name, with
|
|
303
|
+
* `ANALYSIS_CHANGE_NOT_READY` where a registered node runs an older specification version, with
|
|
304
|
+
* `ANALYSIS_REBUILD_MEMORY_EXCEEDED` where a node lacks the memory for a second copy of the terms, with
|
|
305
|
+
* `ANALYSIS_CHANGE_REPLACED` where a later change replaces this one, and with
|
|
306
|
+
* `PARTITION_REBALANCING_BACKPRESSURE` during a partition count change.
|
|
307
|
+
*/
|
|
308
|
+
changeAnalysis(indexName: string, change: AnalysisChange): Promise<void>;
|
|
293
309
|
/**
|
|
294
310
|
* Moves an index onto a new number of partitions, and resolves once every read and write of the index goes to the new
|
|
295
311
|
* layout.
|
|
@@ -482,7 +498,7 @@ interface ClusterEngineOptions {
|
|
|
482
498
|
* serves a single engine.
|
|
483
499
|
*
|
|
484
500
|
* Writes, updates, searches, suggestions, listings, counts, index creation,
|
|
485
|
-
* index removal, analysis rebuilds, synonym sets, and document reads route through the cluster.
|
|
501
|
+
* index removal, analysis rebuilds, analysis changes, synonym sets, and document reads route through the cluster.
|
|
486
502
|
* Checkpointing, memory statistics, index opens, index closes, engine events,
|
|
487
503
|
* and rerank adapter registration reach this node's local engine, because
|
|
488
504
|
* each covers a per-node fact. This node reranks the searches that it
|