Fine tuning the search configuration

After selecting the proper environment and plugins, there are a few tricks to increase search performance.

1. High performance impact changes

These changes are recommended on most shared hosts and lower performance servers. These changes can improve the search performance significantly.

1.1 Disable search when typing

While it's a great feature, it requires a decent server to handle. Shared hosts tend to have an execution limit, which can be reached very quickly with constant ajax requests.

To disable this feature go to the General Options -> Behavior panel. Also, make sure that either the magnifier or the return button action is set to 'Trigger live search' (see screenshot), otherwise the live results will not appear.

After this change the user will have to hit the Return key or click the magnifier icon to start the ajax search process (depending on your configuration).

1.2 Disable autocomplete, or use only google as autocomplete source

Autocomplete is triggered on every keystroke, so just like the previous option - unless only google is selected as the source. In that case your server is not invoked in the process.

Solution 1:

Solution 2:

1.3 Disable secondary (fill) logic

By default this feature is disabled, but in case you decided to use it, it can cause a decent performance slowdown.

To turn it off, go the the General Options -> Behavior panel and set the "Secondary logic" option:


2. Medium performance impact changes

These changes can have a relateively big impact on the overall performance.

2.1 Enabling the custom ajax handler

As discussed in the previous section, the ajax performance is unfortunately affected by every single plugin you have installed.

However there is an implemented custom ajax handler, which can try to bypass unneccessary plugin loading, making this process faster.

To enable the custom ajax handler, click the Compatibility Settings submenu.

2.2 Disable image cropping

Cropping images to thumbnails can cause a definite slowdown, mostly in cases where the source images are too big. Image cropping can be disabled on the Caching options page:

2.3 Disable search in terms

This option is disabled by default. Searching in terms can slow down the plugin if the posts and the terms table grows big enough.

To disable search in terms, go to the General Options panel -> Sources -> Search in terms? (categories, tags) option:

2.4 Use the index table engine - for big databases

If your main results are Posts, Pages, Products or other custom post types, you should definitely consider using the Index Table engine.


3. Low performance impact changes

These changes will most likely have a noticably small impact on the performance.

3.1 Disable relevance

Relevance is not a performance killer per se, but you can save up a few milliseconds by disabling it.

Go to the Relevance Options panel -> Sort results by relevance and disable it.

results matching ""

    No results matching ""