original_string: protected function _createListTerm( $name, $type )
  	{
  		$sign = null;
  
  		switch( $this->getOperator() )
  		{
  			case '!=':
  				$sign = false;
  
  			case '==':
  
  				$multiterm = new Zend_Search_Lucene_Search_Query_MultiTerm();
  
  				foreach( $this->getValue() as $value )
  				{
  					$escaped = $this->_escape( $this->getOperator(), SORT_STRING, $value );
  					$term = new Zend_Search_Lucene_Index_Term( $this->_empty( $escaped ), $name );
  					$multiterm->addTerm( $term, $sign );
  				}
  
  				return $multiterm;
  
  			case '~=':
  
  				$query = new Zend_Search_Lucene_Search_Query_Boolean();
  
  				foreach( $this->getValue() as $value )
  				{
  					$escaped = $this->_escape( $this->getOperator(), SORT_STRING, $value );
  					$term = new Zend_Search_Lucene_Index_Term( strtolower( $this->_empty( $escaped ) ) . '*', $name );
  					$query->addSubquery( new Zend_Search_Lucene_Search_Query_Wildcard( $term ) );
  				}
  
  				return $query;
  		}
  	}
code: protected function _createListTerm( $name, $type )
  	{
  		$sign = null;
  
  		switch( $this->getOperator() )
  		{
  			case '!=':
  				$sign = false;
  
  			case '==':
  
  				$multiterm = new Zend_Search_Lucene_Search_Query_MultiTerm();
  
  				foreach( $this->getValue() as $value )
  				{
  					$escaped = $this->_escape( $this->getOperator(), SORT_STRING, $value );
  					$term = new Zend_Search_Lucene_Index_Term( $this->_empty( $escaped ), $name );
  					$multiterm->addTerm( $term, $sign );
  				}
  
  				return $multiterm;
  
  			case '~=':
  
  				$query = new Zend_Search_Lucene_Search_Query_Boolean();
  
  				foreach( $this->getValue() as $value )
  				{
  					$escaped = $this->_escape( $this->getOperator(), SORT_STRING, $value );
  					$term = new Zend_Search_Lucene_Index_Term( strtolower( $this->_empty( $escaped ) ) . '*', $name );
  					$query->addSubquery( new Zend_Search_Lucene_Search_Query_Wildcard( $term ) );
  				}
  
  				return $query;
  		}
  	}
code_tokens: protected function _createListTerm ( $ name , $ type ) { $ sign = null ; switch ( $ this -> getOperator ( ) ) { case '!=' : $ sign = false ; case '==' : $ multiterm = new Zend_Search_Lucene_Search_Query_MultiTerm ( ) ; foreach ( $ this -> getValue ( ) as $ value ) { $ escaped = $ this -> _escape ( $ this -> getOperator ( ) , SORT_STRING , $ value ) ; $ term = new Zend_Search_Lucene_Index_Term ( $ this -> _empty ( $ escaped ) , $ name ) ; $ multiterm -> addTerm ( $ term , $ sign ) ; } return $ multiterm ; case '~=' : $ query = new Zend_Search_Lucene_Search_Query_Boolean ( ) ; foreach ( $ this -> getValue ( ) as $ value ) { $ escaped = $ this -> _escape ( $ this -> getOperator ( ) , SORT_STRING , $ value ) ; $ term = new Zend_Search_Lucene_Index_Term ( strtolower ( $ this -> _empty ( $ escaped ) ) . '*' , $ name ) ; $ query -> addSubquery ( new Zend_Search_Lucene_Search_Query_Wildcard ( $ term ) ) ; } return $ query ; } }
docstring: Creates a Lucene query object from a list of values.
  
  @param string $name Translated name of the variable or column
  @param integer $type Type constant
  @return Zend_Search_Lucene_Search_Query Lucene query object
docstring_tokens: Creates a Lucene query object from a list of values .