Gravatar for

Question by andrestoro, May 27, 2015 6:01 PM

Is there way to turn off automatic response with the DidYouMean Component?

It seems in the .Net Interface you can turn it off can this be achieved in the JS Search Framework? I want the did you mean component just not allow for automatic corrections. Reference ( ) The .NET option is "Automatically use corrected query suggestion "

2 Replies
Gravatar for

Answer by olamothe, May 27, 2015 6:20 PM

Every feature is bound to a component (a DOM element in your search page).
To remove any feature, you can remove the associated element from your search page.
Removing the div with the css class "CoveoDidYouMean" should do the trick

Gravatar for

Comment by andrestoro, May 27, 2015 6:32 PM

I want the suggestion component, I just rather not have it automatically correct the search. Refer to I want the "Did you mean?" not the automatically corrected.

Gravatar for

Answer by Martin Laporte, May 28, 2015 3:32 AM

The DidYouMean component presently has no option to disable auto-correction (which kicks in only if the query returns no results). But I do think such an option might be interesting, so I added it for the next release (it'll be called enableAutoCorrection).

Ask a question