SetEf
API Definition
int SetEf(int ef);
Function
Sets the size of the candidate node list during search.
Parameters
Parameter |
Data Type |
Description |
Value Range |
|---|---|---|---|
ef |
int |
Size of the candidate node list during search. |
[1, nb], where nb indicates the data volume of the vector base library. |
Return Value
Data Type |
Description |
|---|---|
int |
If the parameter value is not within the value range, −1 is returned. If this API is called before BuildSearcher or Load/Deserialize/LoadGraph is called, −1 is returned. Otherwise, 0 is returned. |
Parent topic: C++