yii\elasticsearch\Command::mget PHP Method

mget() public method

TODO allow specifying type and index + fields
See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html
public mget ( $index, $type, $ids, array $options = [] ) : mixed
$index
$type
$ids
$options array
return mixed
    public function mget($index, $type, $ids, $options = [])
    {
        $body = Json::encode(['ids' => array_values($ids)]);
        return $this->db->get([$index, $type, '_mget'], $options, $body);
    }