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 37e3ad1 commit 7db21fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ client = MilvusClient(
uri="http://localhost:19530"
)

index_params = client.create_index_params() # Prepare an empty IndexParams object, without having to specify any index parameters
index_params = MilvusClient.prepare_index_params() # Prepare an empty IndexParams object, without having to specify any index parameters

index_params.add_index(
field_name="scalar_1", # Name of the scalar field to be indexed
Expand Down Expand Up @@ -122,7 +122,7 @@ The example below creates an inverted index for the scalar field `scalar_2`.
</div>

```python
index_params = client.create_index_params() # Prepare an IndexParams object
index_params = MilvusClient.prepare_index_params() # Prepare an IndexParams object

index_params.add_index(
field_name="scalar_2", # Name of the scalar field to be indexed
Expand Down Expand Up @@ -170,7 +170,7 @@ await client.createIndex({

__Methods and Parameters__

- __create_index_params()__
- __prepare_index_params()__

Prepares an __IndexParams__ object.

Expand Down
6 changes: 3 additions & 3 deletions v2.4.x/site/en/userGuide/manage-partitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ client.load_partitions(
partition_names=["partitionA", "partitionB"]
)

res = client.get_load_status(
res = client.get_load_state(
collection_name="quick_setup",
partition_name="partitionA"
)
Expand All @@ -730,7 +730,7 @@ res = client.get_load_status(
# "state": "<LoadState: Loaded>"
# }

res = client.get_load_status(
res = client.get_load_state(
collection_name="quick_setup",
partition_name="partitionB"
)
Expand Down Expand Up @@ -921,7 +921,7 @@ client.release_partitions(
partition_names=["_default", "partitionA", "partitionB"]
)

res = client.get_load_status(
res = client.get_load_state(
collection_name="quick_setup",
)

Expand Down

0 comments on commit 7db21fd

Please sign in to comment.