Module Values.SuggestQueryResultSource

The suggested query results.

Sourcetype nonrec t = {
  1. queryId : SuggestQueryResultQueryIdString.t option;
    (*

    QueryId can be used to complete a follow up query through the SearchText API. The QueryId retains context from the original Suggest request such as filters, political view and language. See the SearchText API documentation for more details SearchText API docs. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. The fields QueryText, and QueryID are mutually exclusive.

    *)
  2. queryType : QueryType.t option;
    (*

    The query type. Category queries will search for places which have an entry matching the given category, for example "doctor office". BusinessChain queries will search for instances of a given business. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

    *)
}
Sourceval make : ?queryId:??? -> ?queryType:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of SuggestQueryResultQueryIdString.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