From a7029c8fb641599c1c97b784e738e38d4f21d648 Mon Sep 17 00:00:00 2001 From: xgc Date: Fri, 10 May 2024 23:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.cn.md | 11 ++++++++--- README.md | 10 ++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/README.cn.md b/README.cn.md index 5c67388..c8937af 100644 --- a/README.cn.md +++ b/README.cn.md @@ -94,14 +94,19 @@ public class ApplicationRunnerTest implements ApplicationRunner { @Override public void run(ApplicationArguments args) throws Exception { List vector = Lists.newArrayList(0.1f,0.2f,0.3f); - MilvusResp resp = mapper.lambda() - .eq(Face::getPersonId,1l) + + MilvusResp> query = mapper.searchWrapper() + .eq(Face::getPersonId, 1l) .vector(vector) .limit(100l) .query(); + + MilvusResp remove= mapper.deleteWrapper() + .eq(Face::getPersonId, 1l) + .id(111) + .remove(); } } - ``` ## 贡献 diff --git a/README.md b/README.md index c2ad08f..bd7a8d8 100644 --- a/README.md +++ b/README.md @@ -94,11 +94,17 @@ public class ApplicationRunnerTest implements ApplicationRunner { @Override public void run(ApplicationArguments args) throws Exception { List vector = Lists.newArrayList(0.1f,0.2f,0.3f); - MilvusResp resp = mapper.lambda() - .eq(Face::getPersonId,1l) + + MilvusResp> query = mapper.searchWrapper() + .eq(Face::getPersonId, 1l) .vector(vector) .limit(100l) .query(); + + MilvusResp remove= mapper.deleteWrapper() + .eq(Face::getPersonId, 1l) + .id(111) + .remove(); } }