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

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.