def __init__(self,
                 type=None,
                 results=None,
                 matching_results=None,
                 aggregations=None,
                 size=None,
                 hits=None):
        """
        Initialize a TopHits object.

        :param str type: (optional) The type of aggregation command used. For example:
        term, filter, max, min, etc.
        :param list[AggregationResult] results: (optional) Array of aggregation results.
        :param int matching_results: (optional) Number of matching results.
        :param list[QueryAggregation] aggregations: (optional) Aggregations returned by
        the Discovery service.
        :param int size: (optional) Number of top hits returned by the aggregation.
        :param TopHitsResults hits: (optional)
        """
        self.size = size
        self.hits = hits
def __init__ ( self , type = None , results = None , matching_results = None , aggregations = None , size = None , hits = None ) : self . size = size self . hits = hits
Initialize a TopHits object.

        :param str type: (optional) The type of aggregation command used. For example:
        term, filter, max, min, etc.
        :param list[AggregationResult] results: (optional) Array of aggregation results.
        :param int matching_results: (optional) Number of matching results.
        :param list[QueryAggregation] aggregations: (optional) Aggregations returned by
        the Discovery service.
        :param int size: (optional) Number of top hits returned by the aggregation.
        :param TopHitsResults hits: (optional)