Overview
This topic describes the SearchRequestModel class and its methods. The SearchRequestModel class is the data type of the request parameter when you call the Client.Search() method. For more information, see Client class.
Class security
Thread-safe
Define a constructor
SearchRequestModel()Specify the headers parameter
Syntax
SearchRequestModel setHeaders(java.util.Map<String, String> headers)Description
Parameter | Type | Description |
headers | Map | The information about request headers. |
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 query parameter
Syntax
SearchRequestModel setQuery(SearchQuery query)Description
Parameter | Type | Description |
query | The SearchQuery type. |
Obtain the value of the query parameter
Syntax
SearchQuery getQuery()Returned result
SearchQuery query parameter value