Rate This Document
Findability
Accuracy
Completeness
Readability

Save

API Definition

int Save(const char *path) const;

Function

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

Parameters

Parameter

Description

Data Type

Value Range

path

Path for storing the searcher.

const char *

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.