Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.23 KB

File metadata and controls

33 lines (24 loc) · 1.23 KB

AggHistogram

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

Properties

Name Type Description Notes
var_field str Field to group by
interval int Interval of the histogram values
offset int Offset of the histogram values. Default value is 0. [optional]
keyed bool Flag 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]