src/SearchAbstract.php
protected function getResult(\SphinxClient $sphinxClient)
    {
        $result = $sphinxClient->RunQueries();

        if (false === $result) {
            throw new \Exception(
                $sphinxClient->getLastError()
            );
        }
        if ($sphinxClient->GetLastWarning()) {
            throw new \Exception(
                $sphinxClient->GetLastWarning()
            );
        }

        if (false === $result) {
            throw new \Exception(
                $sphinxClient->getLastError()
            );
        }
        if ($sphinxClient->GetLastWarning()) {
            throw new \Exception(
                $sphinxClient->GetLastWarning()
            );
        }

        //Suporte ao formato inicial de unica query
        if (count($result) === 1) {
            return current($result);
        }

        return $result;
    }
protected function getResult(\SphinxClient $sphinxClient)
    {
        $result = $sphinxClient->RunQueries();

        if (false === $result) {
            throw new \Exception(
                $sphinxClient->getLastError()
            );
        }
        if ($sphinxClient->GetLastWarning()) {
            throw new \Exception(
                $sphinxClient->GetLastWarning()
            );
        }

        if (false === $result) {
            throw new \Exception(
                $sphinxClient->getLastError()
            );
        }
        if ($sphinxClient->GetLastWarning()) {
            throw new \Exception(
                $sphinxClient->GetLastWarning()
            );
        }

        //Suporte ao formato inicial de unica query
        if (count($result) === 1) {
            return current($result);
        }

        return $result;
    }
protected function getResult ( \ SphinxClient $ sphinxClient ) { $ result = $ sphinxClient -> RunQueries ( ) ; if ( false === $ result ) { throw new \ Exception ( $ sphinxClient -> getLastError ( ) ) ; } if ( $ sphinxClient -> GetLastWarning ( ) ) { throw new \ Exception ( $ sphinxClient -> GetLastWarning ( ) ) ; } if ( false === $ result ) { throw new \ Exception ( $ sphinxClient -> getLastError ( ) ) ; } if ( $ sphinxClient -> GetLastWarning ( ) ) { throw new \ Exception ( $ sphinxClient -> GetLastWarning ( ) ) ; } //Suporte ao formato inicial de unica query if ( count ( $ result ) === 1 ) { return current ( $ result ) ; } return $ result ; }
RunQueries() + validate.

- Single Query: Resultados da Query

- Multi Query:  Array de Resultados das Querys

Formato de cada Resultado:

<code>
//Results
array(
array(
'id'     => 12345,
'weight' => 30,
'attrs'  => array(...)
),
array(
'id'     => 23456,
'weight' => 20,
'attrs'  => array(...)
),
...
);
</code>

@param \SphinxClient $sphinxClient

@throws \Exception

@return array
RunQueries () + validate .