How to increase the number of search suggestions in expertrec custom search

Rate this article

Share this article

In this article we will see how to increase the search suggestions in expertrec custom search engine. This can be established with the help of a pre hook script in your control panel .

What is a pre-hook script ?

A pre-script hook is a piece of code that runs before the search is loaded.

With the help of a pre hook script we can tell the search engine to load any number of specified search results in the suggestions.

To increase the number of search results follow the below steps.

  1. Go to https://cse.expertrec.com/?platform=cse and make sure you have  created your search engine.pre-script hook
  2. Go to script hooks-> prescript hooks and enter the following piece of code.pre script hook
  3. You can replace the number 10 to the number of results you want in the suggestions.
  4. Now reload your search page and you will be able to see 10 results in the autocomplete.pre-script hook

 

Are you showing the right products, to the right shoppers, at the right time? Contact us to know more.
You may also like