SphinxClient::SetSelect PHP Method

SetSelect() public method

set select-list (attributes or expressions), SQL-like syntax
public SetSelect ( $select )
    function SetSelect($select)
    {
        assert(is_string($select));
        $this->_select = $select;
    }

Usage Example

 /**
  * Sets the select clause, listing specific attributes to fetch, and expressions to compute and fetch.
  *
  * @param $clause SQL-like clause.
  * @return SphinxSearch_Abstract_List
  * @throws Exception
  */
 public function setSelect($clause)
 {
     $result = $this->SphinxClient->SetSelect($clause);
     if ($result === false) {
         throw new Exception("Error on setting select \"" . $clause . "\":\n" . $this->SphinxClient->GetLastError());
     }
     return $this;
 }
All Usage Examples Of SphinxClient::SetSelect