Overview
This topic describes the SearchQuery class and its methods that are used to build the SearchRequestModel object. For more information, see SearchRequestModel class.
Define a constructor
SearchQuery()Parameters
Parameter | Type | Description |
query | String | Applicable to queries in Retrieval Engine Edition. For more information about supported clauses, see the related topics. |
sql | String | Applicable to SQL queries. For more information about supported clauses, see the related topics. |
Specify the query parameter
Syntax
SearchQuery setQuery(String query)Description
Parameter | Type | Description |
query | String | Applicable to queries in Retrieval Engine Edition. For more information about supported clauses, see the related topics. |
Obtain the value of the query parameter
Syntax
String getQuery()Returned result●String query parameter value
Specify the sql parameter
Syntax
SearchQuery setSql(String sql)Parameters
Parameter | Type | Description |
sql | String | Applicable to SQL queries. For more information about supported clauses, see the related topics. |
Obtain the value of the sql parameter
Syntax
String getSql()Returned result●String sql parameter value