Module Values.HitSource

Information about a document that matches the search request.

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

    The document ID of a document that matches the search request.

    *)
  2. fields : Fields.t option;
    (*

    The fields returned from a document that matches the search request.

    *)
  3. exprs : Exprs.t option;
    (*

    The expressions returned from a document that matches the search request.

    *)
  4. highlights : Highlights.t option;
    (*

    The highlights returned from a document that matches the search request.

    *)
}
Sourceval make : ?id:??? -> ?fields:??? -> ?exprs:??? -> ?highlights:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of String_.t ] * [> `List of [> `String of String_.t ] list | `String of String_.t ]) list | `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