Introduction
This topic describes the features and methods of the SearchRequestModel class. This class is a parameter for the Client.Search() method.
Thread safety
The SearchRequestModel class is thread-safe.
Constructor
SearchRequestModel()Set the Headers parameter
Interface description
SearchRequestModel setHeaders(java.util.Map<String, String> headers)Parameters
Parameter Name | Type | Description |
headers | Map | The request header information. |
Get the Headers parameter
Description
java.util.Map<String, String> getHeaders()Returns
Headers (java.util.Map<String, String>)
Set the Query parameter
API description
SearchRequestModel setQuery(SearchQuery query)Parameters
Parameter Name | Type | Description |
query | A SearchQuery object. |
Get the Query parameter
Description
SearchQuery getQuery()Returns
The value of the Query parameter.
该文章对您有帮助吗?