milvus-logo
Star
0
Forks
0
快速开始

index()

This method gets the index object in the collection.

Invocation

index()

Return

The index object.

Raises

  • CollectionNotExistException: error if the collection does not exist.
  • BaseException: error if the specified partition does not exist.

Example

from pymilvus import Collection
collection = Collection("book")      # Get an existing collection.
collection.index()