mirror of
https://gitee.com/dromara/MilvusPlus.git
synced 2025-12-06 17:08:27 +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
|
@Override
|
||||||
public void run(ApplicationArguments args) throws Exception {
|
public void run(ApplicationArguments args) throws Exception {
|
||||||
List<Float> vector = Lists.newArrayList(0.1f,0.2f,0.3f);
|
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)
|
.vector(vector)
|
||||||
.limit(100l)
|
.limit(100l)
|
||||||
.query();
|
.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
|
@Override
|
||||||
public void run(ApplicationArguments args) throws Exception {
|
public void run(ApplicationArguments args) throws Exception {
|
||||||
List<Float> vector = Lists.newArrayList(0.1f,0.2f,0.3f);
|
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)
|
.vector(vector)
|
||||||
.limit(100l)
|
.limit(100l)
|
||||||
.query();
|
.query();
|
||||||
|
|
||||||
|
MilvusResp<DeleteResp> remove= mapper.deleteWrapper()
|
||||||
|
.eq(Face::getPersonId, 1l)
|
||||||
|
.id(111)
|
||||||
|
.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user