Răsfoiți Sursa

Prepare for v2.5.12 (#1542)

Signed-off-by: yhmo <yihua.mo@zilliz.com>
groot 1 lună în urmă
părinte
comite
c3c22d83c7

+ 11 - 0
CHANGELOG.md

@@ -1,5 +1,16 @@
 # Changelog
 
+## milvus-sdk-java 2.5.12 (2025-08-14)
+### Improvement
+- Alias interface support database
+- Allows upsert when autoid=true for MilvusClientV1
+- Support ignoring growing segments for MilvusClientV2.query()
+- Use cached collection schema for query by ids to avoid calling describe_collection()
+- Add objectUrls parameter for bulkimport interfaces
+- Add a method to return the current used database name for MilvusClientV2
+### Bug
+- Fix a bug of Function.multiAnalyzerParams
+
 ## milvus-sdk-java 2.5.11 (2025-07-15)
 ### Feature
 - Support uploading file to Zilliz Cloud Stage for BulkWriter

+ 7 - 7
README.md

@@ -21,7 +21,7 @@ The following table shows compatibilities between Milvus and Java SDK.
 |    >= 2.2.9    |  2.2.7 ~ 2.2.15  |
 |     2.3.x      |      2.3.11      |
 |     2.4.x      |      2.4.11      |
-|     2.5.x      |      2.5.11      |
+|     2.5.x      |      2.5.12      |
 
 ### Install Java SDK
 
@@ -33,20 +33,20 @@ You can use **Apache Maven** or **Gradle** add Milvus SDK to your project.
         <dependency>
             <groupId>io.milvus</groupId>
             <artifactId>milvus-sdk-java</artifactId>
-            <version>2.5.11</version>
+            <version>2.5.12</version>
         </dependency>
        ```
 
    - Gradle/Groovy
 
         ```groovy
-        implementation 'io.milvus:milvus-sdk-java:2.5.11'
+        implementation 'io.milvus:milvus-sdk-java:2.5.12'
         ```
 
    - Gradle/Kotlin
 
         ```kotlin
-        implementation("io.milvus:milvus-sdk-java:2.5.11")
+        implementation("io.milvus:milvus-sdk-java:2.5.12")
         ```
 
 From v2.5.2, milvus Java SDK is split into two packages: milvus-sdk-java and milvus-sdk-java-bulkwriter, because BulkWriter requires quite a lot of dependencies. If you don't need BulkWriter tool, you can ignore the milvus-sdk-java-bulkwriter package.
@@ -58,20 +58,20 @@ To use BulkWriter, import milvus-sdk-java-bulkwriter to your project.
      <dependency>
          <groupId>io.milvus</groupId>
          <artifactId>milvus-sdk-java-bulkwriter</artifactId>
-         <version>2.5.11</version>
+         <version>2.5.12</version>
      </dependency>
     ```
 
 - Gradle/Groovy
 
      ```groovy
-     implementation 'io.milvus:milvus-sdk-java-bulkwriter:2.5.11'
+     implementation 'io.milvus:milvus-sdk-java-bulkwriter:2.5.12'
      ```
 
 - Gradle/Kotlin
 
      ```kotlin
-     implementation("io.milvus:milvus-sdk-java-bulkwriter:2.5.11")
+     implementation("io.milvus:milvus-sdk-java-bulkwriter:2.5.12")
      ```     
    
 ### Examples

+ 1 - 1
examples/pom.xml

@@ -42,7 +42,7 @@
     </build>
 
     <properties>
-        <revision>2.5.11</revision>
+        <revision>2.5.12</revision>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 

+ 19 - 0
examples/src/main/java/io/milvus/v1/ArrayFieldExample.java

@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 package io.milvus.v1;
 
 import com.google.gson.Gson;

+ 19 - 0
examples/src/main/java/io/milvus/v1/NullAndDefaultExample.java

@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 package io.milvus.v1;
 
 import com.google.gson.Gson;

+ 19 - 0
examples/src/main/java/io/milvus/v2/ArrayFieldExample.java

@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 package io.milvus.v2;
 
 import com.google.gson.Gson;

+ 19 - 0
examples/src/main/java/io/milvus/v2/FullTextSearchExample.java

@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 package io.milvus.v2;
 
 import com.google.gson.Gson;

+ 19 - 0
examples/src/main/java/io/milvus/v2/NullAndDefaultExample.java

@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 package io.milvus.v2;
 
 import com.google.gson.Gson;

+ 19 - 0
examples/src/main/java/io/milvus/v2/TextMatchExample.java

@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 package io.milvus.v2;
 
 import com.google.gson.Gson;

+ 19 - 0
examples/src/main/java/io/milvus/v2/bulkwriter/CsvDataObject.java

@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 package io.milvus.v2.bulkwriter;
 
 import com.fasterxml.jackson.annotation.JsonProperty;

+ 1 - 1
pom.xml

@@ -82,7 +82,7 @@
     </repositories>
 
     <properties>
-        <revision>2.5.11</revision>
+        <revision>2.5.12</revision>
         <maven.compiler.source>8</maven.compiler.source>
         <maven.compiler.target>8</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>