index) !== true) { throw new RuntimeException( 'index is required for creating point-in-time' ); } $index = $this->index ?? null; return "/$index/_search/point_in_time"; } public function getParamWhitelist(): array { return [ 'preference', 'routing', 'ignore_unavailable', 'expand_wildcards', 'keep_alive' ]; } public function getMethod(): string { return 'POST'; } }