github.com/milvus-io/milvus-sdk-go/v2@v2.4.1/docs/load_partitions.md (about)

     1  # Load Partitions
     2  
     3  API to load partitions by names.
     4  
     5  ## Parameters
     6  
     7  | Parameter    | Description                                                  | Type                     |
     8  | ------------ | ------------------------------------------------------------ | ------------------------ |
     9  | `ctx`        | Context to control API invocation process.                    | context.Context          |
    10  | `collName`   | Name of the collection to load partition from.                | String                   |
    11  | `partitionNames` | List of names of the partition to load.                   | Slice of string          |
    12  | `async`      | Switch value of the sync/async behavior. </br>Note: the deadline of context is not applied in sync load. | Boolean |
    13  
    14  ## Response
    15  
    16  `err`: error in the process (if any). Possible errors are listed below:
    17  
    18    - `ErrClientNotReady`, error that the client is not connected.
    19  
    20    - `ErrCollectionNotExists`, error that the collection with the specified name does not exist.
    21  
    22    - error that API invocation failed.
    23  
    24  ## Example
    25  
    26  ```go
    27  ctx := context.Background()
    28  // cli is a valid Client instance, assume test collection exists
    29  err := cli.LoadPartitions(ctx, "TestCollection",[]string{"Partitions"}, false)
    30  // handles the error not nil
    31  ```