You are here

protected function Acquia_Search_Service::add_request_id in Acquia Search 6

3 calls to Acquia_Search_Service::add_request_id()
Acquia_Search_Service::makeServletRequest in ./Acquia_Search_Service.php
Make a request to a servlet (a path) that's not a standard path.
Acquia_Search_Service::_sendRawGet in ./Acquia_Search_Service.php
Central method for making a get operation against this Solr Server
Acquia_Search_Service::_sendRawPost in ./Acquia_Search_Service.php
Central method for making a post operation against this Solr Server

File

./Acquia_Search_Service.php, line 14

Class

Acquia_Search_Service
Starting point for the Solr API. Represents a Solr server resource and has methods for pinging, adding, deleting, committing, optimizing and searching.

Code

protected function add_request_id(&$url) {
  $id = uniqid();
  if (!stristr($url, '?')) {
    $url .= "?";
  }
  else {
    $url .= "&";
  }
  $url .= 'request_id=' . $id;
  return $id;
}