public function relativeDateFilter($field, $fromUnit = self::RELATIVE_DATE_FILTER_UNIT_MINUTES, $fromInterval, $toUnit = self::RELATIVE_DATE_FILTER_UNIT_MINUTES, $toInterval = 0, $dateFormat = self::RELATIVE_DATE_FILTER_DATEFORMAT, $isNegative = false) {
		$parameters = array(
	        'fromUnit' => $fromUnit,
	        'fromInterval' => $fromInterval,
	        'toUnit' => $toUnit,
		    'toInterval' => $toInterval,
		    'dateFormat' => $dateFormat,
		    'field' => $field
	    );
	    $this->addFilter(null, self::RELATIVE_DATE_FILTER, $isNegative, $parameters);
		return $this;
	}
public function relativeDateFilter($field, $fromUnit = self::RELATIVE_DATE_FILTER_UNIT_MINUTES, $fromInterval, $toUnit = self::RELATIVE_DATE_FILTER_UNIT_MINUTES, $toInterval = 0, $dateFormat = self::RELATIVE_DATE_FILTER_DATEFORMAT, $isNegative = false) {
		$parameters = array(
	        'fromUnit' => $fromUnit,
	        'fromInterval' => $fromInterval,
	        'toUnit' => $toUnit,
		    'toInterval' => $toInterval,
		    'dateFormat' => $dateFormat,
		    'field' => $field
	    );
	    $this->addFilter(null, self::RELATIVE_DATE_FILTER, $isNegative, $parameters);
		return $this;
	}
public function relativeDateFilter ( $ field , $ fromUnit = self :: RELATIVE_DATE_FILTER_UNIT_MINUTES , $ fromInterval , $ toUnit = self :: RELATIVE_DATE_FILTER_UNIT_MINUTES , $ toInterval = 0 , $ dateFormat = self :: RELATIVE_DATE_FILTER_DATEFORMAT , $ isNegative = false ) { $ parameters = array ( 'fromUnit' => $ fromUnit , 'fromInterval' => $ fromInterval , 'toUnit' => $ toUnit , 'toInterval' => $ toInterval , 'dateFormat' => $ dateFormat , 'field' => $ field ) ; $ this -> addFilter ( null , self :: RELATIVE_DATE_FILTER , $ isNegative , $ parameters ) ; return $ this ; }
Add a RelativeDateFilter on request
@return OpenSearchServer\Search
Add a RelativeDateFilter on request