from() public method
Sets the index and type to retrieve documents from.
| public $this from ( $index, $type = null ) | ||
|---|---|---|
| $index | string|array | 
 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   |  
| $type | string|array | 
 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   |  
| return | $this | 
 The query object itself  |  
Please login to continue.