AggTerms
October 23, 2025 ยท View on GitHub
Object containing term fields to aggregate on
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| var_field | str | Name of attribute to aggregate by | |
| size | int | Maximum number of buckets in the result | [optional] |
Example
from manticoresearch.models.agg_terms import AggTerms
# TODO update the JSON string below
json = "{}"
# create an instance of AggTerms from a JSON string
agg_terms_instance = AggTerms.from_json(json)
# print the JSON string representation of the object
print(AggTerms.to_json())
# convert the object into a dict
agg_terms_dict = agg_terms_instance.to_dict()
# create an instance of AggTerms from a dict
agg_terms_from_dict = AggTerms.from_dict(agg_terms_dict)