Module Values.SuggestionSource

A single query suggestion.

Sourcetype nonrec t = {
  1. id : ResultId.t option;
    (*

    The UUID (universally unique identifier) of a single query suggestion.

    *)
  2. value : SuggestionValue.t option;
    (*

    The value for the UUID (universally unique identifier) of a single query suggestion. The value is the text string of a suggestion.

    *)
  3. sourceDocuments : SourceDocuments.t option;
    (*

    The list of document IDs and their fields/attributes that are used for a single query suggestion, if document fields set to use for query suggestions.

    *)
}
Sourceval make : ?id:??? -> ?value:??? -> ?sourceDocuments:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `String of DocumentAttributeKey.t | `Structure of (string * [> `String of DocumentAttributeKey.t | `Structure of (string * [> `List of [> `String of String_.t ] list | `Long of Long.t | `String of DocumentAttributeStringValue.t | `Timestamp of Timestamp.t ]) list ]) list ] list | `String of String_.t ]) list ] list | `String of ResultId.t | `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `Integer of Integer.t ]) list ] list | `String of String_.t ]) list ]) list ]) 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