public function __construct(Version $version = null) { $this->_version = $version ?: new Version\Latest(); $this->addDSL(new DSL\Query()); $this->addDSL(new DSL\Aggregation()); $this->addDSL(new DSL\Suggest()); }