diff --git a/localization/v2.4.x/site/en/userGuide/clustering-compaction.json b/localization/v2.4.x/site/en/userGuide/clustering-compaction.json index ed18ee24f..2a15b84f6 100644 --- a/localization/v2.4.x/site/en/userGuide/clustering-compaction.json +++ b/localization/v2.4.x/site/en/userGuide/clustering-compaction.json @@ -1 +1 @@ -{"codeList":["dataCoord:\n compaction:\n clustering:\n enable: true \n autoEnable: false \n triggerInterval: 600 \n minInterval: 3600 \n maxInterval: 259200 \n newDataSizeThreshold: 512m \n timeout: 7200\n \nqueryNode:\n enableSegmentPrune: true \n\ndatanode:\n clusteringCompaction:\n memoryBufferRatio: 0.1 \n workPoolSize: 8 \ncommon:\n usePartitionKeyAsClusteringKey: true \n","default_fields = [\n FieldSchema(name=\"id\", dtype=DataType.INT64, is_primary=True),\n FieldSchema(name=\"key\", dtype=DataType.INT64, is_clustering_key=True),\n FieldSchema(name=\"var\", dtype=DataType.VARCHAR, max_length=1000, is_primary=False),\n FieldSchema(name=\"embeddings\", dtype=DataType.FLOAT_VECTOR, dim=dim)\n]\n\ndefault_schema = CollectionSchema(\n fields=default_fields, \n description=\"test clustering-key collection\"\n)\n\ncoll1 = Collection(name=\"clustering_test\", schema=default_schema)\n","coll1.compact(is_clustering=True)\ncoll1.get_compaction_state(is_clustering=True)\ncoll1.wait_for_compaction_completed(is_clustering=True)\n"],"headingContent":"Clustering Compaction","anchorList":[{"label":"Clustering Compaction","href":"Clustering-Compaction","type":1,"isActive":false},{"label":"Overview","href":"Overview","type":2,"isActive":false},{"label":"Use Clustering Compaction","href":"Use-Clustering-Compaction","type":2,"isActive":false},{"label":"Collection Configuration","href":"Collection-Configuration","type":2,"isActive":false},{"label":"Trigger Clustering Compaction","href":"Trigger-Clustering-Compaction","type":2,"isActive":false},{"label":"Best practices","href":"Best-practices","type":2,"isActive":false}]} \ No newline at end of file +{"codeList":["dataCoord:\n compaction:\n clustering:\n enable: true \n autoEnable: false \n triggerInterval: 600 \n minInterval: 3600 \n maxInterval: 259200 \n newDataSizeThreshold: 512m \n timeout: 7200\n \nqueryNode:\n enableSegmentPrune: true \n\ndatanode:\n clusteringCompaction:\n memoryBufferRatio: 0.1 \n workPoolSize: 8 \ncommon:\n usePartitionKeyAsClusteringKey: true \n","default_fields = [\n FieldSchema(name=\"id\", dtype=DataType.INT64, is_primary=True),\n FieldSchema(name=\"key\", dtype=DataType.INT64, is_clustering_key=True),\n FieldSchema(name=\"var\", dtype=DataType.VARCHAR, max_length=1000, is_primary=False),\n FieldSchema(name=\"embeddings\", dtype=DataType.FLOAT_VECTOR, dim=dim)\n]\n\ndefault_schema = CollectionSchema(\n fields=default_fields, \n description=\"test clustering-key collection\"\n)\n\ncoll1 = Collection(name=\"clustering_test\", schema=default_schema)\n","coll1.compact(is_clustering=True)\ncoll1.get_compaction_state(is_clustering=True)\ncoll1.wait_for_compaction_completed(is_clustering=True)\n"],"headingContent":"Clustering Compaction","anchorList":[{"label":"Clustering Compaction","href":"Clustering-Compaction","type":1,"isActive":false},{"label":"Overview","href":"Overview","type":2,"isActive":false},{"label":"Use Clustering Compaction","href":"Use-Clustering-Compaction","type":2,"isActive":false},{"label":"Trigger Clustering Compaction","href":"Trigger-Clustering-Compaction","type":2,"isActive":false},{"label":"Best practices","href":"Best-practices","type":2,"isActive":false}]} \ No newline at end of file diff --git a/localization/v2.4.x/site/en/userGuide/clustering-compaction.md b/localization/v2.4.x/site/en/userGuide/clustering-compaction.md index 37d23ceff..c64998dca 100644 --- a/localization/v2.4.x/site/en/userGuide/clustering-compaction.md +++ b/localization/v2.4.x/site/en/userGuide/clustering-compaction.md @@ -142,22 +142,7 @@ common:
To apply the above changes to your Milvus cluster, please follow the steps in Configure Milvus with Helm and Configure Milvus with Milvus Operators.
-For clustering compacting in a specific collection, you should select a scalar field from the collection as the clustering key.
+For clustering compacting in a specific collection, you should select a scalar field from the collection as the clustering key.
default_fields = [
FieldSchema(name="id", dtype=DataType.INT64, is_primary=True),
FieldSchema(name="key", dtype=DataType.INT64, is_clustering_key=True),