• Hot
  • Top
  • New

You have ... votes left in this category for this week!


Add ability to search wp_postmeta and other fields

Currently Super Speedy Search can search any custom post type, but it only searches the wp_posts title and description.

I’ve had a few requests from clients to add the ability to search wp_postmeta too. Rather than searching ALL of wp_postmeta, probably there will be a list of meta_keys provided to search against?

Because this is a search of wp_postmeta, it will require a SECOND search to occur (full text indexes cannot span multiple tables). This will mean the search speed will be slightly slower.

There are two key issues to be wary of:

  1. wp_postmeta typically has 20 – 100 times more rows than wp_posts
  2. free-text indexes do not work well against short text – i.e. if wp_postmeta contains a LARGE chunk of text then this search will behave well, but if wp_postmeta is 20 characters or so then it would not work well and a different solution would be required.



You have ... votes left in this category for this week!


Allow searching of tags, categories and everything else in wp_terms

I’ve had a request to allow Super Speedy Search to search wp_terms and wp_termmeta.

This would be to search Product categories, subcategories, tags and attributes – the plugin would still be searching for ‘posts/products’ (whatever custom post type) but would bring back more items that match these tags, attributes and categories.

Some work is required in order to integrate these properly into the search results. i.e. currently, search results have a ‘relevancy score’ which is v useful to show most relevant items at the top.

What I’m proposing to add is to merge any products which have tags, attributes, categories that fuzzy match the search string – if these are new products, add them in with a score of 0.5, if they already exist, add 0.5 to their current score. This will need to be tweaked until it’s working well.



You have ... votes left in this category for this week!


Search for attributes

Search for categories as an attribute of the product
if I search for “shirts”, it will return zero results, because there is no product with that name or description. But there are many products that are part of the category “shirts”, so I would like the results to be returned also considering the category name