public function index($indexName = null, $using = null) { $this->attributes['index'] = $indexName ?: true; $this->attributes['index_using'] = $using; return $this; }