Module Values.FacetResult

The facet values for the documents in the response.

Sourcetype nonrec t = {
  1. documentAttributeKey : DocumentAttributeKey.t option;
    (*

    The key for the facet values. This is the same as the DocumentAttributeKey provided in the query.

    *)
  2. documentAttributeValueType : DocumentAttributeValueType.t option;
    (*

    The data type of the facet value. This is the same as the type defined for the index field when it was created.

    *)
  3. documentAttributeValueCountPairs : DocumentAttributeValueCountPairList.t option;
    (*

    An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.

    *)
}
Sourceval make : ?documentAttributeKey:DocumentAttributeKey.t -> ?documentAttributeValueType:DocumentAttributeValueType.t -> ?documentAttributeValueCountPairs:DocumentAttributeValueCountPairList.t -> unit -> t
Sourceval to_value : t -> Awso.Botodata.value
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t