Object containing term fields to aggregate on
Name | Type | Description | Notes |
---|---|---|---|
field | str | Name of attribute to aggregate by | |
size | int | Maximum number of buckets in the result | [optional] |
from manticoresearch.models.agg_terms import AggTerms
# 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)