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;
	}
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;
	}
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 ; }
Add one level of scoring
@return OpenSearchServer\Search\Search
Add one level of scoring