Predictive Search Box - Can you control the delay time before results are shown?

Sarah Pengelly asked on September 24, 2015 17:07

Hi,

I have implemented a predictive search on a site using the smart search box. I was wondering if it was possible to control how quickly the predictive results start to show up? Can they be sped up or slowed down? Right now there is a quite a delay before the predictive results start appearing. Any information would be appreciated. Thanks,

Sarah

Recent Answers


Maarten van den Hooven answered on September 24, 2015 17:19

Hi Sarah,

You can change the JS where the predictive search is called :

~\CMS\CMSWebParts\SmartSearch\SearchBox_files\PredictiveSearch.js

On line 105 you can change the timeout :

me.timeout = setTimeout(function () { me.CallPredictiveSearch(query, query); }, 500); // set call timeout (start the search countdown)

But the delay of the predictive search depends also on how low the search is taking so it is also related with the performance from your website.

Good luck with programming!!!

If this answer helped you, please vote for my answer :-)

1 votesVote for this answer Mark as a Correct answer

Maarten van den Hooven answered on September 25, 2015 19:35

Hello Sarah, Did you solved your issue, or still running into problems? If so please let us known.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.