Module Values.SearchSampleQueriesResponseSource

Searches sample queries and returns a list of sample queries that are sorted by relevance. To search for sample queries, provide a natural language SearchPhrase in English.

Sourcetype nonrec t = {
  1. searchResults : SearchSampleQueriesSearchResults.t option;
    (*

    A list of objects containing the search results ordered from most relevant to least relevant.

    *)
  2. nextToken : PaginationToken.t option;
    (*

    A token you can use to get the next page of results.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidParameterException of InvalidParameterException.t
  2. | `OperationNotPermittedException of OperationNotPermittedException.t
  3. | `UnsupportedOperationException of UnsupportedOperationException.t
  4. | `Unknown_operation_error of string * string option
]
Sourceval make : ?searchResults:??? -> ?nextToken:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidParameterException of unit | `OperationNotPermittedException of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationException of unit ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidParameterException of unit | `OperationNotPermittedException of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationException of unit ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Float of SampleQueryRelevance.t | `String of SampleQueryName.t ]) list ] list | `String of PaginationToken.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t