Skip to content

Commit

Permalink
Merge pull request #2858 from tinswzy/update_index_scalar_field_doc
Browse files Browse the repository at this point in the history
update index-scalar-fields document
  • Loading branch information
AnthonyTsu1984 authored Nov 13, 2024
2 parents a53b1b6 + 7945505 commit 8454485
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/en/userGuide/manage-indexes/index-scalar-fields.md
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

0 comments on commit 8454485

Please sign in to comment.