public function searchField($field, $mode = self::SEARCH_MODE_PATTERN, $boost = 1, $phraseBoost = 1) {
		if(empty($this->data['searchFields'])) {
			$this->data['searchFields'] = array();
		}
		$this->data['searchFields'][] = array(
			'field' => $field,
			'mode' => $mode,
			'boost' => $boost,
			'phraseBoost' => $phraseBoost
		);
		return $this;
	}
public function searchField($field, $mode = self::SEARCH_MODE_PATTERN, $boost = 1, $phraseBoost = 1) {
		if(empty($this->data['searchFields'])) {
			$this->data['searchFields'] = array();
		}
		$this->data['searchFields'][] = array(
			'field' => $field,
			'mode' => $mode,
			'boost' => $boost,
			'phraseBoost' => $phraseBoost
		);
		return $this;
	}
public function searchField ( $ field , $ mode = self :: SEARCH_MODE_PATTERN , $ boost = 1 , $ phraseBoost = 1 ) { if ( empty ( $ this -> data [ 'searchFields' ] ) ) { $ this -> data [ 'searchFields' ] = array ( ) ; } $ this -> data [ 'searchFields' ] [ ] = array ( 'field' => $ field , 'mode' => $ mode , 'boost' => $ boost , 'phraseBoost' => $ phraseBoost ) ; return $ this ; }
Add a field to search into
@return OpenSearchServer\Search\Search
Add a field to search into