Manh Nguyen
Aug 30, 2024
  56
(1 votes)

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.

Aug 30, 2024

Comments

Please login to comment.
Latest blogs
Creating an Optimizely CMS Addon - Adding an Editor Interface Gadget

In   Part One   of this series, I covered getting started with creating your own AddOn for Optimizely CMS 12. This covered what I consider to be an...

Mark Stott | Aug 30, 2024

Joining the Optimizely MVP Program

Andy Blyth has been honoured as an Optimizely MVP, recognising his contributions to the Optimizely community. Learn how this achievement will enhan...

Andy Blyth | Aug 29, 2024 | Syndicated blog

Welcome 2024 Summer OMVPs

Hello, Optimizely community! We are thrilled to announce and welcome the newest members to the Optimizely Most Valuable Professionals (OMVP) progra...

Patrick Lam | Aug 29, 2024