Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Index Describe BUG #258

Open
luisfmnunes opened this issue Jan 31, 2024 · 0 comments
Open

Possible Index Describe BUG #258

luisfmnunes opened this issue Jan 31, 2024 · 0 comments

Comments

@luisfmnunes
Copy link

luisfmnunes commented Jan 31, 2024

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:
image

Is this the expected output? If it is, why have two differente methods (FieldName and IndexName) for the same purpose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant