Query completion in the search box

8/23/2012

Söksidan, EPiServer, SiteVision

Limitations

The SiteSeeker server needs to communicate with the webserver on port 80 since a jquery call is sent from the users webbrowser directly to the SiteSeeker server when using a template search page or the SitesSeeker-module for SiteVision for query completion.

Step by step

Note that it takes 24 hours before query completion is fully functioning

The SiteSeeker module for SiteVision

Query completion in the search box in the SiteSeeker module for SiteVision is implemented in the same way as for the template search page.

SiteSeeker's template search page

In order to implement auto complete in the search box on a template search page you need to add css-formating and JavaScript-code in the head-segment on the pages where you have search boxes.

Make sure you are running SiteSeeker 6 or higher. For versions 6.04 or lower, you need to use the Modular or Proxy theme. The version number can be found in the SiteSeeker Admin.

If you are using SiteSeeker 6.04 or higher:

  1. Log into SiteSeeker Admin and click on search pages and then query completion.
  2. Tick the box query completion in the search box, then click save settings
  3. Chose if statistical data or page titles should be the basis for query completion
  4. Save and activate the settings.
  5. Launch and add the JavaScript according to instructions below.
  6. Wait until the system has run indexing and statistical data loading (is normally done at night).

Generate and add JavaScript-code for query completion

Follow the instructions on the link below to generate the JavaScript-code that lies in the head-segment on the page where the search box is.

Generate and add JavaScript-code for query completion — page in Swedish

Troubleshooting

Note that query completion is based on user data so if you have a client where few if any queries are executed, you will not receive any suggestions. Also make sure you perform indexing after the feature has been activated in SiteSeeker Admin.

The SiteSeeker server needs to communicate with the webserver on port 80 since a jquery call is sent from the users webbrowser directly to the SiteSeeker server when using a template search page or the SitesSeeker-module for SiteVision for query completion.