Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does milvus support search data by json field condition? #930

Open
king1302217 opened this issue Jun 12, 2024 · 2 comments
Open

Does milvus support search data by json field condition? #930

king1302217 opened this issue Jun 12, 2024 · 2 comments

Comments

@king1302217
Copy link

Data in milvus has two fields, eg: id: string, meta: json. meta eg: {"name":"sam", "age":18}
Does milvus support search data by json field condition?

eg:
SearchParam.Builder builder = SearchParam.newBuilder()
.withCollectionName(collectionName)
.withMetricType(metricType)
.withTopK(searchLimit)
.withVectors(vectors)
.withVectorFieldName(vectorField)
.withExpr("meta.name == 'sam'");
R search = milvusServiceClient.search(builder.build());

@xiaofan-luan
Copy link
Contributor

it should be meta["name"]="sam"

@xiaofan-luan
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants