Parameters
Both
query_params and key are required. There are no longer default values for these arguments.Returns
QueryResults: Results top_k containing decrypted nearest neighbors IDs and distances.
Exceptions
std::invalid_argument
std::invalid_argument
- Throws if the query vectors have incompatible dimensions with the index.
- Throws if the index was not created or loaded yet.
std::runtime_error
std::runtime_error
- Throws if the query could not be executed.
- Throws if the supplied key context lacks read permission.