I have a Collection whose schema has an INT64 id field named template_id and a FLOAT VECTOR field named template_data
When I use milvus::client::DescribeIndex(collection_name, "template_data", index_desc) it retrieves the IndexDesc object, but the index_desc.IndexName() method is returning the FieldName, not the IndexName.
if(hasCollection){
std::cout << "Collection '" << collection_name << "' in Milvus DB\n";
milvus::CollectionStat stats;
status = client->GetCollectionStatistics(collection_name, stats);
CheckStatus("Failed to Fetch Collection's Statistics: ", status);
std::cout << "Collection Rows: " << stats.RowCount() << "\n";
milvus::IndexDesc index_desc;
status = client->DescribeIndex(collection_name, "template_data", index_desc);
CheckStatus("Failed to retrieve Index Description: ", status);
std::cout << index_desc.IndexName() << ": " << index_desc.FieldName() << "\n";
}
The following output is obtained:
Is this the expected output? If it is, why have two differente methods (FieldName and IndexName) for the same purpose?
I have a Collection whose schema has an INT64 id field named template_id and a FLOAT VECTOR field named template_data
When I use
milvus::client::DescribeIndex(collection_name, "template_data", index_desc)
it retrieves theIndexDesc
object, but theindex_desc.IndexName()
method is returning the FieldName, not the IndexName.The following output is obtained:![image](https://github.com/milvus-io/milvus-sdk-cpp/assets/4944785/012d1b95-0ca1-40eb-88dc-e6be0cf3d5ad)
Is this the expected output? If it is, why have two differente methods (
FieldName
andIndexName
) for the same purpose?