original_string: public function addQuery($query, array $indexes)
      {
          $indexNames = '';
          foreach ($indexes as &$label) {
              if (isset($this->indexes[$label])) {
                  $indexNames .= $this->indexes[$label] . ' ';
              }
          }
  
          if (!empty($indexNames)) {
              $this->sphinx->addQuery($query, $indexNames);
          }
      }
code: public function addQuery($query, array $indexes)
      {
          $indexNames = '';
          foreach ($indexes as &$label) {
              if (isset($this->indexes[$label])) {
                  $indexNames .= $this->indexes[$label] . ' ';
              }
          }
  
          if (!empty($indexNames)) {
              $this->sphinx->addQuery($query, $indexNames);
          }
      }
code_tokens: public function addQuery ( $ query , array $ indexes ) { $ indexNames = '' ; foreach ( $ indexes as & $ label ) { if ( isset ( $ this -> indexes [ $ label ] ) ) { $ indexNames .= $ this -> indexes [ $ label ] . ' ' ; } } if ( ! empty ( $ indexNames ) ) { $ this -> sphinx -> addQuery ( $ query , $ indexNames ) ; } }
docstring: Adds a query to a multi-query batch using current settings.
  
  @param string $query   The query string that we are searching for.
  @param array  $indexes The indexes to perform the search on.
docstring_tokens: Adds a query to a multi - query batch using current settings .