AddCodeBooks
API definition |
APP_ERROR AddCodeBooks(const std::string& codeBooksPath); |
|---|---|
Function |
Loads the generated codebook to the index. |
Input |
const std::string& codeBooksPath: path of the generated codebook |
Output |
N/A |
Return value |
APP_ERROR: return status. For details, see Return Code Reference. |
Restrictions |
This API can be used only when the index is initialized in AKMode mode. Ensure that the directory where the codeBooksPath file is located exists and the file content is a valid codebook. For security hardening, the directory level cannot contain soft links. |
Parent topic: AscendIndexGreat