Client class

更新时间:
复制 MD 格式

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

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

SearchRequestModel

A SearchRequestModel object.

Problem description

  • Exception