Configure your own Search & Navigation timeouts
The main blog Configure your own Search & Navigation timeouts was posted for years but you need copy the code to your application.
We now bring those code to FIND 16.3.0 and you just need to call SetTimeout(/*timeout in milliseconds*/) method fo make your request works. Both Search and MultiSearch request will work with SetTimeout from FIND 16.3.0.
var searchResults = SearchClient.Instance.Search<IContent>().For("alloy").SetTimeout(10000).GetContentResult();
var multiSearchResults = SearchClient.Instance..MultiSearch<IContent>()
.Search<IContent>(x => x.For("test1").InField(f => f.Name))
.Search<IContent>(x => x.For("test2").InField(f => f.Name))
.SetTimeout(10000)
.GetContentResult());
Please contact us if you have any question or feedback.
Comments