AddCodeBooks
API定义  | 
APP_ERROR AddCodeBooks(const std::string& codeBooksPath);  | 
|---|---|
功能描述  | 
加载已经生成完毕的码本到Index。  | 
输入  | 
const std::string& codeBooksPath:加载已经生成完毕的码本路径。  | 
输出  | 
无  | 
返回值  | 
APP_ERROR:调用返回状态,具体请参见接口调用返回值参考。  | 
约束说明  | 
该接口仅能在索引初始化“AKMode”时使用。 用户应该保证“codeBooksPath”文件路径所在的目录存在,且该文件内容必须为有效的码本。出于安全加固考虑,目录层级中不能含有软链接。  | 
父主题: AscendIndexGreat