From a76b0831788525248a47b618fe09cfad03b449b6 Mon Sep 17 00:00:00 2001 From: Milvus-doc-bot Date: Wed, 13 Nov 2024 02:07:48 +0000 Subject: [PATCH] Release new docs --- .../site/en/userGuide/manage-indexes/index-scalar-fields.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2.4.x/site/en/userGuide/manage-indexes/index-scalar-fields.md b/v2.4.x/site/en/userGuide/manage-indexes/index-scalar-fields.md index 3fec56853..4985dd081 100644 --- a/v2.4.x/site/en/userGuide/manage-indexes/index-scalar-fields.md +++ b/v2.4.x/site/en/userGuide/manage-indexes/index-scalar-fields.md @@ -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 @@ -122,7 +122,7 @@ The example below creates an inverted index for the scalar field `scalar_2`. ```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 @@ -170,7 +170,7 @@ await client.createIndex({ __Methods and Parameters__ -- __create_index_params()__ +- __prepare_index_params()__ Prepares an __IndexParams__ object.