DropIndex()
This method drops a specific index from a field.
func (c *GrpcClient) DropIndex(ctx context.Context, collName string, fieldName string, opts ...IndexOption) error
Request Parameters
Parameter  | 
     Description  | 
     Type  | 
   
|---|---|---|
  | 
     Context for the current call to work.  | 
     
  | 
   
  | 
     Name of a collection  | 
     
  | 
   
  | 
     Name of the field to index.  | 
     
  | 
   
  | 
     Extra index settings You can include multiple   | 
     
  | 
   
Return
Null
Errors
Any error in the execution of the request. Possible errors are as follows:
ErrClientNotReady: The client is not connected to Milvus.ErrCollectionNotExists: The specified collection does not exist.A field with the same name does not exist.
The call to this API fails.
Example
// drop index
err := mc.DropIndex(context.Background(), collectionName, "vector")
if err != nil {
   log.Fatal("failed to drop index:", err.Error())
}