diff --git a/internal/querynodev2/services.go b/internal/querynodev2/services.go index 1eca7efe950cd..446f5fded4fa0 100644 --- a/internal/querynodev2/services.go +++ b/internal/querynodev2/services.go @@ -763,7 +763,7 @@ func (node *QueryNode) Search(ctx context.Context, req *querypb.SearchRequest) ( } collection := node.manager.Collection.Get(req.GetReq().GetCollectionID()) if collection == nil { - resp.Status = merr.Status(merr.WrapErrCollectionNotFound(req.GetReq().GetCollectionID())) + resp.Status = merr.Status(merr.WrapErrCollectionNotLoaded(req.GetReq().GetCollectionID())) return resp, nil }