Skip to content

VectorUtils#vector result is null ,leading to NPE #1716

@yeyinglang

Description

@yeyinglang

question:

We use the Search API to execute queries based on scalar filter conditions. (notes: in this case,we should use query API)
Then VectorUtils#ConvertToGrpcSearchRequest will throw NPE

io.milvus.v2.utils.VectorUtils#ConvertToGrpcSearchRequest

image

Reproduction Code

            SearchReq searchReq = SearchReq.builder()
                    .collectionName(Constant.COLLECTION_NAME)
                    .filter("id ==4627727850274838")
                    .outputFields(Arrays.asList("text", "id"))
                    .limit(1)
                    .build();

            SearchResp searchResp = milvusClient.search(searchReq);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions