Skip to content

Commit

Permalink
Release new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Milvus-doc-bot authored and Milvus-doc-bot committed Nov 13, 2024
1 parent 9f5171b commit d15a42d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions v2.4.x/site/en/reference/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Milvus supports only one primary key field in a collection.
<table class="properties">
<thead>
<tr>
<th>Properties</td>
<th>Properties</th>
<th>Description</th>
<th>Note</th>
</tr>
Expand Down Expand Up @@ -138,7 +138,7 @@ A collection schema is the logical definition of a collection. Usually you need
<table class="properties">
<thead>
<tr>
<th>Properties</td>
<th>Properties</th>
<th>Description</th>
<th>Note</th>
</tr>
Expand Down Expand Up @@ -189,7 +189,8 @@ schema = CollectionSchema(fields=[id_field, age_field, embedding_field], auto_id
Create a collection with the schema specified:

```python
from pymilvus import Collection
from pymilvus import Collection,connections
conn = connections.connect(host="127.0.0.1", port=19530)
collection_name1 = "tutorial_1"
collection1 = Collection(name=collection_name1, schema=schema, using='default', shards_num=2)
```
Expand Down

0 comments on commit d15a42d

Please sign in to comment.