发布正式版2.0.0

This commit is contained in:
xgc 2024-05-23 20:57:54 +08:00
parent 27deb537b9
commit 38b7a8ca52
5 changed files with 30 additions and 26 deletions

View File

@ -26,9 +26,9 @@
```
<dependency>
<groupId>io.github.javpower</groupId>
<groupId>org.dromara</groupId>
<artifactId>milvus-plus-core</artifactId>
<version>2.4.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>
```
@ -36,9 +36,9 @@ Spring应用支持
```
<dependency>
<groupId>io.github.javpower</groupId>
<groupId>org.dromara</groupId>
<artifactId>milvus-plus-boot-starter</artifactId>
<version>2.4.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>
```
@ -46,28 +46,12 @@ Solon应用支持
```
<dependency>
<groupId>io.github.javpower</groupId>
<groupId>org.dromara</groupId>
<artifactId>milvus-plus-solon-plugin</artifactId>
<version>2.4.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>
```
快照版本需额外加入
```
<repositories>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
```
## 需知
版本
2.4.0 废除

View File

@ -17,7 +17,7 @@
<dependency>
<groupId>org.dromara</groupId>
<artifactId>milvus-plus-core</artifactId>
<version>2.4.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>
</dependencies>
<dependencyManagement>

View File

@ -40,7 +40,7 @@ public class LambdaQueryWrapper<T> extends AbstractChainWrapper<T> implements Wr
private List<List<?>> vectors = new ArrayList<>();
private long offset;
private long limit;
private int roundDecimal;
private int roundDecimal=-1;
private long guaranteeTimestamp;
private ConsistencyLevel consistencyLevel;
private boolean ignoreGrowing;
@ -73,6 +73,23 @@ public class LambdaQueryWrapper<T> extends AbstractChainWrapper<T> implements Wr
this.searchParams.putAll(searchParams);
return this;
}
public LambdaQueryWrapper<T> radius(Object radius){
this.searchParams.put("radius",radius);
return this;
}
public LambdaQueryWrapper<T> rangeFilter(Object rangeFilter){
this.searchParams.put("range_filter",rangeFilter);
return this;
}
public LambdaQueryWrapper<T> metricType(Object metric_type){
this.searchParams.put("metric_type",metric_type);
return this;
}
public LambdaQueryWrapper<T> roundDecimal(int roundDecimal){
this.roundDecimal=roundDecimal;
return this;
}
/**
* 添加等于条件
*
@ -417,6 +434,9 @@ public class LambdaQueryWrapper<T> extends AbstractChainWrapper<T> implements Wr
if(searchParams.size()>0){
builder.searchParams(searchParams);
}
if(roundDecimal!=-1){
builder.roundDecimal(roundDecimal);
}
// Set other parameters as needed
return builder.build();
}

View File

@ -28,7 +28,7 @@
<dependency>
<groupId>org.dromara</groupId>
<artifactId>milvus-plus-solon-plugin</artifactId>
<version>2.4.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.noear</groupId>

View File

@ -21,7 +21,7 @@
<dependency>
<groupId>org.dromara</groupId>
<artifactId>milvus-plus-boot-starter</artifactId>
<version>2.4.0-SNAPSHOT</version>
<version>2.0.0</version>
</dependency>
</dependencies>
<dependencyManagement>