Client class
Introduction
This topic describes the features and methods of the Client class, which is used to push and search for data.
Thread safety
The Client class is not thread-safe.
Constructor
Client(Config config)
Parameters
Parameter Name | Type | Description |
config | A Config class object. |
Push data
API definition
PushDocumentsResponseModel pushDocuments(String dataSourceName, String keyField, PushDocumentsRequestModel request)Parameters
Parameter Name | Type | Description |
dataSourceName | String | The name of the index table. |
keyField | String | The primary key of the index table. |
request | PushDocumentsRequestModel | The structure of the documents to push. |
Problem description
Exception
Search for data
Interface definition
SearchResponseModel Search(SearchRequestModel request)Parameters
Parameter Name | Type | Description |
request | A SearchRequestModel object. |
Problem description
Exception