Don’t Waste Time Improving Your WordPress Site Search

Don’t Waste Time Improving Your WordPress Site Search

You’ll often find articles that start with how bad the built-in WordPress search function is (it’s not actually that bad) and then go on to explain how you can upgrade it.

Whilst there are a truly excellent search plugins out there that add a plethora of new features, you need to make sure you know why you are upgrading because it’s quite possible that you might just be wasting your time, effort and money.

Magnifying glass on top of euros
Think carefully before spending time and money improving your WordPress search function

There is no shortage of truly excellent search plugins both free and premium that bring considerable additional features and sophistication to the WordPress search function. But whilst you can boost the efficacy of your search quite easily, you first need to ask yourself whether adding that plugin is adding real value for the majority of your visitors or whether you’re simply adding to your WordPress maintenance burden.

Why Improving General Site Search Might Be A Waste Of Time

Before you embark on any updates to your WordPress site you need to assess whether they are going to give you a reasonable return on investment – not just any costs involved but also your time and effort. And you need to be sure that you are applying the fix in the right place and that visitor usage of your site search is not just a symptom of some other problem.

Before you do anything, you need to ask yourself the following questions.

Does My Site Search Have Room For Improvement?

On the face of it, site search seems like a function ripe for improvement but your analytics might say otherwise. For example, over the last twelve months for WPMU DEV, only 3.1% of visits involved a site search. More interestingly, despite 30% of those searches resulting in a subsequent search, the exit rate from the search results page is only 13%.

Based on these stats, it’s highly doubtful whether there’s a need to spend any time or effort trying to reduce what is already a low exit rate for a mere 3% of visits.

You should certainly look to your own analytics and see just how much traffic your site search is getting and what the exit rate is so that you can not only determine if you have a problem that needs fixing but also how much time and resources you should put into that fix.

Analytics from WPMU DEV search pages
Does traffic to your search pages justify spending time trying to improve it?

Am I Forcing Visitors To Use Site Search?

For most sites, the use of site search is often a last resort by visitors because they have been unable to find the content they were looking for, in which case it may well be your information architecture that is at fault.

You need to check that your navigation:

  • Is logically grouped
  • Labels are clear and unambiguous
  • Terms are simple and not technical or jargon
  • Provides context

How can you check if your navigation is forcing your visitors to turn to searching? Well, you can’t definitively but you can get some idea again by looking at the analytics and, in particular, the search terms. Look at what your visitors have been searching for and working out:

  1. Does relevant content exist? If not, then create it.
  2. Can you navigate to it? Why not? Is a case of mislabelling or is the content simply not hooked up to the navigation?
  3. Is it linked to from other related content? If not, then add some; no content should be completely orphaned

These issues can, and should, all be sorted without the need to look at search. Indeed, orphan content is worth checking on a regular basis as content should never exist in isolation.

Your Time Is Likely Better Spent Elsewhere

We’ve all got a finite amount of time we can spend on our sites and many of us have limited resources (financial and technical) so we need to make sure that we are always focussing on updates that will provide the most benefit.

If visitors are searching for content that does exist on your site then it may be that your site structure and labelling that’s at fault and improving those aspects of your site will improve the experience for all your visitors not just those using the site search function.

If your search analytics are anything like WPMU DEV’s then the argument for improving site search is fairly weak and your time might be better spent on the search function that has the biggest impact on your site: Google.

Results page for a search on Google for WPMU DEV
Want to spend time improving search? Perhaps this is where you should spend it

So Improving Site Search Is A Waste Of Time Then?

Despite the above, there are four situations where improving your site search makes sense:

1. You have a large site, with significant traffic to the search function which has a high exit rate

In this situation then you are probably best advised to start looking at the off-site search providers. Remember, searching, especially full-text searching, is a database-intensive activity and so is particularly sensitive to the volume of content and the use of the search function.

Whilst you will get a much wider range of functionality such as results sorted by relevance, Did You Mean suggestions and PDF indexing, the primary reason for an off-site solution is taking the load off your hosting environment.

Shifting your search to a third-party is usually a simple process. Generally, you’ll sign-up for an account, the service will crawl and index your site and you’ll install a plugin that will link your site with your account and will handle the search requests and the returning of the results.

Off-site search providers include:

2. You want to provide a specific search function (e.g. product search)

Again, whilst you can do this yourself, if you want to start searching using a custom field or restrict the search to a particular content type, taxonomy or category then it’s probably better to use one of the reputable search plugins that are available.

These will provide all that functionality and more, along with ordering by relevance and weighting with little to no coding with extensive configuration available via their settings panels.

If you are prepared to get your hands dirty with a bit of template building then the SearchWP plugin actually provides a “supplementary search engine” feature which allows the building of multiple search functions all from the one index. For example, this would allow a main engine to exist alongside an engine that only gave results from the products custom post type with its own settings for weightings.

Plugins to consider in this scenario:

3. You want to index PDFs

As we know, the built-in WordPress search function only searches the post table so attachments and uploads are not going to be indexed.

If you have a library of PDF documents (perhaps back issues) then you may want to be able to index the text in the PDFs (you won’t get far with any search engine if your PDF doesn’t contain actual text) so that the documents themselves can be returned in search results on your site.

As far as I know, there’s only one plugin that will index PDFs: SearchWP.

4. You want more control over how results are ordered

The built-in WordPress search is actually a lot more flexible than it is given credit for. As it uses WP_Query, it is possible to manipulate the results in all manner of ways including restricting the search to a particular content type, searching a custom field and searching by taxonomy and so some pretty sophisticated searching can be achieved without needing to reach for a plugin.

However, if you want to go beyond what WP_Query can offer and utilize relevance and weighting then you’ll have to get some third-party help. Relevance is a score for how closely the result matches the search term and so the aim is to have those items that are the closest matches (or have multiple matches) at the top of the results.

Weighting allows manipulation of the relevance calculation by being able to say that match in a title, for example, is more important than a match in the content. The more sophisticated plugins such as SearchWP and Relevanssi will allow weighting to be applied to virtually all fields including custom fields allowing for incredibly fine-grained control.

Usually these plugins “replace” the built-in search function altogether rather than just manipulating the results:

This scenario is pretty tenuous though. Whilst the results will likely be improved if traffic to your site search is low and / or the site exit percentage is also low then their may not be any benefit in adding yet another plugin to your installation.

Final Thoughts

The WordPress search is much maligned but it’s probably not justified and the importance of a search function is often overstated.

Often the use of search is a sign that something is not quite right with your site and the fix is not to improve your search but to improve your site’s content, structure or navigation or all three. And of course you need to be across the analytics and critically assess whether the traffic to the search pages really warrants spending time trying to improve it.

That said, there are scenarios where more sophistication is required and there are a number of really excellent plugins and off-site services that can help you. As is always the case, though, you need to carefully think through what your requirements are and then find the plugin that best matches.

Have you implemented any search plugins on your site? What problem were you trying to solve? What’s the traffic to your search pages like?

Photo Credit: Images Money