AggDateHistogram

October 23, 2025 ยท View on GitHub

Object to use histograms in aggregation, i.e., grouping search results by histogram values

Properties

NameTypeDescriptionNotes
var_fieldstrField to group by
intervalintInterval of the histogram values
offsetintOffset of the histogram values. Default value is 0.[optional]
keyedboolFlag that defines if a search response will be a dictionary with the bucket keys. Default value is false.[optional]

Example

from manticoresearch.models.agg_date_histogram import AggDateHistogram

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

# convert the object into a dict
agg_date_histogram_dict = agg_date_histogram_instance.to_dict()
# create an instance of AggDateHistogram from a dict
agg_date_histogram_from_dict = AggDateHistogram.from_dict(agg_date_histogram_dict)

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