You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/collections/configure/index.ts
+23-4Lines changed: 23 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ import {
2
2
InvertedIndexConfigCreate,
3
3
InvertedIndexConfigUpdate,
4
4
MultiTenancyConfigCreate,
5
+
MultiTenancyConfigUpdate,
5
6
ReplicationConfigCreate,
6
7
ReplicationConfigUpdate,
7
8
ReplicationDeletionStrategy,
@@ -223,13 +224,13 @@ const reconfigure = {
223
224
},
224
225
},
225
226
/**
226
-
* Create a `ReplicationConfigUpdate` object to be used when defining the replication configuration of Weaviate.
227
+
* Create a `ReplicationConfigUpdate` object to be used when updating the replication configuration of Weaviate.
227
228
*
228
229
* See [the docs](https://weaviate.io/developers/weaviate/concepts/replication-architecture#replication-vs-sharding) for more details.
229
230
*
230
-
* @param {boolean} [options.asyncEnabled] Whether asynchronous replication is enabled.
231
-
* @param {ReplicationDeletionStrategy} [options.deletionStrategy] The deletion strategy when replication conflicts are detected between deletes and reads.
232
-
* @param {number} [options.factor] The replication factor.
231
+
* @param {boolean} [options.asyncEnabled] Whether to enable asynchronous replication.
232
+
* @param {ReplicationDeletionStrategy} [options.deletionStrategy] The deletion strategy to update when replication conflicts are detected between deletes and reads.
233
+
* @param {number} [options.factor] The replication factor to update.
233
234
*/
234
235
replication: (options: {
235
236
asyncEnabled?: boolean;
@@ -242,6 +243,24 @@ const reconfigure = {
242
243
factor: options.factor,
243
244
};
244
245
},
246
+
/**
247
+
* Create a `MultiTenancyConfigUpdate` object to be used when updating the multi-tenancy configuration of Weaviate.
248
+
*
249
+
* Note: You cannot update a single-tenant collection to become a multi-tenant collection. You must instead create a new multi-tenant collection and migrate the data over manually.
250
+
*
251
+
* @param {boolean} [options.autoTenantActivation] Whether to enable auto-tenant activation.
252
+
* @param {boolean} [options.autoTenantCreation] Whether to enable auto-tenant creation.
0 commit comments