AggHistogram

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_histogram import AggHistogram

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

# convert the object into a dict
agg_histogram_dict = agg_histogram_instance.to_dict()
# create an instance of AggHistogram from a dict
agg_histogram_from_dict = AggHistogram.from_dict(agg_histogram_dict)

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