Closed Xiejiadong closed 2 years ago
when you build index, you should use same metric_type as search do~
In fact, we use py to save and build the index, then we try to use C++ to search, and use vector<float>
.
I wonder how to solve this error. Thanks~
In fact, we use py to save and build the index, then we try to use C++ to search, and use
vector<float>
. I wonder how to solve this error. Thanks~
You need to set the metric type for SearchArguments, which is not included in the sample code from milvus-sdk-cpp
so far.
Maybe the below code in the test is an example of how to set metric-type
/close
@matrixji: Closing this issue.
I met an error when I try to use the change the code of the sample, the error is " Failed to search: no Available QueryNode result, filter reason [UnexpectedError] Assert "field_indexing->metrictype == search_info.metrictype" at /go/src/github.com/milvus-io/milvus/internal/core/src/query/SearchOnSealed.cpp:80".
Is it means the type of the targetvector of the search is not the same as the data?