aclfvCreateSearchInput

Description

Creates data of the aclfvSearchInput type as the input of a search task. This API is synchronous.

To destroy data of the aclfvSearchInput type, call aclfvDestroySearchInput.

The Ascend 310 AI Processor does not support this API.

The Ascend 910 AI Processor does not support this API.

Prototype

aclfvSearchInput *aclfvCreateSearchInput(aclfvQueryTable *queryTable, aclfvRepoRange *repoRange, uint32_t topk)

Parameters

Parameter

Input/Output

Description

queryTable

Input

Pointer to the input query table.

Call aclfvCreateQueryTable to create data of the aclfvQueryTable type.

repoRange

Input

Pointer to the repository range to search.

Call aclfvCreateRepoRange to create data of the aclfvRepoRange type in advance.

topk

Input

Number of results to return per search request

Returns