original_string: public function scoring($field = null, $weight = 1, $ascending = false, $type = self::SCORING_FIELD_ORDER) {
  		if(empty($this->data['scorings'])) {
  			$this->data['scorings'] = array();
  		}
  		$newScoring = array(
  			'ascending' => (boolean) $ascending,
  			'type' => $type,
  			'weight' => $weight
  		);
  		if(!empty($field)) {
  			$newScoring['field'] = $field;
  		}
  		$this->data['scorings'][] = $newScoring;
  		return $this;
  	}
code: public function scoring($field = null, $weight = 1, $ascending = false, $type = self::SCORING_FIELD_ORDER) {
  		if(empty($this->data['scorings'])) {
  			$this->data['scorings'] = array();
  		}
  		$newScoring = array(
  			'ascending' => (boolean) $ascending,
  			'type' => $type,
  			'weight' => $weight
  		);
  		if(!empty($field)) {
  			$newScoring['field'] = $field;
  		}
  		$this->data['scorings'][] = $newScoring;
  		return $this;
  	}
code_tokens: public function scoring ( $ field = null , $ weight = 1 , $ ascending = false , $ type = self :: SCORING_FIELD_ORDER ) { if ( empty ( $ this -> data [ 'scorings' ] ) ) { $ this -> data [ 'scorings' ] = array ( ) ; } $ newScoring = array ( 'ascending' => ( boolean ) $ ascending , 'type' => $ type , 'weight' => $ weight ) ; if ( ! empty ( $ field ) ) { $ newScoring [ 'field' ] = $ field ; } $ this -> data [ 'scorings' ] [ ] = $ newScoring ; return $ this ; }
docstring: Add one level of scoring
  @return OpenSearchServer\Search\Search
docstring_tokens: Add one level of scoring