Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.12 KB

File metadata and controls

32 lines (23 loc) · 1.12 KB

AggRange

Group documents into custom numeric or date ranges. Use with the range or date_range aggregation type.

Properties

Name Type Description Notes
var_field str Attribute to group by
ranges List[Range] Ordered list of ranges
keyed bool Return buckets as an object keyed by range label when true, or as an array when false. Default is false. [optional]

Example

from manticoresearch.models.agg_range import AggRange

# TODO update the JSON string below
json = "{}"
# create an instance of AggRange from a JSON string
agg_range_instance = AggRange.from_json(json)
# print the JSON string representation of the object
print(AggRange.to_json())

# convert the object into a dict
agg_range_dict = agg_range_instance.to_dict()
# create an instance of AggRange from a dict
agg_range_from_dict = AggRange.from_dict(agg_range_dict)

[Back to Model list] [Back to API list] [Back to README]