getByQueryQuery method

Future<SearchResponse> getByQueryQuery(
  1. String query
)

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));
}