SearchWP News

View plugin news, catch up on recent releases, and find out what's coming to SearchWP!

A new Pro Extension has been released: Related. You can now use SearchWP to power a related content system on your site!

SearchWP knows a lot about the content on your site. Showing visitors related content can help extend their stay by exposing entries related to the one currently on display. If you’re currently using another related content solution, this extension can also lighten the load on your server by reducing the overhead of maintaining a separate related content index, or running heavy database queries at runtime.

Like SearchWP itself and its other extensions, Related was built with developers in mind. It’s as much a customizable system as it is a turnkey solution.

By default Related doesn’t do anything, but you can opt in to having Related automatically append related entries (per post type) on its settings screen (accessed via the Extensions dropdown on the SearchWP settings screen):

Once that’s in place, Related will show up to 3 related entries to the current entry:

Related ships with an auto append default template designed to fit in well with your theme, but that’s not enough. There is a full template loader built in, allowing you to easily completely customize the look and feel of your related content.

The template loader is great because it allows you to completely specify the markup and style used for your Related content without having to muck with hooks or dequeueing assets or behavior that’s getting in your way.

If auto appending isn’t your style, you can programmatically utilize Related to find related content, and do what you want with it! It’s as easy as:

<?php
/*
* Programmatically find Related content from SearchWP Related
*/
$args = array(
's' => 'coffee', // keywords (space separated) to use when finding Related content
'engine' => 'default', // the SearchWP engine to use
'posts_per_page' => 3, // how many entries to find
);
// Instantiate SearchWP Related
$searchwp_related = new SearchWP_Related();
// Retrieve Related content for the current post
$related_content = $searchwp_related->get( $args );
// Returns an array of Post objects for you to loop through
print_r( $related_content );
view raw functions.php hosted with ❤ by GitHub

The last bit of detail that comes to working with related content is specifying how that related content is found. SearchWP is a powerful, keyword based search index for your WordPress site. A keyword-based system for finding related content makes perfect sense. When editing entries on your site, you can easily define what keywords are used to find Related content:

By default, Related will build a fallback set of keywords to use based on the title of your entries. This saves you some time when first activating Related, so you don’t have to edit every single entry on your site to determine a keyword set to use. Keywords can be updated at any time.

Related is a powerful related content solution, making use of SearchWP’s optimized index to find related content in real time without over-utilizing your server. Enjoy!

WooCommerce Integration 1.1.12 has just been released and is a recommended update for all active license holders. This is a quick bugfix release that resolves an issue concerning WooCommerce Layered Navigation Widgets in WooCommerce 3.0.

Full changelog:

  • [Fix] Fixed an issue that may have prevented proper results from showing when using WooCommerce Layered Navigation Widgets

WooCommerce Integration has been updated to version 1.1.11 and is a recommended update for all active license holders. It’s a maintenance release that includes fixes for Product visibility settings and other small improvements.

Full changelog:

  • [New] New filter searchwp_woocommerce_forced to force WooCommerce Integration to apply
  • [Improved] Better consideration of product visibility
  • [Improved] Better handling of redundant filter calls
  • [Update] Updated updater

SearchWP Live Ajax Search version 1.2.0 has been made available. This is primarily an organizational release but it also fixes a couple of small bugs. It’s a recommended update for all extension users and is available for everyone: https://searchwp.com/extensions/live-search

Full changelog:

  • Reworked build process to be more straightforward
  • Support script debugging (props mgratch)
  • Remove form action requirement to better integrate with other code (props mgratch)
  • Fixed an issue that prevented search from firing when re-entered too fast (props pierrestoffe)

Version 2.8.7 Now Available

February 14, 2017 in

SearchWP version 2.8.7 is now available to all active license holders with a few quick fixes, improvements, and an improved updater library. Full changelog:

2.8.7

  • [Fix] Fixed missing tooltip content
  • [Improvement] Using searchwp_admin_bar now applies to search modification notices
  • [Improvement] License key now included in System Information
  • [New] Taxonomy term slugs are now indexed (use searchwp_indexer_taxonomy_term_index_slug to disable)
  • [New] New filter searchwp_indexer_taxonomy_term allowing for filtration on taxonomy terms prior to indexing
  • [Update] Updated updater

This update is recommended for all active license holders, have a great day!

SearchWP version 2.8.6 is now available for all active license holders. This is a bug fix and maintenance release and is recommended for all SearchWP customers. Version 2.8.6 was quickly released after version 2.8.5 to fix a bug with empty searches.

Full changelogs:

2.8.6

  • [Fix] Fixed an issue with imposed engine config implementation for empty searches

2.8.5

  • [New] Engine settings (e.g. exclusions/inclusions) are now imposed for empty searches
  • [New] New filter searchwp_disable_impose_engine_config to disable imposed engine settings for empty searches
  • [Fix] Fixed an issue that may have triggered unnecessary index update requests
  • [Improvement] Style updates to better match WordPress’ implementation of system font
  • [Improvement] Better handling of indexer requests
  • [Improvement] Better support when Admin/Dashboard searches are enabled
  • [Improvement] Better utilization of existing extracted document content when triggering an index rebuild
  • [Improvement] Better feedback when document parsing dependencies are not available
  • [Update] Added more file type limiters to engine settings
  • [Update] Updated translation sources
  • [Update] Updated updater

Version 2.8.4 primarily fixes an issue with admin-enabled searching. This update is available to all active license holders.

Full changelog:

  • [New] New filter searchwp_indexer_comment to filter comment arguments during indexing
  • [New] New filter searchwp_indexer_pre_get_comments to filter comment arguments during indexing
  • [New] New filter searchwp_indexer_comments_args to filter comment arguments during indexing
  • [Fix] Fixed an issue that prevented searching in the WordPress admin (when enabled)

SearchWP version 2.8.3 is now available to all active license holders. This a bugfix and maintenance release that is recommended for everyone. Here’s the full changelog:

  • [New] New filter searchwp_search_args to filter search arguments at runtime
  • [Improvement] Better handling of object caching
  • [Improvement] Better messaging when rebuilding index
  • [Improvement] Dequeue/deregister legacy versions of select2 that are imposed upon SearchWP’s settings screen
  • [Improvement] Better handling of regex matches
  • [Fix] Fixed an issue that sometimes prevented the indexer progress bar from displaying after rebuilding index
  • [Fix] Fixed an issue that may have prevented manually edited document content from being fully re-indexed
  • [Fix] Fixed PHP Warning during short circuit check
  • [Fix] Disabling the minimum character count reduces length to 1 instead of 2

SearchWP version 2.8.2 has just been released for all active license holders. This is a bug fix and maintenance release that’s recommended for everyone.

Full changelog:

  • [Fix] Fixed a mime type mismatch that prevented accurate Media limiting using All Documents file type
  • [Fix] Admin Bar and Advanced tab indexer pausing now use the same setting
  • [Fix] Fixed an issue when checking for utf8mb4 support
  • [Improvement] Improved regex pattern for hyphen-separated matches
  • [Improvement] Improved aggressiveness of search algorithm where necessary to prevent unexpected filtration during searches
  • [Update] Updated updater

Enjoy!

Fix Search on Your Site. No Coding Required!

Now you can utilize all of the content that's gone unrecognized by native WordPress search instantly with SearchWP

Get SearchWP