ElasticSearch, Nest and timeout for long queries

I am using ElasticSearch with Nest (0.9.16) and I have some queries that take more than 60 seconds. When this happens, I get the following error:

The request was aborted: the request was canceled.

Although I am concerned that the request is taking so long, for this question I am just wondering if there is a way to increase the wait time. I could not find a way to increase the wait time.

Please note, I see a couple of places where I can set the timeout, but these are not the places:

var setting = new ConnectionSettings(new Uri(searchUrl)).SetTimeout(200000);

or

searchdescriptor.Timeout("120000");

The first sets the connection timeout, and the second sets the ElasticSearch timeout, both of which do not help here.

Thanks Eric

+4
source share
1 answer

, , ConnectionSettings(). SetTimeout() . , .

+7

All Articles