Skip to content

Commit

Permalink
Generate en docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Milvus-doc-bot authored and Milvus-doc-bot committed Sep 26, 2024
1 parent 70f0741 commit c26f3e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -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}]}
{"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}]}
17 changes: 1 addition & 16 deletions localization/v2.4.x/site/en/userGuide/clustering-compaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,22 +142,7 @@ common:
</li>
</ul>
<p>To apply the above changes to your Milvus cluster, please follow the steps in <a href="/docs/configure-helm.md">Configure Milvus with Helm</a> and <a href="/docs/configure_operator.md">Configure Milvus with Milvus Operators</a>.</p>
<h2 id="Collection-Configuration" class="common-anchor-header">Collection Configuration<button data-href="#Collection-Configuration" class="anchor-icon" translate="no">
<svg translate="no"
aria-hidden="true"
focusable="false"
height="20"
version="1.1"
viewBox="0 0 16 16"
width="16"
>
<path
fill="#0092E4"
fill-rule="evenodd"
d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"
></path>
</svg>
</button></h2><p>For clustering compacting in a specific collection, you should select a scalar field from the collection as the clustering key.</p>
<h3 id="Collection-Configuration" class="common-anchor-header">Collection Configuration</h3><p>For clustering compacting in a specific collection, you should select a scalar field from the collection as the clustering key.</p>
<pre><code translate="no" class="language-python">default_fields = [
FieldSchema(name=<span class="hljs-string">&quot;id&quot;</span>, dtype=DataType.INT64, is_primary=<span class="hljs-literal">True</span>),
FieldSchema(name=<span class="hljs-string">&quot;key&quot;</span>, dtype=DataType.INT64, is_clustering_key=<span class="hljs-literal">True</span>),
Expand Down

0 comments on commit c26f3e4

Please sign in to comment.