All Products
Search
Document Center

OpenSearch:SearchResponseModel class

Last Updated:Feb 27, 2024

Overview

This topic describes the SearchResponseModel class and its methods. The SearchResponseModel class is the return object of the Client.Search() method. For more information, see Client class.

Class security

Thread-safe

Define a constructor

SearchResponseModel()

Specify the headers parameter

Syntax

SearchRequestModel setHeaders(java.util.Map<String, String> headers)

Description

Parameter

Type

Description

headers

Map

The header information of the SearchResponseModel object.

Obtain the value of the headers parameter

Syntax

java.util.Map<String, String> getHeaders()

Returned result

  • java.util.Map<String, String> headers parameter value

Specify the body parameter

Syntax

SearchResponseModel setBody(String body)

Description

Parameter

Type

Description

body

String

Queries results.

Obtain the value of the body parameter

Syntax

String getBody()

Returned result

  • String body parameter value