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
| Name | Description |
|---|---|
| typedef struct OH_Retrieval_Query OH_Retrieval_Query | Defines a retrieval keyword. Currently, only plaintext retrieval is supported. |
| 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. |