Module Values.SuggestModelSource

Container for the suggestion information returned in a SuggestResponse.

Sourcetype nonrec t = {
  1. query : String_.t option;
    (*

    The query string specified in the suggest request.

    *)
  2. found : Long.t option;
    (*

    The number of documents that were found to match the query string.

    *)
  3. suggestions : Suggestions.t option;
    (*

    The documents that match the query string.

    *)
}
Sourceval make : ?query:??? -> ?found:??? -> ?suggestions:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Long of Long.t | `String of String_.t ]) list ] list | `Long of Long.t | `String of String_.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