AlgoliaSearch\Client::setForwardedFor PHP Méthode

setForwardedFor() public méthode

If the queries are made from your backend server, the IP will be the same for all of the queries. We're supporting the following HTTP header to forward the IP of your end-user to the engine, you just need to set it for each query.
See also: https://www.algolia.com/doc/faq/analytics/will-the-analytics-still-work-if-i-perform-the-search-through-my-backend
public setForwardedFor ( string $ip )
$ip string
    public function setForwardedFor($ip)
    {
        $this->context->setForwardedFor($ip);
    }