api/MarkLogic/MLPHP/SearchResults.php
public function getResultByURI($uri)
    {
        $res = null;
        foreach ($this->results as $result) {
            if ($result->getURI() === $uri) {
                $res = $result;
            }
        }
        return $res;
    }
public function getResultByURI($uri)
    {
        $res = null;
        foreach ($this->results as $result) {
            if ($result->getURI() === $uri) {
                $res = $result;
            }
        }
        return $res;
    }
Get a search result corresponding to a URI.

@param string $uri A document URI.
@return SearchResult A search result object or null if none found.