protected function __query($index, $type = null, array $query = []) {
        $result = $this->client->search([
            'index' => $index,
            'body' => array_merge_recursive($query, $this->additionalQuery())
                ] + ($type ? ['type' => $type] : []));
        return $this->_makeResult($result);
    }