AggRange

August 4, 2026 ยท View on GitHub

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

Properties

NameTypeDescriptionNotes
var_fieldstrAttribute to group by
rangesList[Range]Ordered list of ranges
keyedboolReturn 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]