public function getIndexIntervalSuffix(\DateTime $date): string
    {
        $quarter = ceil($date->format('n') / 3);
        return $date->format('Y') . 'q' . $quarter;
    }
public function getIndexIntervalSuffix(\DateTime $date): string
    {
        $quarter = ceil($date->format('n') / 3);
        return $date->format('Y') . 'q' . $quarter;
    }
public function getIndexIntervalSuffix ( \ DateTime $ date ) : string { $ quarter = ceil ( $ date -> format ( 'n' ) / 3 ) ; return $ date -> format ( 'Y' ) . 'q' . $ quarter ; }
Returns the suffix that should be used for routing writes
and search requests for a given date.

todo: make this configureable, right now we're using quarterly by default

@param \DateTime $date

@return string
Returns the suffix that should be used for routing writes and search requests for a given date .