original_string: public function rewrite(Zend_Search_Lucene_Interface $index)
      {
          $query = new Zend_Search_Lucene_Search_Query_Boolean();
          $query->setBoost($this->getBoost());
  
          foreach ($this->_subqueries as $subqueryId => $subquery) {
              $query->addSubquery(
                  $subquery->rewrite($index),
                  ($this->_signs === null)?  true : $this->_signs[$subqueryId]
              );
          }
  
          return $query;
      }
code: public function rewrite(Zend_Search_Lucene_Interface $index)
      {
          $query = new Zend_Search_Lucene_Search_Query_Boolean();
          $query->setBoost($this->getBoost());
  
          foreach ($this->_subqueries as $subqueryId => $subquery) {
              $query->addSubquery(
                  $subquery->rewrite($index),
                  ($this->_signs === null)?  true : $this->_signs[$subqueryId]
              );
          }
  
          return $query;
      }
code_tokens: public function rewrite ( Zend_Search_Lucene_Interface $ index ) { $ query = new Zend_Search_Lucene_Search_Query_Boolean ( ) ; $ query -> setBoost ( $ this -> getBoost ( ) ) ; foreach ( $ this -> _subqueries as $ subqueryId => $ subquery ) { $ query -> addSubquery ( $ subquery -> rewrite ( $ index ) , ( $ this -> _signs === null ) ? true : $ this -> _signs [ $ subqueryId ] ) ; } return $ query ; }
docstring: Re-write queries into primitive queries
  
  @param  Zend_Search_Lucene_Interface $index
  @return Zend_Search_Lucene_Search_Query
docstring_tokens: Re - write queries into primitive queries