Module Values.SearchResponseSource

The result of a Search request. Contains the documents that match the specified search criteria and any requested fields, highlights, and facet information.

Sourcetype nonrec t = {
  1. status : SearchStatus.t option;
    (*

    The status information returned for the search request.

    *)
  2. hits : Hits.t option;
    (*

    The documents that match the search criteria.

    *)
  3. facets : Facets.t option;
    (*

    The requested facet information.

    *)
  4. stats : Stats.t option;
    (*

    The requested field statistics information.

    *)
}
Sourcetype nonrec error = [
  1. | `SearchException of SearchException.t
  2. | `Unknown_operation_error of string * string option
]
Sourceval make : ?status:??? -> ?hits:??? -> ?facets:??? -> ?stats:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `SearchException of SearchException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `SearchException of SearchException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of String_.t ] * [> `Structure of (string * [> `Double of Double.t | `List of [> `Structure of (string * [> `Long of Long.t | `String of String_.t ]) list ] list | `Long of Long.t | `String of String_.t ]) list ]) list | `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 ]) 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