mirror of
https://gitee.com/dromara/MilvusPlus.git
synced 2025-12-06 08:58:26 +08:00
更新README
This commit is contained in:
parent
12e614dd2f
commit
a7029c8fb6
11
README.cn.md
11
README.cn.md
@ -94,14 +94,19 @@ public class ApplicationRunnerTest implements ApplicationRunner {
|
||||
@Override
|
||||
public void run(ApplicationArguments args) throws Exception {
|
||||
List<Float> vector = Lists.newArrayList(0.1f,0.2f,0.3f);
|
||||
MilvusResp<Face> resp = mapper.lambda()
|
||||
.eq(Face::getPersonId,1l)
|
||||
|
||||
MilvusResp<MilvusResultVo<Face>> query = mapper.searchWrapper()
|
||||
.eq(Face::getPersonId, 1l)
|
||||
.vector(vector)
|
||||
.limit(100l)
|
||||
.query();
|
||||
|
||||
MilvusResp<DeleteResp> remove= mapper.deleteWrapper()
|
||||
.eq(Face::getPersonId, 1l)
|
||||
.id(111)
|
||||
.remove();
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## 贡献
|
||||
|
||||
10
README.md
10
README.md
@ -94,11 +94,17 @@ public class ApplicationRunnerTest implements ApplicationRunner {
|
||||
@Override
|
||||
public void run(ApplicationArguments args) throws Exception {
|
||||
List<Float> vector = Lists.newArrayList(0.1f,0.2f,0.3f);
|
||||
MilvusResp<Face> resp = mapper.lambda()
|
||||
.eq(Face::getPersonId,1l)
|
||||
|
||||
MilvusResp<MilvusResultVo<Face>> query = mapper.searchWrapper()
|
||||
.eq(Face::getPersonId, 1l)
|
||||
.vector(vector)
|
||||
.limit(100l)
|
||||
.query();
|
||||
|
||||
MilvusResp<DeleteResp> remove= mapper.deleteWrapper()
|
||||
.eq(Face::getPersonId, 1l)
|
||||
.id(111)
|
||||
.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user