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

     1  # Flush 
     2  
     3  API to flush the newly inserted data inserted.
     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 flush.                              | String                   |
    11  | `async`      | Switch value of the sync/async behavior. </br>Note: the deadline of context is not applied in sync flush. | Boolean |
    12  
    13  ## Response
    14  
    15  - `err`: error in the process (if any). Possible errors are listed below:
    16  
    17      - `ErrClientNotReady`, error that the client is not connected.
    18  
    19      - `ErrCollectionNotExists`, error that collection with the specified name does not exist.
    20      
    21      - error that API invocation failed.
    22  
    23  ## Example
    24  
    25  ```go
    26  ctx := context.Background()
    27  // cli is a valid Client instance
    28  err := c.Flush(ctx, "TestCollection", false)
    29  handles the error not nil
    30  ```