Elastica\Query::setStoredFields PHP Method

setStoredFields() public method

Sets the fields to be returned by the search NOTICE php will encode modified(or named keys) array into object format in json format request so the fields array must a sequence(list) type of array.
public setStoredFields ( array $fields )
$fields array Fields to be returned
    public function setStoredFields(array $fields)
    {
        return $this->setParam('stored_fields', $fields);
    }