Module Values.HitsSource

The collection of documents that match the search request.

Sourcetype nonrec t = {
  1. found : Long.t option;
    (*

    The total number of documents that match the search request.

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

    The index of the first matching document.

    *)
  3. cursor : String_.t option;
    (*

    A cursor that can be used to retrieve the next set of matching documents when you want to page through a large result set.

    *)
  4. hit : HitList.t option;
    (*

    A document that matches the search request.

    *)
}
Sourceval make : ?found:??? -> ?start:??? -> ?cursor:??? -> ?hit:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `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 ] 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