2
0
Эх сурвалжийг харах

Prepare for release v2.2.11 (#574)

Signed-off-by: yhmo <yihua.mo@zilliz.com>
groot 1 жил өмнө
parent
commit
214bbcb42e

+ 17 - 0
CHANGELOG.md

@@ -1,5 +1,22 @@
 # Changelog
 
+## milvus-sdk-java 2.2.11 (2023-08-09)
+
+### Improvement
+
+- Fix a bug that could not create index for VARCHAR field with Milvus v2.2.12
+
+### Deprecated
+
+- withGuaranteeTimestamp()/withGracefulTime() are marked as Deprecated for SearchParam/QueryParam. From Milvus v2.2.9, the time settings are determined by the server side.
+
+## milvus-sdk-java 2.2.10 (2023-08-08)
+
+### Feature
+
+- Support TLS connection
+- Support retry for interface
+
 ## milvus-sdk-java 2.2.9 (2023-07-03)
 
 ### Improvement

+ 3 - 3
README.md

@@ -18,7 +18,7 @@ The following table shows compatibilities between Milvus and Java SDK.
 |     2.0      |      2.0.4       |
 |     2.1      |   2.1.0-beta4    |
 |     2.2.0 ~ 2.2.8      |      2.2.0 ~ 2.2.5       |
-|     >= 2.2.9      |      2.2.7 ~ 2.2.9       |
+|     >= 2.2.9      |      2.2.7 ~ 2.2.11       |
 
 ### Install Java SDK
 
@@ -30,14 +30,14 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK.
         <dependency>
             <groupId>io.milvus</groupId>
             <artifactId>milvus-sdk-java</artifactId>
-            <version>2.2.9</version>
+            <version>2.2.11</version>
         </dependency>
        ```
 
    - Gradle/Grails
 
         ```gradle
-        compile 'io.milvus:milvus-sdk-java:2.2.9'
+        compile 'io.milvus:milvus-sdk-java:2.2.11'
         ```
 
 ### Examples

+ 1 - 1
examples/main/java/io/milvus/GeneralExample.java

@@ -54,7 +54,7 @@ public class GeneralExample {
         milvusClient = new MilvusServiceClient(connectParam);
     }
 
-    private static final String COLLECTION_NAME = "TEST";
+    private static final String COLLECTION_NAME = "java_sdk_example_general";
     private static final String ID_FIELD = "userID";
     private static final String VECTOR_FIELD = "userFace";
     private static final String USER_JSON_FIELD = "userJson";

+ 1 - 1
examples/main/java/io/milvus/HighLevelExample.java

@@ -58,7 +58,7 @@ public class HighLevelExample {
         milvusClient = new MilvusServiceClient(connectParam);
     }
 
-    private static final String COLLECTION_NAME = "HIGH_LEVEL";
+    private static final String COLLECTION_NAME = "java_sdk_example_hl";
     private static final String ID_FIELD = "userID";
     private static final String VECTOR_FIELD = "userFace";
     private static final String USER_JSON_FIELD = "userJson";

+ 1 - 1
examples/main/java/io/milvus/SimpleExample.java

@@ -30,7 +30,7 @@ import io.milvus.response.*;
 import java.util.*;
 
 public class SimpleExample {
-    private static final String COLLECTION_NAME = "hello_milvus";
+    private static final String COLLECTION_NAME = "java_sdk_example_simple";
     private static final String ID_FIELD = "book_id";
     private static final String VECTOR_FIELD = "book_intro";
     private static final String TITLE_FIELD = "book_title";

+ 2 - 2
examples/pom.xml

@@ -25,7 +25,7 @@
 
     <groupId>io.milvus</groupId>
     <artifactId>milvus-sdk-java-examples</artifactId>
-    <version>2.2.9</version>
+    <version>2.2.11</version>
 
     <build>
         <plugins>
@@ -64,7 +64,7 @@
         <dependency>
             <groupId>io.milvus</groupId>
             <artifactId>milvus-sdk-java</artifactId>
-            <version>2.2.9</version>
+            <version>2.2.11</version>
         </dependency>
         <dependency>
             <groupId>com.google.code.gson</groupId>

+ 2 - 2
pom.xml

@@ -25,11 +25,11 @@
 
     <groupId>io.milvus</groupId>
     <artifactId>milvus-sdk-java</artifactId>
-    <version>2.2.9</version>
+    <version>2.2.11</version>
     <packaging>jar</packaging>
 
     <name>io.milvus:milvus-sdk-java</name>
-    <description>Java SDK for Milvus, a distributed high-performance vector search engine.</description>
+    <description>Java SDK for Milvus, a distributed high-performance vector database.</description>
     <url>https://github.com/milvus-io/milvus-sdk-java</url>
 
     <licenses>

+ 10 - 0
src/main/java/io/milvus/param/dml/QueryParam.java

@@ -120,9 +120,14 @@ public class QueryParam {
         /**
          *  Graceful time for BOUNDED Consistency Level
          *
+         * Note: This parameter is deprecated from Milvus v2.2.9, user only input consistency level to search.
+         *       The time settings of different consistency levels are determined by the server side.
+         *       For this reason, this method is marked as Deprecated in Java SDK v2.2.11
+         *
          * @param gracefulTime graceful time
          * @return <code>Builder</code>
          */
+        @Deprecated
         public Builder withGracefulTime(Long gracefulTime) {
             this.gracefulTime = gracefulTime;
             return this;
@@ -200,9 +205,14 @@ public class QueryParam {
          *
          * Default value is GUARANTEE_EVENTUALLY_TS, query executes query immediately.
          *
+         * Note: This parameter is deprecated from Milvus v2.2.9, user only input consistency level to search.
+         *       The time settings of different consistency levels are determined by the server side.
+         *       For this reason, this method is marked as Deprecated in Java SDK v2.2.11
+         *
          * @param ts a timestamp value
          * @return <code>Builder</code>
          */
+        @Deprecated
         public Builder withGuaranteeTimestamp(@NonNull Long ts) {
             this.guaranteeTimestamp = ts;
             return this;

+ 10 - 0
src/main/java/io/milvus/param/dml/SearchParam.java

@@ -136,9 +136,14 @@ public class SearchParam {
         /**
          *  Graceful time for BOUNDED Consistency Level
          *
+         * Note: This parameter is deprecated from Milvus v2.2.9, user only input consistency level to search.
+         *       The time settings of different consistency levels are determined by the server side.
+         *       For this reason, this method is marked as Deprecated in Java SDK v2.2.11
+         *
          * @param gracefulTime graceful time
          * @return <code>Builder</code>
          */
+        @Deprecated
         public Builder withGracefulTime(Long gracefulTime) {
             this.gracefulTime = gracefulTime;
             return this;
@@ -288,9 +293,14 @@ public class SearchParam {
          *
          * Default value is GUARANTEE_EVENTUALLY_TS, server executes search immediately.
          *
+         * Note: This parameter is deprecated from Milvus v2.2.9, user only input consistency level to search.
+         *       The time settings of different consistency levels are determined by the server side.
+         *       For this reason, this method is marked as Deprecated in Java SDK v2.2.11
+         *
          * @param ts a timestamp value
          * @return <code>Builder</code>
          */
+        @Deprecated
         public Builder withGuaranteeTimestamp(@NonNull Long ts) {
             this.guaranteeTimestamp = ts;
             return this;