Browse Source

Merge remote-tracking branch 'origin/master' into 0.7.0

youny626 5 years ago
parent
commit
0ae68f2313

+ 11 - 0
CHANGELOG.md

@@ -1,5 +1,16 @@
 # Changelog     
 
+## milvus-sdk-java 0.6.0 (2020-03-31)
+
+### Bug
+---
+- \#1641 - Fix incorrect error logging message
+- \#1642 - Fix compilation error of ByteBuffer
+
+## Feature
+---
+- \#1603 - Add binary metrics: Substructure & Superstructure
+
 ## milvus-sdk-java 0.5.0 (2020-03-11)
 
 ## milvus-sdk-java 0.4.1 (2019-12-16)

+ 5 - 4
README.md

@@ -8,8 +8,8 @@ Java SDK for [Milvus](https://github.com/milvus-io/milvus). To contribute code t
 
 ### Prerequisites
 
-    - Java 8 or higher
-    - Apache Maven or Gradle/Grails
+    -   Java 8 or higher
+    -   Apache Maven or Gradle/Grails
 
 The following table shows compatibilities between Milvus and Java SDK.
 
@@ -21,6 +21,7 @@ The following table shows compatibilities between Milvus and Java SDK.
    |     0.5.3      |    0.3.0    |
    |     0.6.0      |    0.4.1    |
    |     0.7.0      |    0.5.0    |
+   |     0.7.1      |    0.6.0    |
 
 ### Install Java SDK
 
@@ -32,14 +33,14 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK.
         <dependency>
             <groupId>io.milvus</groupId>
             <artifactId>milvus-sdk-java</artifactId>
-            <version>0.5.0</version>
+            <version>0.6.0</version>
         </dependency>
        ```
 
    - Gradle/Grails
 
         ```gradle
-        compile 'io.milvus:milvus-sdk-java:0.5.0'
+        compile 'io.milvus:milvus-sdk-java:0.6.0'
         ```
 
 ### Examples

+ 1 - 1
examples/pom.xml

@@ -63,7 +63,7 @@
         <dependency>
             <groupId>io.milvus</groupId>
             <artifactId>milvus-sdk-java</artifactId>
-            <version>0.6.0-SNAPSHOT</version>
+            <version>0.6.0</version>
         </dependency>
         <dependency>
             <groupId>com.google.code.gson</groupId>

+ 3 - 0
examples/src/main/java/MilvusClientExample.java

@@ -165,6 +165,9 @@ public class MilvusClientExample {
         }
       }
     }
+    // You can also get result ids and distances separately
+    List<List<Long>> resultIds = searchResponse.getResultIdsList();
+    List<List<Float>> resultDistances = searchResponse.getResultDistancesList();
 
     // Delete the first 5 of vectors you just searched
     Response deleteByIdsResponse =

+ 1 - 1
pom.xml

@@ -25,7 +25,7 @@
 
     <groupId>io.milvus</groupId>
     <artifactId>milvus-sdk-java</artifactId>
-    <version>0.6.0-SNAPSHOT</version>
+    <version>0.6.0</version>
     <packaging>jar</packaging>
 
     <name>io.milvus:milvus-sdk-java</name>

+ 1 - 1
src/main/java/io/milvus/client/MilvusClient.java

@@ -28,7 +28,7 @@ public interface MilvusClient {
 
   String clientVersion = "0.6.0";
 
-  /** @return current Milvus client version: 0.5.0 */
+  /** @return current Milvus client version: 0.6.0 */
   default String getClientVersion() {
     return clientVersion;
   }