getByQueryQuery method
Search the site for occurrences of the query string. The maximum number of results returned is equal to the maximum page size of 100. To return subsequent pages, use the paginated overload.
Implementation
Future<SearchResponse> getByQueryQuery(
String query,
) async {
final response = await _context.client.get(
Uri.https(
authority,
'/search',
{
'query': query,
},
),
);
ClientException.checkIsSuccessStatusCode(response);
return SearchResponse.fromJson(json.decode(response.body));
}