searchWithHttpInfo method
Hybrid search over the org's own corpora
Is the typed op behind POST /v1/search. It does exactly two things the in-process entry point must not do: resolve the tenant from the validated principal, and refuse when there is none. Everything else is ForOrg.
Note: This method returns the HTTP Response.
Parameters:
- Request request (required):
Implementation
Future<Response> searchWithHttpInfo(Request request,) async {
// ignore: prefer_const_declarations
final path = r'/v1/search';
// ignore: prefer_final_locals
Object? postBody = request;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}