Gravatar for ravigupta020287@gmail.com

Question by Ravi, Sep 7, 2018 8:23 AM

Handling Coveo Failing when using Sitecore content search API

Hi,

We are using Coveo ContentSearch API for searching items from sitecore, how do we handle the fail case like when Coveo goes down?

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Sep 7, 2018 9:01 AM

Hi,

I am unaware of "Coveo ContentSearch API". There is the Sitecore ContentSearch API or the Coveo Search API, but no "Coveo ContentSearch API". Also you tagged your question with JSUI. So before attempting any answer here, could you please clarify what are you using from Coveo?

Please also clarify what have you tried to reproduce for communication problems with Coveo, and what happened to your website. What do you expect when Coveo is unreachable or sends errors?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Sep 7, 2018 3:41 PM

I do not know what to do other than wrapping the code that can throw with a try/catch block. If an error happens, display an error message to the user or do not display the components in error.

Ask a question