How to set "timeout" value of cursor in elasticsearch SQL syntax

I had a query return large results with SQL syntax, and I use the 'cursor' to fetch results. But I found there is no way to set 'timeout' value therefore my cursor would be expired after some default value.

So how can I set the time of cursor expiration?

You can use the page_timeout parameter: https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest.html#sql-rest-fields

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.