Gravatar for

Question by crikong, Dec 14, 2016 11:47 AM

Adding Custom Query Suggestions From Sitecore into Coveo Is Not Working

Hey Guys,

How is it going ? I hope well. I am trying to get custom query suggestions added to my Coveo Search Box. I have followed the following example :

So, my test keywords are the following : Bafia, Coveo, Physics

However, when I perform a search with any of these terms, I am not seeing the auto complete box (omni box) shown in the documentation. I have made sure to publish the items in sitecore and I have verified that they are indeed in Coveo. Also when I am searching I am seeing that the querysuggest call is being (which means the omni box is on the page) made. See Below

However, the completions array is always empty. Normally I would expect it to return a list of my custom keywords. My Keywords are defined in Sitecore as follow:

Furthermore, I have added the Top Suggestions Component in CoveoSearch.ascx as follow:

Any light you can shed on what might be the issue would be greatly appreciated. In the mean time I will continue to troubleshoot on my end. Thank you again for your help. Take Care.


1 Reply
Gravatar for

Answer by François Lachance-Guillemette, Dec 14, 2016 12:10 PM

I think you followed the wrong documentation page, the link you provided is for Coveo for Sitecore V3.

Try to follow this one instead.

You should add a new Query Suggestion Model to provide suggestions for your searchbox. Ensure that you have activated the Machine Learning Suggestions in the Search Component Properties (it is the OOTB value).

You should also remove the Top Suggestions Component since it is no longer supported.

Ask a question