我要评分
获取效率
正确性
完整性
易理解

Save

API Definition

int Save(const char *path) const;

Function

Saves a searcher to a specified path in a single process.

Parameters

Parameter

Data Type

Description

Value Range

path

const char *

Path for storing the searcher.

The length must be less than 199 characters.

Return Value

Data Type

Description

int

If the parameter value is not within the value range or an I/O problem such as incorrect save path occurs, −1 is returned. If this API is called before calling BuildSearcher, −1 is returned. Otherwise, 0 is returned.