Module Values.FieldStatsSource

The statistics for a field calculated in the request.

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

    The minimum value found in the specified field in the result set. If the field is numeric (int, int-array, double, or double-array), min is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, min is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

    *)
  2. max : String_.t option;
    (*

    The maximum value found in the specified field in the result set. If the field is numeric (int, int-array, double, or double-array), max is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, max is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

    *)
  3. count : Long.t option;
    (*

    The number of documents that contain a value in the specified field in the result set.

    *)
  4. missing : Long.t option;
    (*

    The number of documents that do not contain a value in the specified field in the result set.

    *)
  5. sum : Double.t option;
    (*

    The sum of the field values across the documents in the result set. null for date fields.

    *)
  6. sumOfSquares : Double.t option;
    (*

    The sum of all field values in the result set squared.

    *)
  7. mean : String_.t option;
    (*

    The average of the values found in the specified field in the result set. If the field is numeric (int, int-array, double, or double-array), mean is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, mean is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

    *)
  8. stddev : Double.t option;
    (*

    The standard deviation of the values in the specified field in the result set.

    *)
}
Sourceval make : ?min:??? -> ?max:??? -> ?count:??? -> ?missing:??? -> ?sum:??? -> ?sumOfSquares:??? -> ?mean:??? -> ?stddev:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Double of Double.t | `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