目录

aip_retrieval_query.h

Overview

Provides APIs related to retrieval queries.

File to include: #include "dataaugmentation/retrieval/aip_retrieval_query.h"

Library: libretrieval_ndk.so

System capability: SystemCapability.DataAugmentation.Retrieval

Since: 6.0.0(20)

Related module: Retrieval

Summary

[h2]Types

Name Description
typedef struct OH_Retrieval_Query OH_Retrieval_Query Defines a retrieval keyword. Currently, only plaintext retrieval is supported.

[h2]Functions

Name Description
OH_Retrieval_Query * OH_Retrieval_CreateQuery () Creates a retrieval keyword as the input parameter of the retrieval API.
int OH_Retrieval_DestroyQuery (OH_Retrieval_Query *query) Destroys the retrieval keyword obtained through OH_Retrieval_CreateQuery.
int OH_Retrieval_SetOriginalQuestion (OH_Retrieval_Query *query, const char *question) Sets the retrieval keyword in OH_Retrieval_Query. The question parameter is the plaintext string to be retrieved and is used to specify retrieval content. This parameter cannot be empty and can contain a maximum of 512 characters.