Query.php
public function from($index, $type = null)
    {
        $this->index = $index;
        $this->type = $type;
        return $this;
    }
public function from($index, $type = null)
    {
        $this->index = $index;
        $this->type = $type;
        return $this;
    }
public function from ( $ index , $ type = null ) { $ this -> index = $ index ; $ this -> type = $ type ; return $ this ; }
Sets the index and type to retrieve documents from.
@param string|array $index The index to retrieve data from. This can be a string representing a single index
or a an array of multiple indexes. If this is `null` it means that all indexes are being queried.
@param string|array $type The type to retrieve data from. This can be a string representing a single type
or a an array of multiple types. If this is `null` it means that all types are being queried.
@return $this the query object itself
@see http://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html#search-multi-index-type
Sets the index and type to retrieve documents from .