public function query($values) { $query = ['has_parent' => ['type' => $this->parentType, 'filter' => ['match_all' => []], 'inner_hits' => ['_source' => $this->fields]]]; return $query; }