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);
        }
    }
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);
        }
    }
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 ) ; } }
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.
Adds a query to a multi - query batch using current settings .