AlgoliaSearch\Client::setForwardedFor PHP Метод

setForwardedFor() публичный метод

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.
См. также: 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);
    }