Announcing WP Search with Algolia 2.9.0 and 2.10.0

We’re excited to announce the release of the latest versions of WP Search with Algolia! With version 2.9.0, we have continued our work on modernizing the Instantsearch display, enhanced the ability to interact with Algolia requests, and addressed other minor details on the Autocomplete page. In version 2.10.0, we upgraded the Instantsearch library version and added a new option for setting a debounce value for Autocomplete.

Modern Instantsearch Templating

Starting with version 2.9.0, site owners have the option of retaining the newly named “Legacy” instantsearch.php template file, which we have been sending with the plugin since version 2.0.0, or switch to the new “Modern” instantsearch.php.

With this Modern template file, we have removed dependency on wp-utils and hogan.js style templating in favor of JavaScript string literals. This brings the Modern template file into alignment with Algolia’s Instantsearch documentation.

Site owners will not have the Modern template used by default, and any customized Instantsearch template files in their theme folder will still take priority. However, it’s ready to review and integrate as desired.

Debouncing for Autocomplete

By default, Autocomplete offers as-you-type search and processes sources for each keystroke: a real-time experience with instant feedback. However, there are situations when as-you-type might not be desirable or even possible. More on the concept of debouncing can be found at https://www.algolia.com/doc/ui-libraries/autocomplete/guides/debouncing-sources/

By default, the debounce value will be the one already in use, which is zero milliseconds, but each index will use the value saved for this setting. If desired, each index can be customized to have its own debounce value through WordPress filters.

Version 2.9.0 Release Notes

  • Added: Instantsearch Template options. Choose between “Legacy” hogan.js/WP Utils templates and “Modern” Javascript string literals. “Modern” is more in line with Algolia Documentation.
  • Added: ability to customize default Headers for Algolia Search Client configuration.
  • Added: Initial support for programmatic Secured API key creation.
  • Updated: Synced up get_items() methods to allow for specifying specific IDs for posts, terms, and users.
  • Updated: Instantsearch templates use the “Posts per page” amount by default, from WordPress Reading settings.
  • Updated: Amended Autocomplete settings page to remove more built-in post types that don’t need to be available.

Version 2.10.0 Release Notes

  • Added: Debounce option for Autocomplete.
  • Added: Initial integration with Health Panel.
  • Updated: Instantsearch to version 4.78.3
  • Updated: Prevent loading of API credentials on frontend when not using Autocomplete or Instantsearch.
  • Updated: Removed WooCommerce internal post types and taxonomies from Autocomplete list.
  • Updated: Prevent errors with Yoast SEO function checks.
  • Updated: Sync’d up internal code for get_re_index_items_count()

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.