lib/Elastica/AbstractUpdateAction.php
public function setIndex($index)
    {
        if ($index instanceof Index) {
            $index = $index->getName();
        }

        return $this->setParam('_index', $index);
    }
public function setIndex($index)
    {
        if ($index instanceof Index) {
            $index = $index->getName();
        }

        return $this->setParam('_index', $index);
    }
public function setIndex ( $ index ) { if ( $ index instanceof Index ) { $ index = $ index -> getName ( ) ; } return $ this -> setParam ( '_index' , $ index ) ; }
Sets the document index name.

@param Index|string $index Index name

@return $this
Sets the document index name .