milvus-java-sdk search fail #4594
-
milvus version: 0.10.4 package com.mozhe;
import com.google.common.util.concurrent.ListenableFuture; import java.util.ArrayList; // This is a simple example demonstrating how to use Milvus Java SDK.
} Error info: Exception in thread "main" java.lang.ClassCastException: class java.lang.Double cannot be cast to class java.lang.Float (java.lang.Double and java.lang.Float are in module java.base of loader 'bootstrap') |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In our original example: This will raise the error: |
Beta Was this translation helpful? Give feedback.
In our original example:
List<List<Float>> vectorsToSearch = vectors.subList(0, searchBatchSize);
What you are using:
List<List<Double>> vectors = map.get("vectors");
This will raise the error:
class java.lang.Double cannot be cast to class java.lang.Float