$_params
$_params : array
Params.
Runs the child query with an estimated hits size, and out of the hit docs, aggregates it into parent docs.
This function can be used to handle params for queries, filter
__construct(string|\Elastica\Query|\Elastica\Query\AbstractQuery $query, string $type = null)
Construct topChildren query.
string|\Elastica\Query|\Elastica\Query\AbstractQuery | $query | |
string | $type | Parent document type |
setQuery(string|\Elastica\Query|\Elastica\Query\AbstractQuery $query) : $this
Sets query object.
string|\Elastica\Query|\Elastica\Query\AbstractQuery | $query |